diff --git a/baselibs.conf b/baselibs.conf index 057b887..9ceddba 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1,3 @@ -libsigc++2 +libsigc-2_0-0 + provides "libsigc++2- = " + obsoletes "libsigc++2- <= " diff --git a/libsigc++2.changes b/libsigc++2.changes index acceabe..939164a 100644 --- a/libsigc++2.changes +++ b/libsigc++2.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Oct 11 19:53:12 CEST 2010 - vuntz@opensuse.org + +- Update packaging to use the shared library packaging policy: + + Create libsigc-2_0-0 subpackage. + + Add Provides/Obsoletes for libsigc++2 to libsigc-2_0-0. + + Update baselibs.conf accordingly. + ------------------------------------------------------------------- Fri Jul 23 12:51:34 CEST 2010 - vuntz@opensuse.org diff --git a/libsigc++2.spec b/libsigc++2.spec index 0f69408..c10fee1 100644 --- a/libsigc++2.spec +++ b/libsigc++2.spec @@ -23,7 +23,8 @@ Name: libsigc++2 BuildRequires: gcc-c++ pkg-config Version: 2.2.8 Release: 1 -Group: Development/Libraries/C and C++ +# NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to < (here and in baselibs.conf) +Group: System/Libraries License: LGPLv2.1+ Summary: Typesafe Signal Framework for C++ Url: http://libsigc.sourceforge.net/ @@ -40,11 +41,27 @@ callback to a class method, function, or function object. It contains adaptor classes for connection of dissimilar callbacks and has an ease of use unmatched by other C++ callback libraries. +%package -n libsigc-2_0-0 +License: LGPLv2.1+ +Group: System/Libraries +Summary: Typesafe Signal Framework for C++ +Provides: %{name} = %{version} +# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 2.2.8 (when this provides/obsoletes was introduced) +Obsoletes: %{name} <= %{version} + +%description -n libsigc-2_0-0 +This library implements a full callback system for use in widget +libraries, abstract interfaces, and general programming. It is the most +complete library of its kind with the ablity to connect an abstract +callback to a class method, function, or function object. It contains +adaptor classes for connection of dissimilar callbacks and has an ease +of use unmatched by other C++ callback libraries. + %package devel License: LGPLv2.1+ Group: Development/Libraries/C and C++ Summary: Typesafe Signal Framework for C++ -Requires: %{name} = %{version} libstdc++-devel +Requires: libsigc-2_0-0 = %{version} libstdc++-devel %description devel This library implements a full callback system for use in widget @@ -75,18 +92,18 @@ rm -f %{buildroot}%{_libdir}/*.la %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig +%post -n libsigc-2_0-0 -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -n libsigc-2_0-0 -p /sbin/ldconfig -%files +%files -n libsigc-2_0-0 %defattr (-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README TODO -%{_libdir}/*.so.* +%{_libdir}/libsigc-2.0.so.* %files devel %defattr (-, root, root) -%{_libdir}/*.so +%{_libdir}/libsigc-2.0.so %{_libdir}/pkgconfig/*.pc %{_libdir}/sigc++-2.0 %{_includedir}/sigc++-2.0/