Hello community,

here is the log from the commit of package xz for openSUSE:Factory checked in 
at 2017-06-30 18:39:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xz (Old)
 and      /work/SRC/openSUSE:Factory/.xz.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xz"

Fri Jun 30 18:39:00 2017 rev:59 rq:506130 version:5.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/xz/xz.changes    2017-03-08 00:45:43.294526831 
+0100
+++ /work/SRC/openSUSE:Factory/.xz.new/xz.changes       2017-06-30 
18:39:02.754117581 +0200
@@ -1,0 +2,12 @@
+Sun Jun 25 11:37:03 UTC 2017 - astie...@suse.com
+
+- fix CentOS/RHEL builds after clean-up
+
+-------------------------------------------------------------------
+Wed Jun 21 14:11:44 UTC 2017 - mplus...@suse.com
+
+- Simplify spec file conditions
+- Clenup profiled building
+- Use full lists of files
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xz.spec ++++++
--- /var/tmp/diff_new_pack.OFGVDo/_old  2017-06-30 18:39:03.522009573 +0200
+++ /var/tmp/diff_new_pack.OFGVDo/_new  2017-06-30 18:39:03.522009573 +0200
@@ -18,18 +18,11 @@
 
 # avoid bootstrapping problem
 %define _binary_payload w9.bzdio
-%if 0%{?suse_version} < 1130
-%define do_profiling 0
-%endif
-%ifarch aarch64 %{arm} %{sparc}
-%define do_profiling 0
-%endif
-%bcond_without static_libs
 Name:           xz
 Version:        5.2.3
 Release:        0
 Summary:        A Program for Compressing Files
-License:        LGPL-2.1+ and GPL-2.0+
+License:        LGPL-2.1+ AND GPL-2.0+
 Group:          Productivity/Archiving/Compression
 Url:            http://tukaani.org/xz/
 Source0:        http://tukaani.org/xz/%{name}-%{version}.tar.gz
@@ -43,7 +36,7 @@
 Provides:       lzma = %{version}
 Obsoletes:      lzma < %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?lang_package:1} > 0
+%if 0%{?lang_package:1}
 Recommends:     %{name}-lang
 %endif
 
@@ -82,7 +75,6 @@
 This package contains the header files and libraries needed for
 compiling programs using the LZMA library.
 
-%if %{with static_libs}
 %package static-devel
 Summary:        Static version of LZMA library
 Group:          Development/Libraries/C and C++
@@ -90,68 +82,116 @@
 
 %description static-devel
 Static library for the LZMA library
-%endif
 
 %prep
 %setup -q
 
 %build
-%global optflags    %{optflags} -D_REENTRANT -pipe -fPIE
+export CFLAGS="%{optflags} -D_REENTRANT -pipe -fPIE"
 export LDFLAGS="-Wl,-z,relro,-z,now -pie"
 %configure \
-%if ! %{with static_libs}
-       --disable-static \
-%endif
        --with-pic \
        --docdir=%{_docdir}/%{name}
-%if 0%{do_profiling}
-profiledir=$(mktemp -d)
-trap "rm -rf $profiledir" EXIT
-make %{?_smp_mflags} CFLAGS="%{optflags} 
%{cflags_profile_generate}=$profiledir"
-time make check
-make clean %{?_smp_mflags}
-make %{?_smp_mflags} CFLAGS="%{optflags} 
%{cflags_profile_feedback}=$profiledir"
+%if 0%{?do_profiling}
+  make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}"
+  make check %{?_smp_mflags}
+  make clean
+  make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}"
 %else
-make %{?_smp_mflags}
+  make %{?_smp_mflags}
 %endif
 
 %check
-time make check
+make %{?_smp_mflags} check
 
 %install
+%if 0%{?make_install:1}
 %make_install
-rm -v %{buildroot}%{_libdir}/liblzma.la
+%else
+make DESTDIR=%{buildroot} install %{?_smp_mflags} #
+%endif
+find %{buildroot} -type f -name "*.la" -delete -print
 %find_lang %{name}
