Accepting request 50447 from home:vuntz:branches:GNOME:Factory

OBS-URL: https://build.opensuse.org/request/show/50447
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libsigc++2?expand=0&rev=21
This commit is contained in:
Dominique Leuenberger 2010-10-13 07:55:22 +00:00 committed by Git OBS Bridge
parent 3b61779a95
commit 7c07f74248
3 changed files with 35 additions and 8 deletions

View File

@ -1 +1,3 @@
libsigc++2 libsigc-2_0-0
provides "libsigc++2-<targettype> = <version>"
obsoletes "libsigc++2-<targettype> <= <version>"

View File

@ -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 Fri Jul 23 12:51:34 CEST 2010 - vuntz@opensuse.org

View File

@ -23,7 +23,8 @@ Name: libsigc++2
BuildRequires: gcc-c++ pkg-config BuildRequires: gcc-c++ pkg-config
Version: 2.2.8 Version: 2.2.8
Release: 1 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+ License: LGPLv2.1+
Summary: Typesafe Signal Framework for C++ Summary: Typesafe Signal Framework for C++
Url: http://libsigc.sourceforge.net/ 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 adaptor classes for connection of dissimilar callbacks and has an ease
of use unmatched by other C++ callback libraries. 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 %package devel
License: LGPLv2.1+ License: LGPLv2.1+
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Summary: Typesafe Signal Framework for C++ Summary: Typesafe Signal Framework for C++
Requires: %{name} = %{version} libstdc++-devel Requires: libsigc-2_0-0 = %{version} libstdc++-devel
%description devel %description devel
This library implements a full callback system for use in widget This library implements a full callback system for use in widget
@ -75,18 +92,18 @@ rm -f %{buildroot}%{_libdir}/*.la
%clean %clean
rm -rf $RPM_BUILD_ROOT 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) %defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO %doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_libdir}/*.so.* %{_libdir}/libsigc-2.0.so.*
%files devel %files devel
%defattr (-, root, root) %defattr (-, root, root)
%{_libdir}/*.so %{_libdir}/libsigc-2.0.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%{_libdir}/sigc++-2.0 %{_libdir}/sigc++-2.0
%{_includedir}/sigc++-2.0/ %{_includedir}/sigc++-2.0/