6 git describe --always --tags --match='release-*' "$@"
9 # CentOS 7 has OpenSSL 1.1 installed in a non-default location.
10 if [ -d /usr/include/openssl11 ]; then
11 set -- "$@" --with-openssl-include=/usr/include/openssl11
14 if [ -d /usr/lib64/openssl11 ]; then
15 set -- "$@" --with-openssl-lib=/usr/lib64/openssl11
18 spec=$HOME/rpmbuild/SPECS/tinc.spec
19 configure=$(sh .ci/conf.sh)
21 version=$(find_tag HEAD | sed 's/-/_/g')
22 version=${version//release_/}
24 export CONFIG_SHELL=bash
26 yum install -y rpmdevtools
29 cp "$(dirname "$0")/tinc.spec" "$spec"
30 sed -i "s/__VERSION__/$version/" "$spec"
31 sed -i "s#__CONFIGURE_ARGS__#$configure#" "$spec"
35 cp -a . ~/rpmbuild/BUILD