Browse code

Added unzipsfx, zipgrep and zipinfo to unzip rpm (bug 1656519)

Change-Id: I0caa4bad9e2f7140b4c2bbbb2445c878fddb4415
Reviewed-on: http://photon-jenkins.eng.vmware.com/850
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: suezzelur <anishs@vmware.com>

nickshize authored on 2016/05/10 18:15:05
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Unzip-6.0
2 2
 Name:		unzip
3 3
 Version:	6.0
4
-Release:	3%{?dist}
4
+Release:	4%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://www.gnu.org/software/%{name}
7 7
 Source0:	http://downloads.sourceforge.net/infozip/unzip60.tar.gz
... ...
@@ -16,9 +16,11 @@ Patch0: cve-2014-9636.patch
16 16
 The UnZip package contains ZIP extraction utilities. These are useful 
17 17
 for extracting files from ZIP archives. ZIP archives are created 
18 18
 with PKZIP or Info-ZIP utilities, primarily in a DOS environment.
19
+
19 20
 %prep
20 21
 %setup -qn unzip60
21 22
 %patch0 -p1
23
+
22 24
 %build
23 25
 case `uname -m` in
24 26
   i?86)
... ...
@@ -30,20 +32,29 @@ case `uname -m` in
30 30
     make -f unix/Makefile linux_noasm %{?_smp_mflags}
31 31
     ;;
32 32
 esac
33
+
33 34
 %install
34 35
 install -v -m755 -d %{buildroot}%{_bindir}
35 36
 make DESTDIR=%{buildroot} prefix=%{_prefix} install
36 37
 cp %{_builddir}/unzip60/funzip %{buildroot}%{_bindir}
37 38
 cp %{_builddir}/unzip60/unzip %{buildroot}%{_bindir}
39
+cp %{_builddir}/unzip60/unzipsfx %{buildroot}%{_bindir}
40
+cp %{_builddir}/unzip60/unix/zipgrep %{buildroot}%{_bindir}
41
+ln -sf unzip %{buildroot}%{_bindir}/zipinfo
42
+
38 43
 %check
39 44
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
45
+
40 46
 %files
41 47
 %defattr(-,root,root)
42 48
 %{_bindir}/*
49
+
43 50
 %changelog
44
-*   Sat Aug 15 2015 Sharath George <sharathg@vmware.com> 6.0.1-3
45
--   Added patch for CVE-2014-9636
46
-*   Wed May 20 2015 Touseef Liaqat <tliaqat@vmware.com> 6.0.1-2
47
--   Updated group.
51
+*	Tue May 10 2016 Nick Shi <nshi@vmware.com> 6.0-4
52
+-	Added unzipsfx, zipgrep and zipinfo to unzip rpm
53
+*	Sat Aug 15 2015 Sharath George <sharathg@vmware.com> 6.0-3
54
+-	Added patch for CVE-2014-9636
55
+*	Wed May 20 2015 Touseef Liaqat <tliaqat@vmware.com> 6.0-2
56
+-	Updated group.
48 57
 *	Mon Nov 24 2014 Divya Thaluru <dthaluru@vmware.com> 6.0-1
49 58
 -	Initial build. First version