diff --git a/xz.changes b/xz.changes index 69d0f49..5479482 100644 --- a/xz.changes +++ b/xz.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Tue Sep 27 13:05:34 UTC 2011 - sweet_f_a@gmx.de + +- minor fixes of last portability changes: + * decouple do_profiling and lang_package again + * don't define do_factory, just use lang_package instead + * simplify files section + * do_profiling for some more systems + +------------------------------------------------------------------- +Mon Sep 26 15:59:51 UTC 2011 - coolo@suse.com + +- build on SLE_10 + ------------------------------------------------------------------- Sat Sep 17 15:19:50 UTC 2011 - coolo@suse.com diff --git a/xz.spec b/xz.spec index 67bede3..8943770 100644 --- a/xz.spec +++ b/xz.spec @@ -27,10 +27,17 @@ Url: http://tukaani.org/lzma/ Source: http://tukaani.org/xz/%{name}-%{version}.tar.bz2 Source2: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: pkg-config +BuildRequires: pkgconfig Provides: lzma = %version Obsoletes: lzma < %version + +%if 0%{?suse_version} < 1130 +%define do_profiling 0 +%endif + +%if 0%{?lang_package:1} > 0 Recommends: %name-lang +%endif # avoid bootstrapping problem %define _binary_payload w9.bzdio @@ -52,8 +59,8 @@ The xz command is a very powerful program for compressing files. * Very similar command line interface to what gzip and bzip2 have. +%{?lang_package} -%lang_package %package -n liblzma5 License: LGPLv2.1+ Summary: LZMA library @@ -80,7 +87,6 @@ compiling programs using the LZMA library. %setup -q %build -AUTOPOINT=true autoreconf -fiv %if %{do_profiling} profiledir=$(mktemp -d) trap "rm -rf $profiledir" EXIT @@ -111,14 +117,20 @@ make install DESTDIR=$RPM_BUILD_ROOT %postun -n liblzma5 -p /sbin/ldconfig +%if 0%{?lang_package:1} > 0 + +%files lang -f %{name}.lang + %files +%else + +%files -f %{name}.lang +%endif %defattr(-, root, root) %_docdir/%name %{_bindir}/* %{_mandir}/man?/* -%files lang -f %{name}.lang - %files -n liblzma5 %defattr(-, root, root) /%{_lib}/lib*.so.5*