forked from pool/unzip
c9df760bc6
Copy from Archiving/unzip based on submit request 29117 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/29117 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/unzip?expand=0&rev=10
97 lines
2.7 KiB
RPMSpec
97 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package unzip (Version 5.52)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
|
|
Name: unzip
|
|
License: BSD3c
|
|
Group: Productivity/Archiving/Compression
|
|
Provides: crunzip
|
|
Obsoletes: crunzip
|
|
AutoReqProv: on
|
|
Version: 5.52
|
|
Release: 143
|
|
Summary: A program to unpack compressed files
|
|
Source: unzip552.tar.bz2
|
|
Url: http://www.info-zip.org/
|
|
Patch: unzip.dif
|
|
Patch1: unzip-iso8859_2.patch
|
|
Patch3: unzip-optflags.patch
|
|
Patch4: unzip-5.52-filename_too_long.patch
|
|
Patch5: unzip-no_file_name_translation.patch
|
|
Patch6: unzip-near-4GB.patch
|
|
Patch7: unzip-CVE-2005-2475.patch
|
|
Patch8: unzip-open_missing_mode.patch
|
|
Patch9: unzip-5.5.2-goo-sec.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
UnZip is an extraction utility for archives compressed in .zip format
|
|
(known as "zip files"). Although highly compatible both with PKWARE's
|
|
PKZIP(tm) and PKUNZIP utilities for MS-DOS and with Info-ZIP's own Zip
|
|
program, our primary objectives have been portability and non-MS-DOS
|
|
functionality. This version can also extract encrypted archives.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Info-ZIP <zip-bugs@lists.wku.edu>
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -p1
|
|
%patch1 -p1
|
|
%patch3
|
|
%patch4
|
|
%patch5
|
|
%patch6
|
|
%patch7
|
|
%patch8
|
|
%patch9
|
|
|
|
%build
|
|
export RPM_OPT_FLAGS="%optflags -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fstack-protector"
|
|
make %{?jobs:-j%jobs} -f unix/Makefile LF2= linux_noasm
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
|
|
for i in unzip funzip unzipsfx; \
|
|
do install $i $RPM_BUILD_ROOT%{_bindir};done;
|
|
ln -s unzip $RPM_BUILD_ROOT%{_bindir}/zipinfo
|
|
install unix/zipgrep $RPM_BUILD_ROOT%{_bindir}
|
|
for i in man/*.1; \
|
|
do \
|
|
install -m 644 $i $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
done
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc %{_mandir}/man1/*
|
|
%doc BUGS COPYING.OLD Contents History.* INSTALL LICENSE README ToDo WHERE
|
|
%doc *.txt proginfo
|
|
%{_bindir}/unzip
|
|
%{_bindir}/funzip
|
|
%{_bindir}/unzipsfx
|
|
%{_bindir}/zipinfo
|
|
%{_bindir}/zipgrep
|
|
|
|
%changelog
|