source: spec/trunk/SPECS/zip.spec@ 150

Last change on this file since 150 was 140, checked in by Yuri Dario, 15 years ago

spec: zip&unzip build update.

File size: 1.4 KB
Line 
1Summary: A file compression and packaging utility compatible with PKZIP
2Name: zip
3Version: 3.0
4Release: 3%{?dist}
5License: BSD
6Group: Applications/Archiving
7Source: http://downloads.sourceforge.net/infozip/zip30.tar.gz
8URL: http://www.info-zip.org/Zip.html
9
10Patch0: zip-os2.diff
11
12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14%description
15The zip program is a compression and file packaging utility. Zip is
16analogous to a combination of the UNIX tar and compress commands and
17is compatible with PKZIP (a compression and file packaging utility for
18MS-DOS systems).
19
20Install the zip package if you need to compress files using the zip
21program.
22
23%prep
24%setup -q -n zip30
25%patch0 -p1 -b .os2~
26
27%build
28export CFLAGS="$RPM_OPT_FLAGS"
29make -f os2/Makefile.os2 prefix=%{_prefix} klibc %{?_smp_mflags}
30
31%install
32rm -rf $RPM_BUILD_ROOT
33mkdir -p $RPM_BUILD_ROOT%{_bindir}
34mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
35
36make -f os2/Makefile.os2 prefix=$RPM_BUILD_ROOT%{_prefix} \
37 MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install
38
39%clean
40rm -rf $RPM_BUILD_ROOT
41
42%files
43%defattr(-,root,root,-)
44%doc README CHANGES TODO WHATSNEW WHERE LICENSE README.CR
45%doc proginfo/algorith.txt
46%{_bindir}/zipnote.exe
47%{_bindir}/zipsplit.exe
48%{_bindir}/zip.exe
49%{_bindir}/zipcloak.exe
50%{_mandir}/man1/zip.1*
51%{_mandir}/man1/zipcloak.1*
52%{_mandir}/man1/zipnote.1*
53%{_mandir}/man1/zipsplit.1*
54
55%changelog
Note: See TracBrowser for help on using the repository browser.