%define shortname libsigc++ %define group Development/Libraries/C and C++ %define docs %{_defaultdocdir}/%{name} Name: %{shortname}2.0 Summary: The Typesafe Signal Framework for C++ Copyright: LGPL Group: %{group} Version: 2.0.6 Release: 0.mv.1.SuSE_9.2 Url: http://libsigc.sourceforge.net/ Packager: Martin Väth Distribution: SuSE 9.2 (i586) Source0: %{shortname}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: %{shortname} = %{version} Provides: %{shortname}2 = %{version} Prefix: %{_prefix} %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, %{shortname} 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. Package GTK-- (gtkmm), which is a C++ binding to the GTK+ library, starting with version 1.1.2, uses %{shortname}. %package devel Summary: development tools for the Typesafe Signal Framework for C++ Group: %{group} Copyright: LGPL Provides: %{shortname}-devel = %{version} Provides: %{shortname}2-devel = %{version} Requires: %{name} = %{version} %description devel The %{name}-devel package contains the static libraries and header files needed for development with %{name}. %package examples Summary: examples and tests for the Typesafe Signal Framework for C++ Group: %{group} Copyright: LGPL Provides: %{shortname}-examples = %{version} Provides: %{shortname}2-examples = %{version} Requires: %{name}-devel = %{version} %description examples The %{name}-examples package contains source code of example and test programs for %{name}. %package doc Summary: documentation for the Typesafe Signal Framework for C++ Group: %{group} Copyright: LGPL Provides: %{shortname}-doc = %{version} Provides: %{shortname}2-doc = %{version} Requires: %{name}-devel = %{version} %description doc The %{name}-doc package contains the html documentation for %{name}. %prep umask 022 test -n '%{buildroot}' || { echo "Must use buildroot" ; exit 1 ; } %if %{?fake:%fake}%{!?fake:0} %setup -T -D -c %else %setup -q -c test -d %{name}-%{version} && mv %{name}-%{version}/* . test -d %{name} && mv %{name}/* . test -d %{shortname}-%{version} && mv %{shortname}-%{version}/* . test -d %{shortname} && mv %{shortname}/* . %endif %build umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} %if %{?fake:%fake}%{!?fake:0} %else %configure --enable-shared --enable-static if [ -n "$SMP" ]; then make "-j$SMP" "MAKE=make \"-j$SMP\"" else make fi find . -name "*.so*" -type f | xargs strip --strip-unneeded %endif %install umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} test -n '%{buildroot}' test -d '%{buildroot}' && rm -rf '%{buildroot}' make DESTDIR='%{buildroot}' install install -d -m 755 '%{buildroot}%{docs}' install -p -m 644 COPYING AUTHORS README NEWS ChangeLog TODO '%{buildroot}%{docs}' mv '%{buildroot}/usr/share/doc/libsigc-2.0' '%{buildroot}%{docs}' cp -a examples tests '%{buildroot}%{docs}' chmod -R u+w,a+rX,go-w '%{buildroot}%{docs}' find '%{buildroot}%{docs}' -type d -name '.[a-zA-Z0-9_]*' -exec rm -rfv '{}' ';' || true find '%{buildroot}%{docs}' -type f -name '*.o' -exec rm -vf '{}' ';' || true %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean test -n '%{buildroot}' -a -d '%{buildroot}' && rm -rf '%{buildroot}' %files %defattr(-,root,root) %{_libdir}/*.so* %dir %{docs} %{docs}/COPYING %{docs}/AUTHORS %{docs}/README %{docs}/NEWS %{docs}/ChangeLog %{docs}/TODO %files devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/sigc++-2.0 %{_libdir}/pkgconfig/*.pc %{_libdir}/*.a %{_libdir}/*.la %files examples %defattr(-,root,root) %{docs}/examples %{docs}/tests %files doc %defattr(-,root,root) %{docs}/libsigc-2.0 %changelog * Mon Dec 06 2004 Martin Väth - update to new release and for SuSE9.2 * Wed Nov 26 2003 Martin Väth - minor compatibility improvements * Sat Nov 01 2003 Martin Väth - Almost complete rewrite for SuSE9.0 - separated doc sub-package. * Sat Nov 02 2002 Morten Brix Pedersen - Fixed RPM build with final libsigc++-1.2 release. - Distribute pc (pkg-config) file with tarball. * Sun Dec 31 2000 Karl E. Nelson - Initial cut for 1.1 * Sat Apr 15 2000 Dmitry V. Levin - updated Url and Source fileds - 1.0.0 stable release * Sat Jan 22 2000 Dmitry V. Levin - filtering out -fno-rtti and -fno-exceptions options from $RPM_OPT_FLAGS - minor install section cleanup * Wed Jan 19 2000 Allan Rae - autogen just creates configure, not runs it, so cleaned that up too. * Wed Jan 19 2000 Dmitry V. Levin - minor attr fix - removed unnecessary curly braces - fixed Herbert's adjustement * Sat Jan 15 2000 Dmitry V. Levin - minor package dependence fix * Sat Dec 25 1999 Herbert Valerio Riedel - fixed typo of mine - added traditional CUSTOM_RELEASE stuff - added SMP support * Thu Dec 23 1999 Herbert Valerio Riedel - adjusted spec file to get tests.Makefile and examples.Makefile from scripts/ * Fri Oct 22 1999 Dmitry V. Levin - split into three packages: %name, %name-devel and %name-examples * Thu Aug 12 1999 Karl Nelson - updated source field and merged conflicts between revisions. * Tue Aug 10 1999 Dmitry V. Levin - updated Prefix and BuildRoot fields * Thu Aug 5 1999 Herbert Valerio Riedel - made sure configure works on all alphas * Wed Jul 7 1999 Karl Nelson - Added autoconf macro for sigc. * Fri Jun 11 1999 Karl Nelson - Made into a .in to keep version field up to date - Still need to do release by hand * Mon Jun 7 1999 Dmitry V. Levin - added Vendor and Packager fields * Sat Jun 5 1999 Dmitry V. Levin - updated to 0.8.0 * Tue Jun 1 1999 Dmitry V. Levin - initial revision