Bump to unzip 610c23 accepted/tizen_5.0_base accepted/tizen_5.5_base_mobile_hotfix sandbox/dh0128.kwak/unzip_610c23 tizen_5.5_base_mobile_hotfix tizen_5.5_tv accepted/tizen/5.0/base/20181101.091510 accepted/tizen/5.5/base/20191030.084659 accepted/tizen/5.5/base/mobile/hotfix/20201023.083947 accepted/tizen/base/20180706.152811 submit/tizen_5.0_base/20181101.000002 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171502 submit/tizen_base/20180704.041154 tizen_5.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 4 Jul 2018 02:30:44 +0000 (11:30 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 4 Jul 2018 02:30:44 +0000 (11:30 +0900)
 - ASLP Patch

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] version upgrade
[Cause & Measure] unzip 6.0 -> 610c23
[Checking Method] unzip unit test

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: I0549c162777ac75211006e4f8770de90f280cdcb
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/unzip.manifest [new file with mode: 0644]
packaging/unzip.spec [new file with mode: 0644]
unix/Makefile
unix/configure

diff --git a/packaging/unzip.manifest b/packaging/unzip.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/unzip.spec b/packaging/unzip.spec
new file mode 100644 (file)
index 0000000..a32083d
--- /dev/null
@@ -0,0 +1,40 @@
+Name:           unzip
+Version:        610c23
+Release:        0
+License:        BSD
+Summary:        A utility for unpacking zip files
+Url:            http://www.info-zip.org/pub/infozip/UnZip.html
+Group:          Applications/Archiving
+Source:         unzip%{version}.tar.gz
+Source1001:    unzip.manifest
+
+%description
+The unzip utility is used to list, test, or extract files from a zip
+archive.  Zip archives are commonly found on MS-DOS systems.  The zip
+utility, included in the zip package, creates zip archives.  Zip and
+unzip are both compatible with archives created by PKWARE(R)'s PKZIP
+for MS-DOS, but the programs' options and default behaviors do differ
+in some respects.
+
+Install the unzip package if you need to list, test or extract files from
+a zip archive.
+
+%prep
+%setup -q -n %{name}%{version}
+cp %{SOURCE1001} .
+ln -s unix/Makefile Makefile
+
+%build
+export LDFLAGS+=" -Wl,-z,relro -pie "
+make %{?_smp_mflags} LOCAL_UNZIP=-DIZ_HAVE_UXUIDGID generic
+
+%install
+make PREFIX=%{buildroot}%{_prefix} MANDIR=%{buildroot}/%{_mandir}/man1 INSTALL="cp -p" install
+
+%remove_docs
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%license LICENSE
+%{_bindir}/*
index aa889d0..ed78be4 100644 (file)
@@ -359,7 +359,7 @@ CC      = cc
 CC_BZ   = $(CC)
 
 CF_NOOPT = -I. -DUNIX $(LOCAL_UNZIP)
-CFLAGS  = -O
+CFLAGS  = -O3 -fPIC
 CF      = $(CFLAGS) $(CF_NOOPT)         # C compiler flags (core components)
 CF_BZ   = $(CF)                         # C compiler flags (BZIP2 components)
 
@@ -374,8 +374,10 @@ AF      = $(LOCAL_UNZIP)
 # - CC and LD must match, else "unresolved symbol: ___main" is possible.
 # - To use "gcc", specify "make" macro, "CC=gcc", instead of editing here.
 LD      = $(CC)
-LF1     =
-LF2     = -s
+LF1     = $(LDFLAGS)
+LFLAGS1 = $(LDFLAGS)
+#LF2     = -s
+LF2     =
 
 # Other utility programs
 AR      = ar cq
@@ -1197,7 +1199,7 @@ $(PROD)/flags: unix/configure
          "PROD='$(PROD)'" \
          "LIST='$(LIST)'" \
          "CC='$(CC)'" \
-         "CFLAGS='$(LOCAL_UNZIP)'" \
+         "CFLAGS='$(CFLAGS) $(LOCAL_UNZIP)'" \
          "LFLAGS1='$(LFLAGS1)'" \
          "LFLAGS2='$(LFLAGS2)'" \
          "NO_AES_WG='$(NO_AES_WG)'" \
index 3da3643..7497d37 100755 (executable)
@@ -226,7 +226,7 @@ CC=${CC:-cc}                               # C compiler name (core components)
 CC_BZ=${CC_BZ:-${CC}}                      # C compiler name (BZIP2 components)
 CC_LIST=''                                 # C compiler name, if LIST enabled
 CFLAGS=${CFLAGS:-}' -I.'                   # C compiler flags (core components)
-CFLAGS_BZ=${CFLAGS_BZ:-}' -I.'             # C cmplr flags (BZIP2 components)
+CFLAGS_BZ=${CFLAGS:-}' -I.'                # C cmplr flags (BZIP2 components)
 CFLAGS_OPT=${CFLAGS_OPT:-}                 # C cmplr optimze (and list) options
 CFLAGS_USR=${LOCAL_UNZIP:-}                # C compiler user override options