Hello community, here is the log from the commit of package LHAPDF for openSUSE:Factory checked in at 2017-03-24 02:08:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/LHAPDF (Old) and /work/SRC/openSUSE:Factory/.LHAPDF.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "LHAPDF" Fri Mar 24 02:08:46 2017 rev:10 rq:457561 version:6.1.6 Changes: -------- --- /work/SRC/openSUSE:Factory/LHAPDF/LHAPDF.changes 2016-02-03 10:20:03.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.LHAPDF.new/LHAPDF.changes 2017-03-24 02:08:47.325293698 +0100 @@ -1,0 +2,12 @@ +Mon Feb 13 17:40:13 UTC 2017 - [email protected] + +- Fix RPM groups. Call ldconfig directly. +- Add sover.diff and do shared library versioning + as required by guidelines. + +------------------------------------------------------------------- +Wed Feb 1 12:37:53 UTC 2017 - [email protected] + +- use individual libboost-*-devel packages instead of boost-devel + +------------------------------------------------------------------- New: ---- sover.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ LHAPDF.spec ++++++ --- /var/tmp/diff_new_pack.J3Wf3O/_old 2017-03-24 02:08:48.133179331 +0100 +++ /var/tmp/diff_new_pack.J3Wf3O/_new 2017-03-24 02:08:48.137178764 +0100 @@ -1,7 +1,7 @@ # # spec file for package LHAPDF # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%define so_name libLHAPDF +%define so_name libLHAPDF-6_1_6 %define execname lhapdf Name: LHAPDF @@ -27,9 +27,15 @@ Group: Development/Libraries/C and C++ Url: http://lhapdf.hepforge.org Source: http://www.hepforge.org/archive/lhapdf/%{name}-%{version}.tar.gz +Patch1: sover.diff +%if 0%{?suse_version} > 1325 +BuildRequires: libboost_headers-devel +%else BuildRequires: boost-devel >= 1.53.0 +%endif BuildRequires: doxygen BuildRequires: gcc-c++ +BuildRequires: libtool BuildRequires: pkg-config BuildRequires: python-devel BuildRequires: texlive-latex-bin @@ -49,7 +55,9 @@ %package -n %{so_name} Summary: A library for unified and easy to use interface to modern PDF sets -Group: Development/Libraries/C and C++ +Group: System/Libraries +Obsoletes: libLHAPDF < %{version}-%{release} +Provides: libLHAPDF = %{version}-%{release} %description -n %{so_name} LHAPDF provides a unified and easy to use interface to modern PDF @@ -69,7 +77,11 @@ Summary: A library for unified and easy to use interface to modern PDF sets Group: Development/Libraries/C and C++ Requires: %{so_name} = %{version} -Requires: boost-devel +%if 0%{?suse_version} > 1325 +BuildRequires: libboost_headers-devel +%else +BuildRequires: boost-devel >= 1.53.0 +%endif %description devel LHAPDF provides a unified and easy to use interface to modern PDF @@ -108,8 +120,10 @@ %prep %setup -q +%patch -P 1 -p1 %build +autoreconf -fi %configure --disable-static --docdir=%{_docdir}/%{name}/ make %{?_smp_mflags} @@ -118,15 +132,12 @@ find %{buildroot}%{_libdir}/ -name "*.la" -delete -%post -n %{so_name} -/sbin/ldconfig - -%postun -n %{so_name} -/sbin/ldconfig +%post -n %{so_name} -p /sbin/ldconfig +%postun -n %{so_name} -p /sbin/ldconfig %files -n %{so_name} %defattr(-, root, root) -%{_libdir}/*.so +%{_libdir}/libLHAPDF-%version.so %files devel %defattr(-, root, root) @@ -135,6 +146,7 @@ %{_bindir}/%{execname}-* %{_datadir}/%{name}/ %{_includedir}/%{name} +%{_libdir}/libLHAPDF.so %{_libdir}/pkgconfig/%{execname}.pc %files -n python-%{name} ++++++ sover.diff ++++++ From: Jan Engelhardt <[email protected]> Date: 2017-02-13 18:39:04.166820498 +0100 build: enforce library versioning Bad things happen when the ABI changes and there is no way to notice it. --- src/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) Index: LHAPDF-6.1.6/src/Makefile.am =================================================================== --- LHAPDF-6.1.6.orig/src/Makefile.am +++ LHAPDF-6.1.6/src/Makefile.am @@ -18,15 +18,19 @@ libLHAPDF_la_SOURCES = \ libLHAPDFInfo_la_SOURCES = Info.cc libLHAPDFInfo_la_CPPFLAGS = -I$(srcdir)/yamlcpp -DYAMLCPP_API=3 -DYAML_NAMESPACE=LHAPDF_YAML $(AM_CPPFLAGS) libLHAPDFInfo_la_LIBADD = $(builddir)/yamlcpp/liblhapdf-yaml-cpp.la +libLHAPDFInfo_la_LDFLAGS = -release ${PACKAGE_VERSION} libLHAPDFPaths_la_SOURCES = Paths.cc libLHAPDFPaths_la_CPPFLAGS = $(AM_CPPFLAGS) -DLHAPDF_INSTALL_PREFIX=\"$(prefix)\" -DLHAPDF_DATA_PREFIX=\"$(datadir)\" +libLHAPDFPaths_la_LDFLAGS = -release ${PACKAGE_VERSION} libLHAPDF_la_LIBADD = $(BOOST_LIBS) libLHAPDFInfo.la libLHAPDFPaths.la +libLHAPDF_la_LDFLAGS = -release ${PACKAGE_VERSION} if ENABLE_LHAGLUE noinst_LTLIBRARIES += libLHAPDFGlue.la libLHAPDFGlue_la_SOURCES = LHAGlue.cc libLHAPDFGlue_la_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_LHAGLUE_CXX + libLHAPDFGlue_la_LDFLAGS = -release ${PACKAGE_VERSION} libLHAPDF_la_LIBADD += libLHAPDFGlue.la endif
