diff --git a/stuffit/stuffit.spec b/stuffit/stuffit.spec new file mode 100644 index 0000000000..4def5907d9 --- /dev/null +++ b/stuffit/stuffit.spec @@ -0,0 +1,116 @@ +## +## stuffit.spec -- OpenPKG RPM Specification +## Copyright (c) 2000-2003 The OpenPKG Project +## Copyright (c) 2000-2003 Ralf S. Engelschall +## Copyright (c) 2000-2003 Cable & Wireless +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# FIXME: ms: unfortunately currently available for only +# FIXME: ms: Solaris SPARC, Solaris x86, and Linux + +# package information +Name: stuffit +Summary: StuffIt Expander +URL: http://www.stuffit.com/ +Vendor: Aladdin Systems, Inc. +Packager: The OpenPKG Project +Distribution: OpenPKG [EVAL] +Group: Archiver +License: Commercial/Free-Trial +Version: 520.611 +Release: 20030919 + +# 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 +%NoSource 0 +%NoSource 1 +%NoSource 2 + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20030909 +PreReq: OpenPKG, openpkg >= 20030909 +AutoReq: no +AutoReqProv: no + +%description + Stuffit is a compression technology that archives or unarchives + encoded files in multiple compressed and encoded formats. The stuff + command takes a list of files and directories on its command line + and compresses them into an archive or encodes them. The unstuff + command expands archives and decodes encoded files in multiple + compressed and encoded formats. + +%prep + # ensure that sources are available + %integrity + + # conditionally unpack platform-specific sources + %{l_shtool} mkdir -f -m 755 stuffit-%{version} + 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 + ;; + esac + +%build + +%install + # clean any reside from last build + rm -rf $RPM_BUILD_ROOT + + # construct installation hierarchy + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/bin \ + $RPM_BUILD_ROOT%{l_prefix}/man/man1 + + # install files to their target locations + cd stuffit-%{version} + %{l_shtool} install -c -s -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 + + # determine installed files for RPM database + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f stuffit-%{version}/files + +%clean + rm -rf $RPM_BUILD_ROOT +