fixed rpm build
This commit is contained in:
		| @@ -1290,6 +1290,9 @@ ${HEADER}AM_CPPFLAGS = -I\${top_srcdir}/src -I\${top_builddir}/src | |||||||
| AM_LDFLAGS = -L\${abs_top_builddir}/src/.libs | AM_LDFLAGS = -L\${abs_top_builddir}/src/.libs | ||||||
| LDADD = -l${PACKAGE_NAME#lib} | LDADD = -l${PACKAGE_NAME#lib} | ||||||
|  |  | ||||||
|  | exampledir = ${docdir}/examples | ||||||
|  | example_DATA =  | ||||||
|  |  | ||||||
| MAINTAINERCLEANFILES = makefile.in | MAINTAINERCLEANFILES = makefile.in | ||||||
| EOF | EOF | ||||||
| to --condition AX_BUILD_HTML_NPM html/package.json.in <<EOF | to --condition AX_BUILD_HTML_NPM html/package.json.in <<EOF | ||||||
| @@ -1812,13 +1815,10 @@ Requires: @PKG_REQUIREMENTS@ | |||||||
| EOF | EOF | ||||||
| to build-in-docker.conf <<EOF | to build-in-docker.conf <<EOF | ||||||
| ${HEADER}# Use Ubuntu Universe Repository | ${HEADER}# Use Ubuntu Universe Repository | ||||||
| repos+=("Ubuntu:::universe") | repos+=("ubuntu:::universe") | ||||||
|  |  | ||||||
| # Use Marc Wäckerlin's Repository, see https://dev.marc.waeckerlin.org | # Use Marc Wäckerlin's Repository, see https://dev.marc.waeckerlin.org | ||||||
| repos+=("Debian|Ubuntu:::https://dev.marc.waeckerlin.org/repository") | repos+=("debian|ubuntu:::https://dev.marc.waeckerlin.org/repository:::https://dev.marc.waeckerlin.org/repository/@DISTRIBUTOR@/marc-waeckerlin.repo") | ||||||
| repos+=("openSUSE:::https://dev.marc.waeckerlin.org/repository/opensuse/marc-waeckerlin.repo") |  | ||||||
| repos+=("Fedora:::https://dev.marc.waeckerlin.org/repository/fedora/marc-waeckerlin.repo") |  | ||||||
| repos+=("CentOS:::https://dev.marc.waeckerlin.org/repository/centos/marc-waeckerlin.repo") |  | ||||||
| keys+=("https://dev.marc.waeckerlin.org/repository/PublicKey") | keys+=("https://dev.marc.waeckerlin.org/repository/PublicKey") | ||||||
| EOF | EOF | ||||||
|  |  | ||||||
|   | |||||||
| @@ -195,20 +195,26 @@ function ifthenelse() { | |||||||
|     arg="$1" |     arg="$1" | ||||||
|     shift |     shift | ||||||
|     cmd="$*" |     cmd="$*" | ||||||
|  |     DISTRIBUTOR=$(docker exec ${DOCKER_ID} lsb_release -si | sed 's, .*,,' | tr [:upper:] [:lower:]) | ||||||
|  |     CODENAME=$(docker exec ${DOCKER_ID} lsb_release -cs) | ||||||
|  |     ARCH=$((docker exec ${DOCKER_ID} which dpkg > /dev/null 2> /dev/null && docker exec ${DOCKER_ID} dpkg --print-architecture) || echo amd64) | ||||||
|     if test "${arg/:::/}" = "${arg}"; then |     if test "${arg/:::/}" = "${arg}"; then | ||||||
|         docker exec ${DOCKER_ID} bash -c "${cmd//ARG/${arg}}" |         docker exec ${DOCKER_ID} bash -c "${cmd//ARG/${arg//@DISTRIBUTOR@/${DISTRIBUTOR}}}" | ||||||
|     else |     else | ||||||
|         os="${arg%%:::*}" |         os="${arg%%:::*}" | ||||||
|         thenpart="${arg#*:::}" |         thenpart="${arg#*:::}" | ||||||
|         if test "${thenpart/:::/}" = "${thenpart}"; then |         elsepart= | ||||||
|             docker exec ${DOCKER_ID} bash -c 'os="'$os'"; if [[ "$(lsb_release -is)-$(lsb_release -cs)-$((which dpkg > /dev/null 2> /dev/null && dpkg --print-architecture) || echo amd64)" =~ ${os} ]]; then '"${cmd//ARG/${thenpart}}"'; fi' |         if test "${thenpart/:::/}" != "${thenpart}"; then | ||||||
|         else |  | ||||||
|             elsepart="${thenpart##*:::}" |             elsepart="${thenpart##*:::}" | ||||||
|             thenpart="${thenpart%:::*}" |             thenpart="${thenpart%%:::*}" | ||||||
|  |         fi | ||||||
|  |         if [[ "${DISTRIBUTOR}-${CODENAME}-${ARCH}" =~ ${os} ]]; then | ||||||
|             if test -n "${thenpart}"; then |             if test -n "${thenpart}"; then | ||||||
|                 docker exec ${DOCKER_ID} bash -c 'os="'$os'"; if [[ "$(lsb_release -is)-$(lsb_release -cs)-$((which dpkg > /dev/null 2> /dev/null && dpkg --print-architecture) || echo amd64)" =~ ${os} ]]; then '"${cmd//ARG/${thenpart}}"'; else '"${cmd//ARG/${elsepart}}"'; fi' |                 docker exec ${DOCKER_ID} bash -c "${cmd//ARG/${thenpart//@DISTRIBUTOR@/${DISTRIBUTOR}}}" | ||||||
|  |             fi | ||||||
|         else |         else | ||||||
|                 docker exec ${DOCKER_ID} bash -c 'os="'$os'"; if [[ "$(lsb_release -is)-$(lsb_release -cs)-$((which dpkg > /dev/null 2> /dev/null && dpkg --print-architecture) || echo amd64)" =~ ${os} ]]; then true; else '"${cmd//ARG/${elsepart}}"'; fi' |             if test -n "${elsepart}"; then | ||||||
|  |                 docker exec ${DOCKER_ID} bash -c "${cmd//ARG/${elsepart//@DISTRIBUTOR@/${DISTRIBUTOR}}}" | ||||||
|             fi |             fi | ||||||
|         fi |         fi | ||||||
|     fi |     fi | ||||||
| @@ -290,7 +296,7 @@ EOF | |||||||
|             rm rpm-key |             rm rpm-key | ||||||
|         done |         done | ||||||
|         for repo in "${repos[@]}"; do |         for repo in "${repos[@]}"; do | ||||||
|             INSTALL_REPO=$((docker exec ${DOCKER_ID} test -x /usr/bin/zypper && echo zypper ar) || (docker exec ${DOCKER_ID} test -x /usr/bin/dnf && echo dnf config-manager --add-repo) || (docker exec ${DOCKER_ID} test -x /usr/bin/yum && echo wget -O/etc/yum.repos.d/additional$i.repo) || (docker exec ${DOCKER_ID} test -x /usr/sbin/urpmi && echo true)) |             INSTALL_REPO=$((docker exec ${DOCKER_ID} test -x /usr/bin/zypper && echo zypper ar) || (docker exec ${DOCKER_ID} test -x /usr/bin/dnf && echo dnf config-manager --add-repo) || (docker exec ${DOCKER_ID} test -x /usr/bin/yum && echo wget -O/etc/yum.repos.d/additional$i.repo) || (docker exec ${DOCKER_ID} test -x /usr/sbin/urpmi && echo false)) | ||||||
|             ifthenelse "${repo}" "${INSTALL_REPO} 'ARG'" |             ifthenelse "${repo}" "${INSTALL_REPO} 'ARG'" | ||||||
|             ((++i)) |             ((++i)) | ||||||
|         done |         done | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user