Bump to version 5.1.3 accepted/tizen_3.0_ivi accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable sandbox/kevinthierry/bump-5.1.3 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0_ivi accepted/tizen/base/20151223.052351 accepted/tizen/common/20150107.100711 accepted/tizen/ivi/20150114.121604 accepted/tizen/mobile/20150129.040547 accepted/tizen/tv/20150324.014633 accepted/tizen/wearable/20150129.005549 submit/tizen_base/20151223.111112 submit/tizen_common/20150106.091514 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_ivi/20150112.222222 submit/tizen_mobile/20150128.000000 submit/tizen_tv/20150130.050505 submit/tizen_tv/20150320.000000 submit/tizen_tv/20150323.000000 submit/tizen_wearable/20150127.000002 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Fri, 31 Oct 2014 10:28:30 +0000 (11:28 +0100)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 6 Nov 2014 14:14:12 +0000 (15:14 +0100)
Use source from upstream git repo instead of pristin-tar.

Also update spec file.

Bug-Tizen: TC-1880
Change-Id: I853213b13e5c144f04e4caa83843a583252a28f1
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
packaging/xz.spec

index 52940da..d684b24 100644 (file)
@@ -1,14 +1,16 @@
 Name:           xz
-Version:        5.0.3
+Version:        5.1.3
 Release:        0
 License:        LGPL-2.1+ and GPL-2.0+
 Summary:        A Program for Compressing Files
 Url:            http://tukaani.org/lzma/
-Group:          Base/Tools
+Group:          Base/Compression
 Source:         http://tukaani.org/xz/%{name}-%{version}.tar.bz2
 Source2:        baselibs.conf
-Source1001:    xz.manifest
+Source1001:     xz.manifest
 BuildRequires:  pkgconfig
+BuildRequires:  gettext-devel
+BuildRequires:  xz
 Provides:       lzma = %{version}
 Obsoletes:      lzma < %{version}
 
@@ -39,14 +41,14 @@ The xz command is a very powerful program for compressing files.
 
 %package -n liblzma
 Summary:        LZMA library
-Group:          System/Libraries
+Group:          Base/Libraries
 
 %description -n liblzma
 Library for encoding/decoding LZMA files.
 
 %package devel
 Summary:        Development package for the LZMA library
-Group:          Development/Libraries
+Group:          Base/Libraries
 Requires:       liblzma = %{version}
 Provides:       lzma-devel = %{version}
 Obsoletes:      lzma-devel < %{version}
@@ -62,26 +64,29 @@ compiling programs using the LZMA library.
 cp %{SOURCE1001} .
 
 %build
+%autogen
 %if %{do_profiling}
 profiledir=$(mktemp -d)
 trap "rm -rf $profiledir" EXIT
 export CFLAGS="%{optflags} %{cflags_profile_generate}=$profiledir"
 %endif
-%configure --disable-static --with-pic --docdir=%_docdir/%{name}
-make %{?_smp_mflags}
+%configure --disable-static --with-pic --docdir=%{_docdir}/%{name}
+%__make %{?_smp_mflags}
 %if %{do_profiling}
-time make check
-make clean
+time %__make check
+%__make clean
 export CFLAGS="%{optflags} %{cflags_profile_feedback}=$profiledir"
-%configure --disable-static --with-pic --docdir=%_docdir/%{name}
-make %{?_smp_mflags}
+%configure --disable-static --with-pic --docdir=%{_docdir}/%{name}
+%__make %{?_smp_mflags}
 %endif
 
 %check
-time make 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
@@ -96,7 +101,7 @@ time make check
 %manifest %{name}.manifest
 %defattr(-, root, root)
 %license COPYING*
-%_docdir/%{name}
+%{_docdir}/%{name}
 %{_bindir}/*
 
 %files -n liblzma
@@ -111,5 +116,3 @@ time make check
 %{_includedir}/lzma
 %{_libdir}/lib*.so
 %{_libdir}/pkgconfig/*.pc
-
-%changelog