%define name libsigc++10 %define version 1.0.4 %define release 1%{?_dist_release} %define lib_name sigc++-1.0 Summary: The Typesafe Signal Framework for C++ Summary(ja): C++ 用の型安全なシグナルフレームワーク Name: %{name} Version: %{version} Release: %{release} Source: ftp://download.sourceforge.net/pub/sourceforge/libsigc/libsigc++-%{version}.tar.gz License: LGPL Group: System Environment/Libraries URL: http://libsigc.sourceforge.net/ Vendor: Project Vine Distribution: Vine Linux Buildroot: %{_tmppath}/%{name}-%{version}-root %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 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 %{name}. %package devel Summary: development tools for the Typesafe Signal Framework for C++ Group: Development/Libraries Requires: %{name} = %{version}-%{release} %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: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description examples The %{name}-examples package contains source code of example and test programs for %{name}. %prep %setup -q -n libsigc++-%{version} %build %configure export tagname=CC make %{_smp_mflags} LIBTOOL=/usr/bin/libtool %install rm -rf $RPM_BUILD_ROOT export tagname=CC %makeinstall LIBTOOL=/usr/bin/libtool mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{lib_name} cp -a examples tests $RPM_BUILD_ROOT%{_libdir}/%{lib_name} find $RPM_BUILD_ROOT%{_libdir}/%{lib_name} -type d -name .libs |xargs -r rm -rf find $RPM_BUILD_ROOT%{_libdir}/%{lib_name} -type f |xargs file | grep -E '(relocatable|executable|shell script)' |cut -d: -f1 |xargs -r rm -f for i in $RPM_BUILD_ROOT%{_libdir}/%{lib_name}/examples/Makefile; do rm -f $i.* cp -p scripts/examples.Makefile $i done for i in $RPM_BUILD_ROOT%{_libdir}/%{lib_name}/tests/Makefile; do rm -f $i.* cp -p scripts/tests.Makefile $i done ## remove unuse files rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so.* %doc AUTHORS COPYING.LIB README IDEAS NEWS ChangeLog TODO %files devel %defattr(-,root,root,755) %doc doc/* %{_bindir}/* %{_includedir}/* %attr(755,root,root) %{_libdir}/lib*.so %attr(644,root,root) %{_libdir}/*.a %{_datadir}/aclocal/* %files examples %defattr(-,root,root,755) %{_libdir}/%{lib_name}/examples %{_libdir}/%{lib_name}/tests %changelog * Fri Sep 26 2008 Shu KONNO 1.0.4-1vl5 - applied new versioning policy, spec in utf-8 - removed *.la * Sun Jun 17 2007 Ryoichi INAGAKI 1.0.4-0vl5 - rebuilt with new toolchain * Sun Dec 14 2003 Ryoichi INAGAKI 1.0.4-0vl4 - renamed libsigc++10 in order to allow 1.2 installation * Sat Oct 4 2003 Ryoichi INAGAKI 1.0.4-0vl3 - rebuild to remove dependance <5371> - add Japanese summary - use better macros - s/Copyright/License/ * Mon Nov 25 2002 Daisuke SUZUKI 1.0.4-0vl2 - rebuild with new toolchain * Wed Feb 06 2002 Satoshi IWMAOTO - 1.0.4-0vl1 - Build for Vine Linux 2.5 * Wed Feb 21 2001 yoneda kenji - packaged for Vine Linux 2.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