# # spec file for package gtkmm2 (Version 2.12.0) # # 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.12.0 Release: 16 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 Patch1: gtkmm2-gcc43.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 Daniel Elstner Karl Nelson Tero Pulkkinen Elliot Lee Phil Dawes Erik Andersen Bibek Sahu Mirko Streckenbach Havoc Pennington Guillaume Laurent Todd Dukes Peter Lerner Herbert Valerio Riedel %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 Daniel Elstner Karl Nelson Tero Pulkkinen Elliot Lee Phil Dawes Erik Andersen Bibek Sahu Mirko Streckenbach Havoc Pennington Guillaume Laurent Todd Dukes Peter Lerner Herbert Valerio Riedel %prep %setup -q -n %{_name}-%{version} %patch -p1 %patch1 -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 * Wed Oct 17 2007 - rguenther@suse.de - Fix build with GCC 4.3. * Mon Sep 17 2007 - maw@suse.de - Update to version 2.12.0: * RecentAction: Rearrange the constructor parameters, to match the other Action classes; added more default parameters - This release requires gtk+ version 2.14.0. * Tue Sep 11 2007 - mauro@suse.de - Update to version 2.11.8: + Gdk::Cairo::set_source_color(), set_source_pixbuf(), set_source_pixmap(): Deprecated the existing versions of these methods and added overloads that take a const RefPtr& instead. + Deprecated Gdk::Cairo::rectangle(), replacing it with add_rectangle_to_path(). and deprecated Gdk::Cairo::region(), replacing it with add_region_to_path(), because these names are clearer. + Documentation: Tutorial: DrawingArea: Corrected a mention of PixBuf to Pixbuf. Bug #465961 * Fri Aug 31 2007 - maw@suse.de - Update to version 2.11.7: + Build fixes + Documentation markup changes for future appearence in library.gnome.org. * 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.