File glibmm2.spec of Package glibmm2
#
# spec file for package glibmm2 (Version 2.22.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: glibmm2
%define _name glibmm
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: libsigc++2-devel
Version: 2.22.1
Release: 1
Group: System/Libraries
License: LGPL v2.1 or later
Summary: C++ Interface for GLib2
Url: http://www.gtkmm.org/
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{_name}/2.12/%{_name}-%{version}.tar.bz2
Provides: glibmm24 = %{version}
Obsoletes: glibmm24
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Gtkmm provides a C++ interface to the GTK+ GUI library. glibmm24 wraps
GLib 2. Highlights include typesafe callbacks, widgets extensible via
inheritance, and a comprehensive set of widget classes that can be
freely combined to quickly create complex user interfaces.
%package devel
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: C++ Interface for GLib2
Requires: %{name} = %{version} glib2-devel libsigc++2-devel libstdc++-devel
Provides: glibmm24-devel = %{version}
Obsoletes: glibmm24-devel
Provides: %{name}-doc = %{version}
Obsoletes: %{name}-doc <= %{version}
%description devel
Gtkmm provides a C++ interface to the GTK+ GUI library. glibmm24 wraps
GLib 2. Highlights include typesafe callbacks, widgets extensible via
inheritance and a comprehensive set of widget classes that can be
freely combined to quickly create complex user interfaces.
%prep
%setup -q -n %{_name}-%{version}
%build
%configure
make %{?jobs:-j%jobs}
%install
%makeinstall
rm %{buildroot}%{_libdir}/*.*a
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_datadir}/aclocal/*.m4
%{_libdir}/glibmm-2.4
%{_libdir}/giomm-2.4
%{_datadir}/devhelp/books/%{_name}-2.4
%{_datadir}/doc/%{_name}-2.4
%{_datadir}/%{_name}-2.4
# Avoid BuildRequires on devhelp
%dir %{_datadir}/devhelp
%dir %{_datadir}/devhelp/books
%changelog