From: DongHun Kwak Date: Wed, 4 Jul 2018 02:30:44 +0000 (+0900) Subject: Bump to unzip 610c23 X-Git-Tag: accepted/tizen/5.0/base/20181101.091510^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_5.5_tv;p=platform%2Fupstream%2Funzip.git Bump to unzip 610c23 - 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 --- diff --git a/packaging/unzip.manifest b/packaging/unzip.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/unzip.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/unzip.spec b/packaging/unzip.spec new file mode 100644 index 0000000..a32083d --- /dev/null +++ b/packaging/unzip.spec @@ -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}/* diff --git a/unix/Makefile b/unix/Makefile index aa889d0..ed78be4 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -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)'" \ diff --git a/unix/configure b/unix/configure index 3da3643..7497d37 100755 --- a/unix/configure +++ b/unix/configure @@ -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