OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 09-Feb-2004 13:45:14
Branch: HEAD Handle: 2004020912451400
Modified files:
openpkg-src/stuffit stuffit.spec
Log:
cleanup packaging and add FreeBSD support
Summary:
Revision Changes Path
1.6 +22 -30 openpkg-src/stuffit/stuffit.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/stuffit/stuffit.spec
============================================================================
$ cvs diff -u -r1.5 -r1.6 stuffit.spec
--- openpkg-src/stuffit/stuffit.spec 7 Feb 2004 17:59:01 -0000 1.5
+++ openpkg-src/stuffit/stuffit.spec 9 Feb 2004 12:45:14 -0000 1.6
@@ -23,8 +23,9 @@
## SUCH DAMAGE.
##
-# FIXME: ms: unfortunately currently available for only
-# FIXME: ms: Solaris SPARC, Solaris x86, and Linux
+# package version
+%define V_real 5.2.0.611
+%define V_dist 520.611
# package information
Name: stuffit
@@ -36,13 +37,13 @@
Class: EVAL
Group: Archiver
License: Commercial/Free-Trial
-Version: 520.611
-Release: 20040207
+Version: %{V_real}
+Release: 20040209
# list of sources
-Source0:
http://www.aladdinsys.com/downloads/files/stuffit520.611solaris-i386.tar.gz
-Source1:
http://www.aladdinsys.com/downloads/files/stuffit520.611solaris-sparc.tar.gz
-Source2:
http://www.aladdinsys.com/downloads/files/stuffit520.611linux-i386.tar.gz
+Source0:
http://www.aladdinsys.com/downloads/files/stuffit%{V_dist}solaris-i386.tar.gz
+Source1:
http://www.aladdinsys.com/downloads/files/stuffit%{V_dist}solaris-sparc.tar.gz
+Source2:
http://www.aladdinsys.com/downloads/files/stuffit%{V_dist}linux-i386.tar.gz
%NoSource 0
%NoSource 1
%NoSource 2
@@ -73,28 +74,21 @@
}
%prep
- # conditionally unpack platform-specific sources
- %{l_shtool} mkdir -f -m 755 stuffit-%{version}
+ %setup -q -T -c
case "%{l_platform -t}" in
- ix86-sunos* )
- %{l_gzip} -dc %{SOURCE0} | %{l_tar} xf - -C stuffit-%{version}
- ;;
- sun*-sunos* )
- %{l_gzip} -dc %{SOURCE1} | %{l_tar} xf - -C stuffit-%{version}
- ;;
- *-linux* )
- %{l_gzip} -dc %{SOURCE2} | %{l_tar} xf - -C stuffit-%{version}
- ;;
- * )
- echo "Sorry, platform %{l_platform -t} not supported" 1>&2
- exit 1
- ;;
+ ix86-sunos* ) %{l_gzip} -dc %{SOURCE0} | %{l_tar} xf - ;;
+ sun*-sunos* ) %{l_gzip} -dc %{SOURCE1} | %{l_tar} xf - ;;
+ *-linux* | *-freebsd* ) %{l_gzip} -dc %{SOURCE2} | %{l_tar} xf - ;;
+ * ) echo "Sorry, platform %{l_platform -t} not supported" 1>&2; exit 1 ;;
esac
%build
+ # optionally brand executables
+ case "%{l_platform -t}" in
+ *-freebsd* ) brandelf -t Linux bin/* ;;
+ esac
%install
- # clean any reside from last build
rm -rf $RPM_BUILD_ROOT
# construct installation hierarchy
@@ -103,20 +97,18 @@
$RPM_BUILD_ROOT%{l_prefix}/man/man1
# install files to their target locations
- cd stuffit-%{version}
- %{l_shtool} install -c -s -m 755 \
+ %{l_shtool} install -c -m 755 \
bin/* $RPM_BUILD_ROOT%{l_prefix}/bin/
%{l_shtool} install -c -m 644 \
man/man1/* $RPM_BUILD_ROOT%{l_prefix}/man/man1/
- # rename the too generic register command
- mv $RPM_BUILD_ROOT%{l_prefix}/bin/register \
- $RPM_BUILD_ROOT%{l_prefix}/bin/regsit
+ # remove the too generic register command
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/register
- # determine installed files for RPM database
+ # determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
-%files -f stuffit-%{version}/files
+%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]