File libsigc++2.spec of Package libsigc++2

#
# spec file for package libsigc++2 (Version 2.0.17)
#
# 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++2
%define _name libsigc++
BuildRequires:  gcc-c++
Version:        2.0.17
Release:        38
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:         %{_name}-%{version}.tar.bz2
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 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.



Authors:
--------
    Martin Schulze <mschulze@cvs.gnome.org>
    Murray Cumming <murrayc@murrayc.com>
    Cedric Gustin <cedric.gustin@swing.be>
    Timothy M. Shead <tshead@k-3d.com> and James Lin <jameslin@vmware.com>
    Damien Carbery <Damien.Carbery@Sun.COM>
    Takashi Takekawa <takekawa@users.sourceforge.jp>
    Andreas Rottmann <rottmann@users.sourceforge.net>
    Karl Einar Nelson <kenelson@ece.ucdavis.edu>

%package devel
Group:          Development/Libraries/C and C++
Summary:        Typesafe Signal Framework for C++
Requires:       %{name} = %{version} libstdc++-devel

%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:
--------
    Martin Schulze <mschulze@cvs.gnome.org>
    Murray Cumming <murrayc@murrayc.com>
    Cedric Gustin <cedric.gustin@swing.be>
    Timothy M. Shead <tshead@k-3d.com> and James Lin <jameslin@vmware.com>
    Damien Carbery <Damien.Carbery@Sun.COM>
    Takashi Takekawa <takekawa@users.sourceforge.jp>
    Andreas Rottmann <rottmann@users.sourceforge.net>
    Karl Einar Nelson <kenelson@ece.ucdavis.edu>

%prep
%setup -q -n %{_name}-%{version}

%build
# FIXME: Cannot autoreconf, bad templates:
#ACLOCAL="aclocal -I scripts" autoreconf -f -i
%configure
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT libsigc_docdir=%{_docdir}/%{name}/docs install
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp AUTHORS COPYING ChangeLog NEWS README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
cp examples/{Makefile,*.cc} $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/tests
cp tests/{Makefile,*.cc} $RPM_BUILD_ROOT%{_docdir}/%{name}/tests

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_ldconfig

%postun
%run_ldconfig

%files
%defattr (-, root, root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/TODO
%{_libdir}/*.so.*

%files devel
%defattr (-, root, root)
%doc %{_docdir}/%{name}/examples
%doc %{_docdir}/%{name}/docs
%doc %{_docdir}/%{name}/tests
%{_libdir}/*.*a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/sigc++-2.0
%{_includedir}/*

%changelog -n libsigc++2
* Tue Jan 23 2007 - ro@suse.de
- drop requires for gnome-filesystem
* Fri Jan 12 2007 - sbrabec@suse.cz
- Spec file cleanup.
* Mon Dec 18 2006 - maw@suse.de
- Move to /usr.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 - lmichnovic@suse.cz
- Updated to version 2.0.17
* Thu Aug 04 2005 - sbrabec@suse.cz
- Updated to version 2.0.16.
* Mon Jun 13 2005 - sbrabec@suse.cz
- Updated to version 2.0.14.
* Thu Feb 10 2005 - sbrabec@suse.cz
- Updated to version 2.0.6 (branch 2.0).
* 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.
openSUSE Build Service is sponsored by