From 0337a7fe7903808fa2f65f01925a8d314e397788 Mon Sep 17 00:00:00 2001 From: pawelz Date: Sat, 26 Dec 2009 11:26:41 +0000 Subject: [PATCH] - license-installer.sh moved to DistFiles Changed files: acroread.spec -> 1.100 license-installer.sh -> 1.16 --- acroread.spec | 3 ++- license-installer.sh | 56 -------------------------------------------- 2 files changed, 2 insertions(+), 57 deletions(-) delete mode 100644 license-installer.sh diff --git a/acroread.spec b/acroread.spec index 42260b4..86632e3 100644 --- a/acroread.spec +++ b/acroread.spec @@ -26,7 +26,8 @@ Source0: ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/%{version}/enu/AdbeRdr%{v # NoSource0-md5: fec3eed6dfc921a6dcc4deab400e207e NoSource: 0 %else -Source1: license-installer.sh +Source1: http://svn.pld-linux.org/svn/license-installer/license-installer.sh +# Source1-md5: 4fb1600353dd57fe088e0b12fb0ecac2 %endif # please update @COPYSOURCES@ below if you add more Sources or Patches. Source2: %{base_name}.desktop diff --git a/license-installer.sh b/license-installer.sh deleted file mode 100644 index 455c702..0000000 --- a/license-installer.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -if [ "$1" = "--with" -a "$2" = "license_agreement" ]; then - tmp=$(mktemp -d) - SRPMDIR=`rpm --define "_topdir $tmp" --eval "%{_srcrpmdir}"` - BUILDDIR=`rpm --define "_topdir $tmp" --eval "%{_builddir}"` - RPMDIR=`rpm --define "_topdir $tmp" --eval "%{_rpmdir}"` - PACKAGEDIR="$tmp/packages/@BASE_NAME@" - mkdir -p $SRPMDIR $RPMDIR $BUILDDIR $PACKAGEDIR - - if echo "$3" | grep '\.src\.rpm$' >/dev/null; then - ( - if echo "$3" | grep '://' >/dev/null; then - cd $SRPMDIR - wget --passive-ftp -t0 "$3" - else - cp -f "$3" $SRPMDIR - fi - rpm2cpio `basename "$3"` | ( cd $PACKAGEDIR; cpio -i @BASE_NAME@.spec ) - if [ '@COPYSOURCES@' != '@'COPYSOURCES'@' ]; then - rpm2cpio `basename "$3"` | ( cd $PACKAGEDIR; cpio -i @COPYSOURCES@ ) - fi - ) - else - cp -i "$3" $PACKAGEDIR || exit 1 - if [ '@COPYSOURCES@' != '@'COPYSOURCES'@' ]; then - for i in @COPYSOURCES@; do - cp -i @DATADIR@/$i $PACKAGEDIR/$i || exit 1 - done - fi - fi - ( cd $PACKAGEDIR - nd= - if [ '@USE_DISTFILES@' = 'no' ]; then - nd=-nd - fi - /usr/bin/builder --define _topdir $tmp --define _binary_payload w1.gzdio $nd -nm -nc -ncs --with license_agreement --target @TARGET_CPU@ @BASE_NAME@.spec - if [ "$?" -ne 0 ]; then - exit 2 - fi - RPMNAMES="$RPMDIR/@BASE_NAME@-@VERSION@-@RELEASE@wla.@TARGET_CPU@.rpm" - rpm -Uhv $RPMNAMES || echo -e "Install manually the file(s):\n $RPMNAMES" ) -else - if [ "@LICENSE@" != '@'LICENSE'@' ]; then - cat @LICENSE@ - echo " -If you accept the above license rebuild the package using: -" - else - echo " -License issues made us not to include inherent files into -this package by default. If you want to create full working -package please build it with the following command: -" - fi - echo "$0 --with license_agreement @SPECFILE@" -fi -- 2.43.0