Accepting request 50762 from GNOME:Factory

Copy from GNOME:Factory/libsigc++2 based on submit request 50762 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/50762
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsigc++2?expand=0&rev=19
This commit is contained in:
OBS User autobuild 2010-10-15 14:20:57 +00:00 committed by Git OBS Bridge
parent 78db72340b
commit 14288cee89
3 changed files with 36 additions and 9 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

View File

@ -22,8 +22,9 @@ Name: libsigc++2
%define _name libsigc++
BuildRequires: gcc-c++ pkg-config
Version: 2.2.8
Release: 1
Group: Development/Libraries/C and C++
Release: 2
# 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/