+#
+# Conditional build:
+%bcond_without static_libs # don't build static library
+#
Summary: The Typesafe Signal Framework for C++
+Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++
Name: libsigc++
-Version: 1.0.2
+Version: 2.2.8
Release: 1
-License: LGPL
+Epoch: 1
+License: LGPL v2.1+
Group: Libraries
-Group(de): Libraries
-Group(fr): Librairies
-Group(pl): Biblioteki
-Vendor: Karl E. Nelson <kenelson@ece.ucdavis.edu>
-Source0: ftp://download.sourceforge.net/pub/sourceforge/libsigc/%name-%version.tar.gz
-Patch0: %{name}-ac_thread.sh.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 >= 2.59
+BuildRequires: automake >= 1:1.9
BuildRequires: libstdc++-devel
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: libtool
+BuildRequires: m4
+BuildRequires: mm-common >= 0.7.2
+BuildRequires: perl-base
+BuildRequires: pkgconfig
Obsoletes: libsigc++-examples
+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.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: Development tools for the Typesafe Signal Framework for C++
+Summary(pl.UTF-8): Narzędzia programistyczne do środowiska libsig++
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: libstdc++-devel
Requires: m4
-Requires: %{name} = %{version}
%description devel
Development tools for the Typesafe Signal Framework for C++.
+%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.UTF-8): Statyczna biblioteka libsigc++
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
%description static
Static Typesafe Signal Framework for C++ libraries.
+%description static -l pl.UTF-8
+Statyczna biblioteka libsigc++ - środowiska sygnałów z kontrolą typów.
+
%prep
%setup -q
-%patch0 -p1
%build
-autoconf
-CXXFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g} -fno-exceptions"
-%configure
-
-%{__make}
+%{__libtoolize}
+%{__aclocal} -I build
+%{__autoconf}
+%{__automake}
+%configure \
+ %{?with_static_libs:--enable-static}
+%{__make} -j1 all check
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- m4datadir=%{_aclocaldir}
+ DESTDIR=$RPM_BUILD_ROOT
-gzip -9nf AUTHORS README IDEAS NEWS ChangeLog TODO doc/*
+%clean
+rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%clean
-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 *.gz doc/*
-%attr(755,root,root) %{_bindir}/sigc-config
-%attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_libdir}/lib*.la
-%{_includedir}/sigc++
-%{_libdir}/sigc++
-%{_aclocaldir}/*
+%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