db78402397bdef94b98ef7d185e7210912a4b33b
[platform/upstream/zip.git] / packaging / zip.spec
1 Name:           zip
2 Version:        3.0
3 Release:        1
4 License:        BSD-3-Clause
5 Summary:        File compression program
6 Url:            http://www.info-zip.org/
7 Group:          Productivity/Archiving/Compression
8 Source:         %{name}-%{version}.tar.bz2
9 Source1001:     zip.manifest
10
11 %description
12 Zip is a compression and file packaging utility. It is compatible with
13 PKZIP(tm) 2.04g (Phil Katz ZIP) for MS-DOS systems.
14
15 %prep
16 %setup -q -n zip30
17 cp %{SOURCE1001} .
18
19 %build
20 make %{?_smp_mflags} -f unix/Makefile prefix=/usr CC="gcc %{optflags} -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" generic_gcc
21
22 %install
23 mkdir -p %{buildroot}/usr/bin
24 mkdir -p %{buildroot}%{_mandir}/man1
25 make install -f unix/Makefile BINDIR=%{buildroot}/usr/bin MANDIR=%{buildroot}%{_mandir}/man1
26
27 %docs_package
28
29 %files
30 %manifest %{name}.manifest
31 %defattr(-,root,root)
32 %doc LICENSE
33 %{_bindir}/zip
34 %{_bindir}/zipcloak
35 %{_bindir}/zipnote
36 %{_bindir}/zipsplit
37
38 %changelog