File libsigc++12.spec of Package libsigc++12
#
# spec file for package libsigc++12 (Version 1.2.7)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libsigc++12
BuildRequires: gcc-c++
%define _name libsigc++
Version: 1.2.7
Release: 41
Group: Development/Libraries/C and C++
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Summary: Typesafe Signal Framework for C++
URL: http://libsigc.sourceforge.net/
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{_name}/1.2/%{_name}-%{version}.tar.bz2
Patch1: configure.in.diff
Patch4: examples.diff
Patch5: makefile.diff
Autoreqprov: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. It is the most
complete library of its kind with the ability 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.
Authors:
--------
Karl E. Nelson <kenelson@ece.ucdavis.edu>
%package devel
Group: Development/Libraries/C and C++
Summary: Typesafe Signal Framework for C++
Requires: %{name} = %{version} libstdc++-devel pkgconfig
%description devel
This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. It is the most
complete library of its kind with the ability 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.
Authors:
--------
Karl E. Nelson <kenelson@ece.ucdavis.edu>
%prep
%setup -n %{_name}-%{version}
%patch1
%patch4
%patch5
%build
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=%{_prefix} --libdir=%{_libdir}
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
cp AUTHORS COPYING COPYING.LIB ChangeLog FEATURES IDEAS NEWS README TODO $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/examples
cp examples/{Makefile,*.cc,*.m4} $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/examples
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/tests
cp tests/{Makefile,README,*.cc} $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/tests
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr (-, root, root)
%doc %dir %{_defaultdocdir}/%{name}
%doc %{_defaultdocdir}/%{name}/AUTHORS
%doc %{_defaultdocdir}/%{name}/COPYING
%doc %{_defaultdocdir}/%{name}/COPYING.LIB
%doc %{_defaultdocdir}/%{name}/ChangeLog
%doc %{_defaultdocdir}/%{name}/FEATURES
%doc %{_defaultdocdir}/%{name}/IDEAS
%doc %{_defaultdocdir}/%{name}/NEWS
%doc %{_defaultdocdir}/%{name}/README
%doc %{_defaultdocdir}/%{name}/TODO
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%doc %{_defaultdocdir}/%{name}/examples
%doc %{_defaultdocdir}/%{name}/tests
%{_libdir}/*.*a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/sigc++-1.2
%{_prefix}/include/*
%changelog -n libsigc++12
* Wed Jan 31 2007 - ro@suse.de
- GNOME moved to /usr
* Tue Jan 23 2007 - ro@suse.de
- drop requires for gnome-filesystem
* Mon Jan 30 2006 - nadvornik@suse.cz
- added pkgconfig to Requires of devel subpackage
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Aug 04 2005 - sbrabec@suse.cz
- Updated to version 1.2.7.
* Thu Feb 10 2005 - sbrabec@suse.cz
- Require proper version in libsigc++12-devel.
* Thu Feb 10 2005 - sbrabec@suse.cz
- Branch renamed to libsigc++12.
* Mon Feb 23 2004 - ro@suse.de
- fix pkgconfig file on lib64
* Wed Feb 18 2004 - ro@suse.de
- fix build on recent platforms by running autoreconf
(configure.in hacks from libsigc++ package)
* Fri Feb 13 2004 - sbrabec@suse.cz
- Initial SuSE package version 1.2.5.