From: pawelz Date: Mon, 26 Oct 2009 07:42:03 +0000 (+0000) Subject: - use new cvs layout X-Git-Tag: auto/th/acroread-installer-9_1_3-2~4 X-Git-Url: http://git.pld-linux.org/?p=packages%2Facroread.git;a=commitdiff_plain;h=1d9c4a3e558bbd1ee08eab2bd44728fce578a1cc - use new cvs layout - BR rpm-build-tools >= 0:4.4.35 (needs builder.sh that uses new cvs layout) Changed files: acroread.spec -> 1.96 license-installer.sh -> 1.13 --- diff --git a/acroread.spec b/acroread.spec index 9bc05fb..2a53f7d 100644 --- a/acroread.spec +++ b/acroread.spec @@ -37,7 +37,7 @@ BuildRequires: rpmbuild(macros) >= 1.357 Requires: openldap-libs < 2.5 Requires: openldap-libs >= 2.4 %else -Requires: rpm-build-tools +Requires: rpm-build-tools >= 0:4.4.35 %endif ExclusiveArch: %{ix86} ExcludeArch: i386 diff --git a/license-installer.sh b/license-installer.sh index 1ec624a..110c73a 100644 --- a/license-installer.sh +++ b/license-installer.sh @@ -1,12 +1,11 @@ #!/bin/sh if [ "$1" = "--with" -a "$2" = "license_agreement" ]; then tmp=$(mktemp -d) - SPECDIR=`rpm --define "_topdir $tmp" --eval "%{_specdir}"` SRPMDIR=`rpm --define "_topdir $tmp" --eval "%{_srcrpmdir}"` - SOURCEDIR=`rpm --define "_topdir $tmp" --eval "%{_sourcedir}"` BUILDDIR=`rpm --define "_topdir $tmp" --eval "%{_builddir}"` RPMDIR=`rpm --define "_topdir $tmp" --eval "%{_rpmdir}"` - mkdir -p $SPECDIR $SRPMDIR $RPMDIR $SOURCEDIR $BUILDDIR + PACKAGEDIR="$tmp/packages/acroread" + mkdir -p $SRPMDIR $RPMDIR $BUILDDIR $PACKAGEDIR if echo "$3" | grep '\.src\.rpm$' >/dev/null; then ( @@ -16,20 +15,20 @@ if [ "$1" = "--with" -a "$2" = "license_agreement" ]; then else cp -f "$3" $SRPMDIR fi - rpm2cpio `basename "$3"` | ( cd $SPECDIR; cpio -i @BASE_NAME@.spec ) + rpm2cpio `basename "$3"` | ( cd $PACKAGEDIR; cpio -i @BASE_NAME@.spec ) if [ '@COPYSOURCES@' != '@'COPYSOURCES'@' ]; then - rpm2cpio `basename "$3"` | ( cd $SOURCEDIR; cpio -i @COPYSOURCES@ ) + rpm2cpio `basename "$3"` | ( cd $PACKAGEDIR; cpio -i @COPYSOURCES@ ) fi ) else - cp -i "$3" $SPECDIR || exit 1 + cp -i "$3" $PACKAGEDIR || exit 1 if [ '@COPYSOURCES@' != '@'COPYSOURCES'@' ]; then for i in @COPYSOURCES@; do - cp -i @DATADIR@/$i $SOURCEDIR/$i || exit 1 + cp -i @DATADIR@/$i $PACKAGEDIR/$i || exit 1 done fi fi - ( cd $SPECDIR + ( cd $PACKAGEDIR nd= if [ '@USE_DISTFILES@' = 'no' ]; then nd=-nd