| 1 | Summary: A file compression and packaging utility compatible with PKZIP | 
|---|
| 2 | Name: zip | 
|---|
| 3 | Version: 3.0 | 
|---|
| 4 | Release: 6%{?dist} | 
|---|
| 5 | License: BSD | 
|---|
| 6 | Group: Applications/Archiving | 
|---|
| 7 | Source: http://downloads.sourceforge.net/infozip/zip30.tar.gz | 
|---|
| 8 | URL: http://www.info-zip.org/Zip.html | 
|---|
| 9 |  | 
|---|
| 10 | Patch0: zip-os2.diff | 
|---|
| 11 |  | 
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | 
|---|
| 13 |  | 
|---|
| 14 | %description | 
|---|
| 15 | The zip program is a compression and file packaging utility.  Zip is | 
|---|
| 16 | analogous to a combination of the UNIX tar and compress commands and | 
|---|
| 17 | is compatible with PKZIP (a compression and file packaging utility for | 
|---|
| 18 | MS-DOS systems). | 
|---|
| 19 |  | 
|---|
| 20 | Install the zip package if you need to compress files using the zip | 
|---|
| 21 | program. | 
|---|
| 22 |  | 
|---|
| 23 | %prep | 
|---|
| 24 | %setup -q -n zip30 | 
|---|
| 25 | %patch0 -p1 -b .os2~ | 
|---|
| 26 |  | 
|---|
| 27 | %build | 
|---|
| 28 | export CFLAGS="$RPM_OPT_FLAGS" | 
|---|
| 29 | export MAKESHELL="/@unixroot/usr/bin/sh.exe" | 
|---|
| 30 | make -f os2/Makefile.os2 prefix=%{_prefix} klibc %{?_smp_mflags} | 
|---|
| 31 |  | 
|---|
| 32 | %install | 
|---|
| 33 | export MAKESHELL="/@unixroot/usr/bin/sh.exe" | 
|---|
| 34 | rm -rf $RPM_BUILD_ROOT | 
|---|
| 35 | mkdir -p $RPM_BUILD_ROOT%{_bindir} | 
|---|
| 36 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 | 
|---|
| 37 |  | 
|---|
| 38 | make -f os2/Makefile.os2 prefix=$RPM_BUILD_ROOT%{_prefix} \ | 
|---|
| 39 | MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install | 
|---|
| 40 |  | 
|---|
| 41 | %clean | 
|---|
| 42 | rm -rf $RPM_BUILD_ROOT | 
|---|
| 43 |  | 
|---|
| 44 | %files | 
|---|
| 45 | %defattr(-,root,root,-) | 
|---|
| 46 | %doc README CHANGES TODO WHATSNEW WHERE LICENSE README.CR | 
|---|
| 47 | %doc proginfo/algorith.txt | 
|---|
| 48 | %{_bindir}/zipnote.exe | 
|---|
| 49 | %{_bindir}/zipsplit.exe | 
|---|
| 50 | %{_bindir}/zip.exe | 
|---|
| 51 | %{_bindir}/zipcloak.exe | 
|---|
| 52 | %{_mandir}/man1/zip.1* | 
|---|
| 53 | %{_mandir}/man1/zipcloak.1* | 
|---|
| 54 | %{_mandir}/man1/zipnote.1* | 
|---|
| 55 | %{_mandir}/man1/zipsplit.1* | 
|---|
| 56 |  | 
|---|
| 57 | %changelog | 
|---|
| 58 | * Wed Jul 24 2013 yd | 
|---|
| 59 | - r659, added support for archive bit clearing by Alex Taylor. Ticket:21. | 
|---|
| 60 |  | 
|---|
| 61 | * Fri Mar 29 2013 yd | 
|---|
| 62 | - r614 r615, restore default behaviour for symlink storage. Ticket:18. | 
|---|