SHA256
1
0
forked from pool/gtkmm2
gtkmm2/gtkmm2.spec

198 lines
6.2 KiB
RPMSpec

#
# spec file for package gtkmm2 (Version 2.10.8)
#
# 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: gtkmm2
%define _name gtkmm
BuildRequires: cairomm-devel gcc-c++ glibmm2-devel gtk2-devel libsigc++2-devel update-desktop-files
# Only for directory ownership:
BuildRequires: devhelp
Version: 2.10.8
Release: 1
Group: System/Libraries
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
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
Patch: gtkmm2-null.patch
Provides: gtkmm24 = %{version}
Obsoletes: gtkmm24
Autoreqprov: on
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
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
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>
%prep
%setup -q -n %{_name}-%{version}
%patch -p1
%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
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp -r AUTHORS CHANGES COPYING ChangeLog INSTALL NEWS README $RPM_BUILD_ROOT%{_docdir}/%{name}
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
%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}/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}/demo
%{_includedir}/*
%{_libdir}/*.*a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/gdkmm-2.4
%{_libdir}/gtkmm-2.4
# FIXME: location of devhelp books, directory ownership, maybe use separate package:
%dir %{_datadir}/devhelp/books
%{_datadir}/devhelp/books/gtkmm-2.4
%changelog
* Tue Apr 10 2007 - maw@suse.de
- Update to version 2.10.8
- Fixes for bugzilla.gnome.org #409102, #383340, #395572, #387708,
[#371882], #366930, #369335, #358268, #358268, and #352226.
* Fri Jan 12 2007 - sbrabec@suse.cz
- Spec file cleanup.
* Mon Dec 18 2006 - maw@suse.de
- Move to /usr.
* Tue Oct 17 2006 - jhargadon@suse.de
- update to version 2.10.2
- Added --enable-atk=no option, to disable the build and use
of the atkmm API, for use in embedded environments
- Book: Added Plug and Socket chapter to book, with example
* Tue Oct 10 2006 - sbrabec@suse.cz
- Use Obsoletes (#211085).
* Wed Sep 27 2006 - sbrabec@suse.cz
- Provide old devel package name.
* Tue Sep 26 2006 - sbrabec@suse.cz
- Merged packaging changes from gtkmm24.
- Provide old package name.
* Sat Sep 16 2006 - jhargadon@suse.de
- update to version 2.10.1
- gtkmm now depends on cairomm
- AccelMap: Added lookup_entry()
- Button: Added get/set_image_position()
- many other additions
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 - sbrabec@suse.cz
- Updated to version 2.8.2.
* Thu Dec 01 2005 - gekker@suse.de
- Update to version 2.8.1
* Wed Sep 07 2005 - sbrabec@suse.cz
- Updated to version 2.8.0 (GNOME 2.12).
* Tue Aug 16 2005 - sbrabec@suse.cz
- Do not require devhelp.
* Thu Aug 04 2005 - sbrabec@suse.cz
- Updated to version 2.6.4.
* Wed Jun 01 2005 - sbrabec@suse.cz
- Fixed devel requirements.
* Wed Apr 13 2005 - sbrabec@suse.cz
- Fixed required NULL-pointer argument.
* Fri Feb 11 2005 - sbrabec@suse.cz
- Added branch 2.4, package splitted, updated to version 2.4.7.
* Tue May 25 2004 - ro@suse.de
- undeprecate where needed
* Thu Mar 18 2004 - sbrabec@suse.cz
- Removed *.o files from documentation (#36348).
* Mon Feb 23 2004 - sbrabec@suse.cz
- Call autoreconf.
* Tue Feb 17 2004 - sbrabec@suse.cz
- Initial SuSE package version 2.2.8.