Bumpt to xz 5.2.4 accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix accepted/tizen_6.0_base_tool_hotfix sandbox/dh0128.kwak/xz_5.2.4 tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv tizen_6.0_base_hotfix accepted/tizen/5.5/base/20191030.084517 accepted/tizen/5.5/base/mobile/hotfix/20201023.084017 accepted/tizen/5.5/base/wearable/hotfix/20201023.080407 accepted/tizen/6.0/base/20201029.105953 accepted/tizen/6.0/base/tool/20201029.111651 accepted/tizen/6.0/base/tool/hotfix/20201030.124456 accepted/tizen/6.0/base/tool/hotfix/20201102.085613 accepted/tizen/base/20181214.154430 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171502 submit/tizen_5.5_base_wearable_hotfix/20201023.155602 submit/tizen_6.0_base/20201029.184802 submit/tizen_6.0_base_hotfix/20201030.192502 submit/tizen_6.0_base_hotfix/20201102.162702 submit/tizen_base/20181211.024740 tizen_5.5.m2_release tizen_6.0.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 11 Dec 2018 02:43:02 +0000 (11:43 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 11 Dec 2018 02:43:02 +0000 (11:43 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

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

[Problem] version upgrade
[Cause & Measure]
[Checking Method] unit test

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

Change-Id: Ic2fa2e2a01f56f061c879dc5f212a4e0bc30aa2c
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/baselibs.conf [new file with mode: 0644]
packaging/xz.changes [new file with mode: 0644]
packaging/xz.manifest [new file with mode: 0644]
packaging/xz.spec [new file with mode: 0644]
src/lzmainfo/Makefile.am
src/xz/Makefile.am
src/xzdec/Makefile.am

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..2b640ab
--- /dev/null
@@ -0,0 +1,4 @@
+liblzma
+xz-devel
+       requires -xz-<targettype>
+       requires "liblzma-<targettype> = <version>"
diff --git a/packaging/xz.changes b/packaging/xz.changes
new file mode 100644 (file)
index 0000000..e7c5316
--- /dev/null
@@ -0,0 +1,3 @@
+* Mon Mar 18 2013 Anas Nashif <anas.nashif@intel.com> upstream/5.0.3@5423f60
+- Fixed package group
+
diff --git a/packaging/xz.manifest b/packaging/xz.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/xz.spec b/packaging/xz.spec
new file mode 100644 (file)
index 0000000..58a71bb
--- /dev/null
@@ -0,0 +1,130 @@
+%if "%{run_tests}" == "1" 
+    %define __spec_check_pre %___build_pre
+    %define check %%check
+%endif
+
+Name:           xz
+Version:        5.2.4
+Release:        0
+License:        LGPL-2.1 and GPL-2.0
+Summary:        A Program for Compressing Files
+Url:            http://tukaani.org/lzma/
+Group:          Base/Compression
+Source:         http://tukaani.org/xz/%{name}-%{version}.tar.bz2
+Source2:        baselibs.conf
+Source1001:     xz.manifest
+BuildRequires:  pkgconfig
+BuildRequires:  gettext-devel
+BuildRequires:  xz
+Provides:       lzma = %{version}
+Obsoletes:      lzma < %{version}
+
+%ifarch %{arm}
+%define do_profiling 0
+%endif
+
+# avoid bootstrapping problem
+%define _binary_payload w9.bzdio
+
+%description
+The xz command is a very powerful program for compressing files.
+
+* Average compression ratio of LZMA is about 30% better than that of
+   gzip, and 15% better than that of bzip2.
+
+* Decompression speed is only little slower than that of gzip, being
+   two to five times faster than bzip2.
+
+* In fast mode, compresses faster than bzip2 with a comparable
+   compression ratio.
+
+* Achieving the best compression ratios takes four to even twelve
+   times longer than with bzip2. However. this doesn't affect
+   decompressing speed.
+
+* Very similar command line interface to what gzip and bzip2 have.
+
+%package -n liblzma
+Summary:        LZMA library
+Group:          Base/Libraries
+
+%description -n liblzma
+Library for encoding/decoding LZMA files.
+
+%package devel
+Summary:        Development package for the LZMA library
+Group:          Base/Libraries
+Requires:       liblzma = %{version}
+Provides:       lzma-devel = %{version}
+Obsoletes:      lzma-devel < %{version}
+Provides:       lzma-alpha-devel = %{version}
+Obsoletes:      lzma-alpha-devel < %{version}
+
+%description devel
+This package contains the header files and libraries needed for
+compiling programs using the LZMA library.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%autogen
+%if %{do_profiling}
+profiledir=$(mktemp -d)
+trap "rm -rf $profiledir" EXIT
+export CFLAGS="%{optflags} %{cflags_profile_generate}=$profiledir"
+%endif
+
+%if "%{asan}" == "1"
+export PTHREAD_LIBS=" -lpthread "
+%endif
+
+%configure --disable-static --with-pic --docdir=%{_docdir}/%{name}
+%__make %{?_smp_mflags}
+%if %{do_profiling}
+time %__make check
+%__make clean
+export CFLAGS="%{optflags} %{cflags_profile_feedback}=$profiledir -Wno-coverage-mismatch"
+%configure --disable-static --with-pic --docdir=%{_docdir}/%{name}
+%__make %{?_smp_mflags}
+%endif
+
+%check
+time %__make check
+
+%install
+%make_install
+# License shouldn't be packaged as documentation
+rm -f %{buildroot}%{_docdir}/%{name}/COPYING*
+%find_lang %{name}
+
+%post -n liblzma -p /sbin/ldconfig
+
+%postun -n liblzma -p /sbin/ldconfig
+
+%lang_package
+
+%docs_package
+
+%files
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%license COPYING COPYING.LGPLv2.1
+%{_docdir}/%{name}
+%{_bindir}/*
+
+%files -n liblzma
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%license COPYING
+%{_libdir}/lib*.so.5*
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%license COPYING
+%{_includedir}/*.h
+%{_includedir}/lzma
+%{_libdir}/lib*.so
+%{_libdir}/pkgconfig/*.pc
index ff7172b..6686452 100644 (file)
@@ -20,8 +20,9 @@ lzmainfo_CPPFLAGS = \
        -DLOCALEDIR=\"$(localedir)\" \
        -I$(top_srcdir)/src/common \
        -I$(top_srcdir)/src/liblzma/api \
-       -I$(top_builddir)/lib
+       -I$(top_builddir)/lib -fPIC
 
+lzmainfo_LDFLAGS = -pie
 lzmainfo_LDADD = $(top_builddir)/src/liblzma/liblzma.la
 
 if COND_GNULIB
index 0890aad..fbc8f35 100644 (file)
@@ -51,9 +51,10 @@ xz_CPPFLAGS = \
        -DLOCALEDIR=\"$(localedir)\" \
        -I$(top_srcdir)/src/common \
        -I$(top_srcdir)/src/liblzma/api \
-       -I$(top_builddir)/lib
+       -I$(top_builddir)/lib -fPIC
 
 xz_LDADD = $(top_builddir)/src/liblzma/liblzma.la $(CAPSICUM_LIB)
+xz_LDFLAGS = -pie
 
 if COND_GNULIB
 xz_LDADD += $(top_builddir)/lib/libgnu.a
index 5ff8e37..c86322f 100644 (file)
@@ -25,8 +25,9 @@ xzdec_CPPFLAGS = \
        -DTUKLIB_GETTEXT=0 \
        -I$(top_srcdir)/src/common \
        -I$(top_srcdir)/src/liblzma/api \
-       -I$(top_builddir)/lib
+       -I$(top_builddir)/lib -fPIC
 xzdec_LDADD = $(top_builddir)/src/liblzma/liblzma.la
+xzdec_LDFLAGS = -pie
 
 if COND_GNULIB
 xzdec_LDADD += $(top_builddir)/lib/libgnu.a