gtkmm2/gtkmm2.spec

190 lines
6.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gtkmm2 (Version 2.17.2)
#
# 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: gtkmm2
%define _name gtkmm
BuildRequires: cairomm-devel fdupes gcc-c++ glibmm2-devel libsigc++2-devel pangomm-devel update-desktop-files
BuildRequires: gtk2-devel >= 2.15.1
Version: 2.17.2
Release: 1
Group: System/Libraries
License: GPL v2 or later ; LGPL v2.1 or later
Summary: C++ Interface for GTK2 (a GUI Library for X)
Url: http://www.gtkmm.org/
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{_name}/2.10/%{_name}-%{version}.tar.bz2
Provides: gtkmm24 = %{version}
Obsoletes: gtkmm24
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Gtkmm provides a C++ interface to the GTK+ GUI library. gtkmm2 wraps
GTK+ 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.
Authors:
--------
Murray Cumming <murrayc@usa.net>
Daniel Elstner <daniel.elstner@gmx.net>
Karl Nelson <kenelson@ece.ucdavis.edu>
Tero Pulkkinen <terop@modeemi.cs.tut.fi>
Elliot Lee <sopwith@redhat.com>
Phil Dawes <P.L.Dawes-CSSE94@cs.bham.ac.uk>
Erik Andersen <andersee@debian.org>
Bibek Sahu <scorpio@dodds.net>
Mirko Streckenbach
Havoc Pennington <hp@pobox.com>
Guillaume Laurent <glaurent@telegraph-road.org>
Todd Dukes <tdukes@ibmoto.com>
Peter Lerner <peter.lerner@bnbt.de>
Herbert Valerio Riedel <hvr@gnu.org>
%package devel
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: C++ Interface for GTK2 (a GUI library for X)
Requires: %{name} = %{version} gtk2-devel glibmm2-devel cairomm-devel atk-devel pango-devel pangomm-devel
Provides: gtkmm24-devel = %{version}
Obsoletes: gtkmm24-devel
%description devel
Gtkmm provides a C++ interface to the GTK+ GUI library. gtkmm2 wraps
GTK+ 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.
Authors:
--------
Murray Cumming <murrayc@usa.net>
Daniel Elstner <daniel.elstner@gmx.net>
Karl Nelson <kenelson@ece.ucdavis.edu>
Tero Pulkkinen <terop@modeemi.cs.tut.fi>
Elliot Lee <sopwith@redhat.com>
Phil Dawes <P.L.Dawes-CSSE94@cs.bham.ac.uk>
Erik Andersen <andersee@debian.org>
Bibek Sahu <scorpio@dodds.net>
Mirko Streckenbach
Havoc Pennington <hp@pobox.com>
Guillaume Laurent <glaurent@telegraph-road.org>
Todd Dukes <tdukes@ibmoto.com>
Peter Lerner <peter.lerner@bnbt.de>
Herbert Valerio Riedel <hvr@gnu.org>
%package doc
License: GPL v2 or later ; LGPL v2.1 or later
Group: Documentation/HTML
Summary: C++ Interface for GTK2 (a GUI Library for X)
Requires: glibmm2-doc
%description doc
Gtkmm provides a C++ interface to the GTK+ GUI library. gtkmm2 wraps
GTK+ 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.
Authors:
--------
Murray Cumming <murrayc@usa.net>
Daniel Elstner <daniel.elstner@gmx.net>
Karl Nelson <kenelson@ece.ucdavis.edu>
Tero Pulkkinen <terop@modeemi.cs.tut.fi>
Elliot Lee <sopwith@redhat.com>
Phil Dawes <P.L.Dawes-CSSE94@cs.bham.ac.uk>
Erik Andersen <andersee@debian.org>
Bibek Sahu <scorpio@dodds.net>
Mirko Streckenbach
Havoc Pennington <hp@pobox.com>
Guillaume Laurent <glaurent@telegraph-road.org>
Todd Dukes <tdukes@ibmoto.com>
Peter Lerner <peter.lerner@bnbt.de>
Herbert Valerio Riedel <hvr@gnu.org>
%prep
%setup -q -n %{_name}-%{version}
%build
# FIXME: cannot autoreconf, HAVE_MKFIFO is missing.
#ACLOCAL="aclocal -I scripts" autoreconf -f -i
%configure
make %{?jobs:-j%jobs} gtkmm_docdir=%{_docdir}/%{name}/docs
%install
make DESTDIR=$RPM_BUILD_ROOT gtkmm_docdir=%{_docdir}/%{name}/docs install
rm $RPM_BUILD_ROOT/%{_libdir}/*.*a
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp -r AUTHORS CHANGES COPYING ChangeLog INSTALL NEWS README $RPM_BUILD_ROOT%{_docdir}/%{name}
# we change the path of the documentation. Make sure devhelp works. bnc#410564
perl -pi -e "s@/doc/gtkmm-2.4/@/doc/packages/gtkmm2/@g" $RPM_BUILD_ROOT%{_datadir}/devhelp/books/gtkmm-2.4/gtkmm-2.4.devhelp
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/tests
cp tests/Makefile $RPM_BUILD_ROOT%{_docdir}/%{name}/tests
export LANG=C
for DIR in tests/[a-z]* ; do
cp -r $DIR/{Makefile,*.cc} $RPM_BUILD_ROOT%{_docdir}/%{name}/tests
done
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/CHANGES
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/INSTALL
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%doc %{_docdir}/%{name}/docs
%doc %{_docdir}/%{name}/tests
%{_bindir}/gtkmm-demo
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/gdkmm-2.4
%{_libdir}/gtkmm-2.4
%files doc
%defattr (-, root, root)
%doc %{_docdir}/%{name}/docs
%doc %{_docdir}/%{name}/tests
%{_datadir}/devhelp/books/gtkmm-2.4
%{_datadir}/gtkmm-2.4
# Avoid BuildRequires on devhelp
%dir %{_datadir}/devhelp
%dir %{_datadir}/devhelp/books
%changelog