%define major %(echo %version |cut -d. -f1-2) Name: libsigc++ Version: 2.2.8 Release: 1ark Source: http://caesar.acc.umu.se/pub/GNOME/sources/libsigc++/%major/libsigc++-%version.tar.bz2 Summary: libsigc++ implements a typesafe callback system for standard C++ URL: http://libsigc.sourceforge.net/ License: LGPL Group: Deprecated/Libraries BuildRoot:%{_tmppath}/%{name}-root %description libsigc++ implements a typesafe callback system for standard C++. It allows you to define signals and to connect those signals to any callback function, either global or a member function, regardless of whether it is static or virtual. It also contains adaptor classes for connection of dissimilar callbacks and has an ease of use unmatched by other C++ callback libraries. This package is deprecated and may be removed in a future release because both QtCore and boost provide a better implementation of the same functionality. %package devel Summary: Development files for the libsigc++ library Group: Deprecated/Development/Libraries Requires: %name = %version-%release %description devel Development files for the libsigc++ library. This package is deprecated and may be removed in a future release because both QtCore and boost provide a better implementation of the same functionality. %package static Summary: Static libraries for the libsigc++ library Group: Deprecated/Development/Libraries/Static Requires: %name-devel = %version-%release %description static Static libraries for the libsigc++ library. This package is deprecated and may be removed in a future release because both QtCore and boost provide a better implementation of the same functionality. %prep %setup %build %configure --enable-static make %?_smp_mflags %install rm -rf $RPM_BUILD_ROOT make install DESTDIR="$RPM_BUILD_ROOT" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_libdir}/libsigc-2.0.so* %files static %{_libdir}/libsigc-2.0.a %files devel %doc %{_docdir}/libsigc++-2.0 %{_libdir}/pkgconfig/sigc++-2.0.pc %{_libdir}/sigc++-2.0 %{_includedir}/sigc++-2.0 %clean rm -rf $RPM_BUILD_ROOT %changelog * Fri Jun 18 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 2.2.8-1ark - 2.2.8 * Tue Dec 23 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 2.2.3-1ark - 2.2.3 - Spec file tweaks to make rpm5 happy * Wed Feb 27 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 2.0.18-1ark - 2.0.18 - Make it compile with gcc 4.3 * Sun Jul 22 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 2.0.17-2ark - Add deprecation notice - Split out -devel and -static packages - Remove libtool braindamage - Fix spec file oddities * Wed Mar 22 2006 Dan Leinir Turthra Jensen <admin@leinir.dk> 2.0.17-1ark - Update * Mon Apr 12 2004 Luke Hebert <solarflare@cox-internet.com> 0.1.0-1ark - First Build of Libsigc++ on Arklinux