source: spec/trunk/SPECS/unzip.spec@ 1330

Last change on this file since 1330 was 931, checked in by herwigb, 9 years ago

spec: unzip: Release version 6.0-6.

File size: 2.0 KB
Line 
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
6Summary: A utility for unpacking zip files
7Name: unzip
8Version: 6.0
9Release: 6%{?dist}
10License: BSD
11Group: Applications/Archiving
12Vendor: bww bitwise works GmbH
13Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
14
15
16URL: http://www.info-zip.org/UnZip.html
17BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18BuildRequires: bzip2-devel
19Requires: bzip2
20
21%description
22The unzip utility is used to list, test, or extract files from a zip
23archive. Zip archives are commonly found on MS-DOS systems. The zip
24utility, included in the zip package, creates zip archives. Zip and
25unzip are both compatible with archives created by PKWARE(R)'s PKZIP
26for MS-DOS, but the programs' options and default behaviors do differ
27in some respects.
28
29Install the unzip package if you need to list, test or extract files from
30a 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
41svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
42rm -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
47make -f os2/Makefile.os2 CFLAGS="$RPM_OPT_FLAGS" klibc %{?_smp_mflags}
48
49%install
50rm -rf $RPM_BUILD_ROOT
51make -f os2/Makefile.os2 prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 INSTALL="cp -p" install
52
53%clean
54rm -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.
Note: See TracBrowser for help on using the repository browser.