+#
+# Conditional build:
+%bcond_without static_libs # don't build static library
+#
Summary: The Typesafe Signal Framework for C++
-Summary(pl): ¦rodowisko sygna³ów z kontrol± typów dla C++
+Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++
Name: libsigc++
-Version: 1.2.5
-Release: 3
+Version: 2.2.8
+Release: 1
Epoch: 1
-License: LGPL
-Vendor: Karl E. Nelson <kenelson@ece.ucdavis.edu>
+License: LGPL v2.1+
Group: Libraries
-Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/1.2/%{name}-%{version}.tar.bz2
-# Source0-md5: 1f29decfaa3793f6e55ae905727588be
-Patch0: %{name}-m4.patch
-Patch1: %{name}-pc-libdir.patch
+Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/%{name}-%{version}.tar.bz2
+# Source0-md5: 1198425eab9fd605721a278c651b8dd8
URL: http://libsigc.sourceforge.net/
-BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.9
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: m4
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: mm-common >= 0.7.2
+BuildRequires: perl-base
+BuildRequires: pkgconfig
Obsoletes: libsigc++-examples
-Conflicts: %{name} < 1.1.0
+Conflicts: libsigc++ < 1.1.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. Originally
-part of the Gtk-- widget set, %{name} is now a seperate library to
+part of the Gtk-- widget set, libsigc++ is now a seperate library to
provide for more general use. 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.
-%description -l pl
-Ta biblioteka jest implementacj± pe³nego systemu callbacków do
-u¿ywania w bibliotekach widgetów, interfejsach abstrakcyjnych i
-ogólnym programowaniu. Oryginalnie by³a to czê¶æ zestawu widgetów
-Gtk--, ale jest teraz oddzieln± bibliotek± ogólniejszego
-przeznaczenia. Jest to kompletna biblioteka tego typu z mo¿liwo¶ci±
-³±czenia abstrakcyjnych callbacków z metodami klas, funkcjami lub
-obiektami funkcji. Zawiera klasy adapterów do ³±czenia ró¿nych
-callbacków.
+%description -l pl.UTF-8
+Ta biblioteka jest implementacją pełnego systemu callbacków do
+używania w bibliotekach widgetów, interfejsach abstrakcyjnych i
+ogólnym programowaniu. Oryginalnie była to część zestawu widgetów
+Gtk--, ale jest teraz oddzielną biblioteką ogólniejszego
+przeznaczenia. Jest to kompletna biblioteka tego typu z możliwością
+łączenia abstrakcyjnych callbacków z metodami klas, funkcjami lub
+obiektami funkcji. Zawiera klasy adapterów do łączenia różnych
+callbacków.
%package devel
Summary: Development tools for the Typesafe Signal Framework for C++
-Summary(pl): Narzêdzia programistyczne do ¶rodowiska libsig++
+Summary(pl.UTF-8): Narzędzia programistyczne do środowiska libsig++
Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: libstdc++-devel
Requires: m4
-Requires: %{name} = %{epoch}:%{version}
%description devel
Development tools for the Typesafe Signal Framework for C++.
-%description devel -l pl
-Narzêdzia programistyczne do ¶rodowiska libsigc++ - sygna³ów z
-kontrol± typów.
+%description devel -l pl.UTF-8
+Narzędzia programistyczne do środowiska libsigc++ - sygnałów z
+kontrolą typów.
+
+%package doc
+Summary: Reference documentation for libsigc++
+Summary(pl.UTF-8): Szczegółowa dokumentacja dla libsigc++
+Group: Documentation
+
+%description doc
+Reference documentation for libsigc++.
+
+%description doc -l pl.UTF-8
+Szczegółowa dokumentacja dla libsigc++.
%package static
Summary: Static Typesafe Signal Framework for C++ libraries
-Summary(pl): Statyczna biblioteka libsigc++
+Summary(pl.UTF-8): Statyczna biblioteka libsigc++
Group: Development/Libraries
-Requires: %{name}-devel = %{epoch}:%{version}
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
%description static
Static Typesafe Signal Framework for C++ libraries.
-%description static -l pl
-Statyczna biblioteka libsigc++ - ¶rodowiska sygna³ów z kontrol± typów.
+%description static -l pl.UTF-8
+Statyczna biblioteka libsigc++ - środowiska sygnałów z kontrolą typów.
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
%build
-CXXFLAGS="%{rpmcflags} -fno-exceptions"
-rm -f scripts/missing
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I build
%{__autoconf}
%{__automake}
-%configure
-
-%{__make}
+%configure \
+ %{?with_static_libs:--enable-static}
+%{__make} -j1 all check
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_libdir}/libsigc-2.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libsigc-2.0.so.0
%files devel
%defattr(644,root,root,755)
-%doc AUTHORS README IDEAS FEATURES NEWS ChangeLog TODO doc/*
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_includedir}/sigc++-*
-%{_libdir}/sigc++-*
-%{_pkgconfigdir}/*
+%attr(755,root,root) %{_libdir}/libsigc-2.0.so
+%{_libdir}/libsigc-2.0.la
+%{_includedir}/sigc++-2.0
+%{_libdir}/sigc++-2.0
+%{_pkgconfigdir}/sigc++-2.0.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libsigc-2.0.a
+%endif
+
+%files doc
+%defattr(644,root,root,755)
+%{_datadir}/devhelp/books/libsigc++-2.0
+%{_docdir}/libsigc++-2.0