From 6f88b5eafa782eeb32bbc16476dab5d23c0b3ad71333c12ac9a0985e15255bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Fri, 5 Apr 2013 14:09:02 +0000 Subject: [PATCH] Accepting request 162748 from home:namtrac:bugfix - Cleanup spec file - Add Source URL, see https://en.opensuse.org/SourceUrls OBS-URL: https://build.opensuse.org/request/show/162748 OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=23 --- unzip.changes | 6 ++++++ unzip.spec | 35 ++++++++++++----------------------- unzip60.tar.bz2 | 3 --- unzip60.tar.gz | 3 +++ 4 files changed, 21 insertions(+), 26 deletions(-) delete mode 100644 unzip60.tar.bz2 create mode 100644 unzip60.tar.gz diff --git a/unzip.changes b/unzip.changes index a1ceca5..843396c 100644 --- a/unzip.changes +++ b/unzip.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 5 10:07:44 UTC 2013 - idonmez@suse.com + +- Cleanup spec file +- Add Source URL, see https://en.opensuse.org/SourceUrls + ------------------------------------------------------------------- Fri Aug 5 13:57:24 CEST 2011 - pth@suse.de diff --git a/unzip.spec b/unzip.spec index 950cb9a..6abdb0b 100644 --- a/unzip.spec +++ b/unzip.spec @@ -1,7 +1,7 @@ # # spec file for package unzip # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 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 @@ -16,17 +16,15 @@ # - Name: unzip -License: BSD3c -Group: Productivity/Archiving/Compression -AutoReqProv: on Version: 6.00 -Release: 12 +Release: 0 %define fileversion 60 Summary: A program to unpack compressed files -Source: %{name}%{fileversion}.tar.bz2 +License: BSD-3-Clause +Group: Productivity/Archiving/Compression Url: http://www.info-zip.org/ +Source: http://sourceforge.net/projects/infozip/files/UnZip%206.x%20%28latest%29/UnZip%206.0/%{name}%{fileversion}.tar.gz Patch0: unzip.dif Patch1: unzip-iso8859_2.patch Patch3: unzip-optflags.patch @@ -36,9 +34,9 @@ Patch8: unzip-open_missing_mode.patch Patch10: unzip-5.52-use_librcc.patch Patch11: unzip-no-build-date.patch Patch12: unzip-dont_call_isprint.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: librcc-devel Suggests: librcc0 +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description UnZip is an extraction utility for archives compressed in .zip format @@ -47,12 +45,6 @@ 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 - %prep %setup -q -n %{name}%{fileversion} %patch0 @@ -66,7 +58,7 @@ Authors: %patch12 %build -export RPM_OPT_FLAGS="%optflags \ +export RPM_OPT_FLAGS="%{optflags} \ -D_GNU_SOURCE -DRCC_LAZY -DWILD_STOP_AT_DIR \ -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT \ -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \ @@ -78,19 +70,16 @@ make %{?_smp_mflags} -f unix/Makefile LF2="-ldl" linux_noasm make -f unix/Makefile check %install -mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} +mkdir -p %{buildroot}{%{_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} +do install $i %{buildroot}%{_bindir};done; +ln -s unzip %{buildroot}%{_bindir}/zipinfo +install unix/zipgrep %{buildroot}%{_bindir} for i in man/*.1; \ do \ - install -m 644 $i $RPM_BUILD_ROOT%{_mandir}/man1/ + install -m 644 $i %{buildroot}%{_mandir}/man1/ done -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr(-,root,root) %doc %{_mandir}/man1/* diff --git a/unzip60.tar.bz2 b/unzip60.tar.bz2 deleted file mode 100644 index 477a8c1..0000000 --- a/unzip60.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8ce25f541563a112b077b4d61cfabee81d3d98b99c9ce60cf51266703dce9b2 -size 1063255 diff --git a/unzip60.tar.gz b/unzip60.tar.gz new file mode 100644 index 0000000..9038c9b --- /dev/null +++ b/unzip60.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37 +size 1376845