gtkmm2/gtkmm2.spec

274 lines
8.9 KiB
RPMSpec

#
# spec file for package gtkmm2 (Version 2.11.6)
#
# 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 fdupes gcc-c++ glibmm2-devel gtk2-devel libsigc++2-devel update-desktop-files
# Only for directory ownership:
BuildRequires: devhelp
Version: 2.11.6
Release: 1
Group: System/Libraries
License: LGPL v2 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
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
%fdupes $RPM_BUILD_ROOT
%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
* Mon Jul 30 2007 - maw@suse.de
- Update to version 2.11.6
2.11.6:
Gdk:
* Pixbuf:
- Added constructors that do not take dest_x
and dest_y (which are ignored in this case).
- get_formats(): Corrected the reference counting.
Gtk:
* Builder: Removed get_type_from_name().
* IconView:
- set_tooltip_item(), set_tooltip_cell():
Use Tooltip only via a RefPtr.
(Murray Cumming)
- Added get_tooltip_context_path()
and get_tooltip_context_iter().
(Marko Anastasov)
* LinkButton: Added set_uri_hook() and unset_uri_hook().
* PrintJob: Added a const version of get_surface()
* PrintSettings: Corrected the typedef for SlotForeach -
the ustring&s should be const. I do not believe that anybody could
have been using this, so I think it is OK to change it.
* Tooltip: Added set_tip_area().
* TreeView:
- Added convert_widget_to_tree_coords(),
convert_tree_to_widget_coords(), convert_widget_to_bin_window_coords(),
convert_bin_window_to_widget_coords(), convert_tree_to_bin_window_coords(),
convert_bin_window_to_tree_coords(),
set_tooltip_row(), set_tooltip_cell(), set_tooltip_column(),
get_tooltip_column().
(Murray Cumming)
- Added get_tooltip_context_path() and get_tooltip_context_iter().
(Marko Anastasov)
* Widget: Added keynav_failed(), error_bell(),
modify_cursor(), unset_cursor(),
set_has_tooltip(), get_has_tooltip().
(Murray Cumming)
* Documentation:
- Corrected lots of API reference documentation.
(Murray Cumming, Marko Anastasov, Jonathan Jongsma)
- Added a Tooltip example. (Marko Anastasov)
2.11.5:
Pango:
* Color: Added to_string().
* Context: Added set_base_gravity(), get_base_gravity(),
get_gravity(), set_gravity_hint(), get_gravity_hint().
* FontDescription: Added set_gravity() and get_gravity().
* FontFace: Added is_synthesized().
* GlyphString: Added get_width().
* Layout: Added is_wrapped(), is_ellipsized() and
get_unknown_glyphs_count().
Gdk:
* Screen: Added is_composited(), set_font_options(),
get_font_options(), set_resolution(), get_resolution(),
get_active_window().
Gtk:
* IconView:
Added set_tooltip_item(), set_tooltip_cell(),
convert_widget_to_bin_window_coords().
* MenuToolButton.hg: Added set_arrow_tooltip_text() and
set_arrow_tooltip_markup().
* StatusIcon: Added set_screen() and get_screen().
(Murray Cumming)
* TextBuffer: Addded cursor-position property.
(Marko Anastasov)
* TreeVIew: Added is_rubber_banding_active()
(Murray Cumming)
- Use %%fdupes.
* Wed Jul 11 2007 - mauro@suse.de
- Update to version 2.11.4
- Fixes to class documentation.
- Updated widget class - to match the new tooltips API.
- Converter from libglade's .glade files to GtkBuilder .ui files.
- Some examples were added to the documentation.
* 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.