Summary: A file compression and packaging utility compatible with PKZIP. Name: zip Version: 2.3 Release: 3 License: IBM_ILA Group: Applications/Archiving Source: ftp.uu.net:/pub/archiving/zip/src/zip23.tar.gz Source1: IBM_ILA Url: http://www.info-zip.org/pub/infozip/Zip.html Prefix: %{_prefix} BuildRoot: /var/tmp/zip-root %define DEFCC cc %description The zip program is a compression and file packaging utility. Zip is analogous to a combination of the UNIX tar and compress commands and is compatible with PKZIP (a compression and file packaging utility for MS-DOS systems). Install the zip package if you need to compress files using the zip program. %prep %setup -q # Add license info cat $RPM_SOURCE_DIR/IBM_ILA LICENSE > LICENSE.add mv LICENSE.add LICENSE %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi export TARGET=generic_gcc if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export CFLAGS="$RPM_OPT_FLAGS" export TARGET=generic fi make -f unix/Makefile prefix=%{_prefix} "RPM_OPT_FLAGS=$RPM_OPT_FLAGS" LOCAL_ZIP="-D_LARGE_FILES" $TARGET %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin mkdir -p $RPM_BUILD_ROOT%{_prefix}/man/man1 make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} install ( cd $RPM_BUILD_ROOT for n in zipnote zipsplit zip zipcloak ; do /usr/bin/strip .%{_prefix}/bin/$n 2>/dev/null || : chmod 755 .%{_prefix}/bin/$n done mkdir -p usr/bin cd usr/bin ln -sf ../..%{_prefix}/bin/* . ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc LICENSE README BUGS CHANGES MANUAL TODO WHATSNEW WHERE %doc proginfo/algorith.txt %{_prefix}/bin/zipnote %{_prefix}/bin/zipsplit %{_prefix}/bin/zip %{_prefix}/bin/zipcloak /usr/bin/zipnote /usr/bin/zipsplit /usr/bin/zip /usr/bin/zipcloak %{_prefix}/man/man1/zip.1* %changelog * Fri Nov 22 2002 David Clissold - Add IBM ILA license. * Fri Aug 31 2001 David Clissold - Build with _LARGE_FILES * Wed Mar 21 2001 David Clissold - Change to allow build with non-gcc compiler * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Mon Feb 7 2000 Bill Nottingham - fix some perms * Wed Feb 02 2000 Cristian Gafton - fix description - man pages are compressed * Tue Jan 11 2000 Bill Nottingham - update to 2.3 * Fri Jul 30 1999 Bill Nottingham - update to 2.2 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 8) * Thu Mar 18 1999 Cristian Gafton - updated text in the spec file * Fri Jan 15 1999 Cristian Gafton - patch top build on the arm * Mon Dec 21 1998 Michael Maher - built package for 6.0 * Mon Aug 10 1998 Jeff Johnson - build root * Fri May 08 1998 Prospector System - translations modified for de, fr, tr * Thu Jul 10 1997 Erik Troan - built against glibc