Summary: unpacks .zip files such as those made by pkzip under DOS Name: unzip %define version 5.40 %define prefix /usr Version: %{version} Release: 1a Copyright: distributable Group: Utilities/Archiving Source: ftp://sunsite.unc.edu/pub/Linux/utils/compress/unzip540.tar.gz BuildRoot: /tmp/unzip-root %description unzip will list, test, or extract files from a ZIP archive, commonly found on MS-DOS systems. A companion program, zip, creates ZIP archives; both programs are compatible with archives created by PKWARE's PKZIP and PKUNZIP for MS-DOS, but in many cases the program options or default behaviors differ. %prep %setup -n %{name}-%{version} ln -s unix/Makefile Makefile mkdir -p $RPM_BUILD_ROOT%{prefix}/bin mkdir -p $RPM_BUILD_ROOT%{prefix}/man/man1 %build %ifarch i386 make linux %else mv Makefile Makefile.orig sed -e 's;-O3;\$(RPM_OPT_FLAGS);g' \ -e 's;-O2;\$(RPM_OPT_FLAGS);g' \ -e 's;-O;\$(RPM_OPT_FLAGS);g' \ Makefile.orig > Makefile make linux_noasm %endif %install make prefix=$RPM_BUILD_ROOT%{prefix} install strip $RPM_BUILD_ROOT%{prefix}/bin/{unzip,funzip,unzipsfx} %clean rm -rf $RPM_BUILD_ROOT %files %doc README BUGS COPYING INSTALL History* WHERE ToDo %{prefix}/bin/* %{prefix}/man/man1/* %changelog * Thu Dec 23 1999 Keisuke Fujii - updated to version 5.40 * Thu Oct 22 1998 Keisuke Fujii - updated to version 5.32 - use BuildRoot * Tue Oct 21 1997 Erik Troan - builds on non i386 platforms * Mon Oct 20 1997 Otto Hammersmith - updated the version * Thu Jul 10 1997 Erik Troan - built against glibc