1 | #define svn_url e:/trees/unzip/trunk
|
---|
2 | %define svn_url http://svn.netlabs.org/repos/ports/unzip/trunk
|
---|
3 | %define svn_rev 1929
|
---|
4 |
|
---|
5 |
|
---|
6 | Summary: A utility for unpacking zip files
|
---|
7 | Name: unzip
|
---|
8 | Version: 6.0
|
---|
9 | Release: 6%{?dist}
|
---|
10 | License: BSD
|
---|
11 | Group: Applications/Archiving
|
---|
12 | Vendor: bww bitwise works GmbH
|
---|
13 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
---|
14 |
|
---|
15 |
|
---|
16 | URL: http://www.info-zip.org/UnZip.html
|
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
---|
18 | BuildRequires: bzip2-devel
|
---|
19 | Requires: bzip2
|
---|
20 |
|
---|
21 | %description
|
---|
22 | The unzip utility is used to list, test, or extract files from a zip
|
---|
23 | archive. Zip archives are commonly found on MS-DOS systems. The zip
|
---|
24 | utility, included in the zip package, creates zip archives. Zip and
|
---|
25 | unzip are both compatible with archives created by PKWARE(R)'s PKZIP
|
---|
26 | for MS-DOS, but the programs' options and default behaviors do differ
|
---|
27 | in some respects.
|
---|
28 |
|
---|
29 | Install the unzip package if you need to list, test or extract files from
|
---|
30 | a zip archive.
|
---|
31 |
|
---|
32 |
|
---|
33 | %debug_package
|
---|
34 |
|
---|
35 |
|
---|
36 | %prep
|
---|
37 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
---|
38 | %setup -q
|
---|
39 | %else
|
---|
40 | %setup -n "%{name}-%{version}" -Tc
|
---|
41 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
---|
42 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
---|
43 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
---|
44 | %endif
|
---|
45 |
|
---|
46 | %build
|
---|
47 | make -f os2/Makefile.os2 CFLAGS="$RPM_OPT_FLAGS" klibc %{?_smp_mflags}
|
---|
48 |
|
---|
49 | %install
|
---|
50 | rm -rf $RPM_BUILD_ROOT
|
---|
51 | make -f os2/Makefile.os2 prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 INSTALL="cp -p" install
|
---|
52 |
|
---|
53 | %clean
|
---|
54 | rm -rf $RPM_BUILD_ROOT
|
---|
55 |
|
---|
56 | %files
|
---|
57 | %defattr(-,root,root)
|
---|
58 | %doc README BUGS LICENSE
|
---|
59 | %{_bindir}/*.exe
|
---|
60 | %{_bindir}/*.cmd
|
---|
61 | %{_mandir}/*/*
|
---|
62 |
|
---|
63 | %changelog
|
---|
64 | * Thu Jan 19 2017 Herwig Bauernfeild <herwig.bauernfeind@bitwiseworks.com> 6.0-6
|
---|
65 | - fix wildcards ticket #136
|
---|
66 |
|
---|
67 | * Fri Mar 29 2013 yd
|
---|
68 | - r616, enable symlink support also for OS/2 code. ticket:18.
|
---|