From 562049cd694f6dd0927b9880227fc4f6da008839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Wed, 5 Aug 2015 20:25:18 +0200 Subject: RPM Packaging: massive update --- redhat/build/build_rpm_package.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'redhat/build/build_rpm_package.sh') diff --git a/redhat/build/build_rpm_package.sh b/redhat/build/build_rpm_package.sh index 2071ab445..f5242c9c5 100755 --- a/redhat/build/build_rpm_package.sh +++ b/redhat/build/build_rpm_package.sh @@ -60,6 +60,13 @@ if [ -r "${TEMPDIR}/one.patch" ]; then -e "/%setup/ s/$/\n%patch389 -p1/" fi +# 3. PCLinuxOS hack ... +if [ -r "/etc/pclinuxos-release" ]; then + sed -i "${TEMPDIR}/${SPECFILE##*/}" \ + -e "/admin\/Makefile.common/ s|$| \|\| autoreconf -i \&\& make -f admin/Makefile.common|" \ + || exit 1 +fi + [ -d "${BUILDDIR}" ] || mkdir -p "${BUILDDIR}" RPMDIR="$(rpm -E %{_rpmdir}.tde-${TDE_VERSION})" -- cgit v1.2.1