-install -D -m 0755 %{SOURCE4} %{buildroot}%{_bindir}/xznew
-install -D -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/xznew.1
+install -Dpm 0755 %{SOURCE4} %{buildroot}%{_bindir}/xznew
+install -Dpm 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/xznew.1
 
 %post -n liblzma5 -p /sbin/ldconfig
 %postun -n liblzma5 -p /sbin/ldconfig
 
+%if 0%{?lang_package:1}
 %files lang -f %{name}.lang
 %defattr(-, root, root)
+%endif
 
 %files
 %defattr(-, root, root)
 %{_docdir}/%{name}
-%{_bindir}/*
-%{_mandir}/man?/*
+%{_bindir}/lzcat
+%{_bindir}/lzcmp
+%{_bindir}/lzdiff
+%{_bindir}/lzegrep
+%{_bindir}/lzfgrep
+%{_bindir}/lzgrep
+%{_bindir}/lzless
+%{_bindir}/lzma
+%{_bindir}/lzmadec
+%{_bindir}/lzmainfo
+%{_bindir}/lzmore
+%{_bindir}/unlzma
+%{_bindir}/unxz
+%{_bindir}/xz
+%{_bindir}/xzcat
+%{_bindir}/xzcmp
+%{_bindir}/xzdec
+%{_bindir}/xzdiff
+%{_bindir}/xzegrep
+%{_bindir}/xzfgrep
+%{_bindir}/xzgrep
+%{_bindir}/xzless
+%{_bindir}/xzmore
+%{_bindir}/xznew
+%{_mandir}/man1/lzcat.1%{ext_man}
+%{_mandir}/man1/lzcmp.1%{ext_man}
+%{_mandir}/man1/lzdiff.1%{ext_man}
+%{_mandir}/man1/lzegrep.1%{ext_man}
+%{_mandir}/man1/lzfgrep.1%{ext_man}
+%{_mandir}/man1/lzgrep.1%{ext_man}
+%{_mandir}/man1/lzless.1%{ext_man}
+%{_mandir}/man1/lzma.1%{ext_man}
+%{_mandir}/man1/lzmadec.1%{ext_man}
+%{_mandir}/man1/lzmainfo.1%{ext_man}
+%{_mandir}/man1/lzmore.1%{ext_man}
+%{_mandir}/man1/unlzma.1%{ext_man}
+%{_mandir}/man1/unxz.1%{ext_man}
+%{_mandir}/man1/xz.1%{ext_man}
+%{_mandir}/man1/xzcat.1%{ext_man}
+%{_mandir}/man1/xzcmp.1%{ext_man}
+%{_mandir}/man1/xzdec.1%{ext_man}
+%{_mandir}/man1/xzdiff.1%{ext_man}
+%{_mandir}/man1/xzegrep.1%{ext_man}
+%{_mandir}/man1/xzfgrep.1%{ext_man}
+%{_mandir}/man1/xzgrep.1%{ext_man}
+%{_mandir}/man1/xzless.1%{ext_man}
+%{_mandir}/man1/xzmore.1%{ext_man}
+%{_mandir}/man1/xznew.1%{ext_man}
+%if 0%{!?lang_package:1}
+%{_datadir}/locale/*/LC_MESSAGES/xz.mo
+%endif
 
 %files -n liblzma5
 %defattr(-, root, root)
-%{_libdir}/lib*.so.5*
+%{_libdir}/liblzma.so.5*
 
 %files devel
 %defattr(-, root, root)
-%{_includedir}/*.h
-%{_includedir}/lzma
-%{_libdir}/lib*.so
-%{_libdir}/pkgconfig/*.pc
+%{_includedir}/lzma.h
+%dir %{_includedir}/lzma/
+%{_includedir}/lzma/*
+%{_libdir}/liblzma.so
+%{_libdir}/pkgconfig/liblzma.pc
 
-%if %{with static_libs}
 %files static-devel
 %defattr(-, root, root)
-%{_libdir}/*.a
-%endif
+%{_libdir}/liblzma.a
 
 %changelog



Reply via email to