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

555 lines
21 KiB
RPMSpec

#
# spec file for package gtkmm2 (Version 2.15.3)
#
# 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
# Only for directory ownership:
BuildRequires: devhelp
Version: 2.15.3
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
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
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
%dir %{_datadir}/devhelp/books
%{_datadir}/devhelp/books/gtkmm-2.4
%{_datadir}/gtkmm-2.4
%changelog
* Tue Feb 10 2009 vuntz@novell.com
- Update to version 2.15.3:
+ Gtk:
- Action: Reimplemented set_tooltip() with the new C
gtk_action_set_tooltip() function. Added get/set_label(),
get/set_short_label(), get_tooltip(), get/set_stock_id(),
get/set_gicon(), get/set_icon_name(),
get/set_visible_horizontal(), get/set_visible_vertical(),
get/set_is_important(), which are new accessors for the
properties. Added the gicon property. Added block_activate()
and unblock_activate().
- ImageMenuItem: Added get/set_always_show_image() and
property.
- Scale: Added add_mark() and clear_marks().
- TreeView: Added a get_path_at_pos() overload that takes less
parameters.
+ Build:
* Allow pangomm to build outside the source tree. (bgo#570325)
* MSVC++: Disabled compiler warning 4250 also for MSVC2005.
(bgo#568083)
+ Documentation:
- Reference documetnation: Unescape some < and > characters.
(bgo#568485)
* Mon Feb 02 2009 hfiguiere@suse.de
- Fix devhelp (bnc#410564)
- Add specific require on gtk2-devel
- Split -doc package
* Mon Feb 02 2009 mboman@suse.de
- Update to version 2.15.1:
+ CellView: Added get_model() and some new properties.
+ Entry: Added unset_invisible_char(), get_invisible_char().
+ ImageMenuItem: Added get/set_use_stock(), set_accel_group().
+ MenuItem: Added get/set_label(), get/set_use_underline() and properties
+ PaperSize: Constructor: Remove the default value for the name parameter,
because there is already a default constructor,
+ PrintOperation: Added draw_page_finish(), set_defer_drawing().
+ PrintSettings: Added get_resolution_x(), get_resolution_y(),
set_resolution_xy(), get/set_printer_lpi().
+ SelectionData: Reimplement get_selection() using the new C getter method.
+ StatusIcon: Added button_press_event, button_release_event and
scroll_event signals. Added get/set_has_tooltip(),
get/set_tooltip_text(), get/set_tooltip_markup().
+ Stock: ORIENTATION_PORTRAIT, ORIENTATION_LANDSCAPE,
ORIENTATION_REVERSE_LANDSCAPE, and ORIENTATION_REVERSE_PORTRAIT,
avoiding undefined reference errors when trying to use these.
+ TextBuffer: Added the paste_done signal.
+ TextView: Added im-module property.
+ TreeModel::Path::empty(): Also check for a null underlying
GtkTreePath. Added operator bool() to do the same, just calling !empty().
+ Drawable::draw_pixbuf(): Add an override without a GC parameter,
because it can be NULL in C.
+ Screen: Added get_monitor_width_mm(), get_monitor_height_mm(),
get_monitor_plug_name().
- Disabled MSVC++ compiler warning 4250
* Fri Jan 23 2009 vuntz@novell.com
- Drop gtkmm2-null.patch: it's not needed anymore, after discussing
with upstream.
- Minor spec file clean up.
* Mon Jan 05 2009 mboman@suse.de
- Update to version 2.15.0:
+ CellRendererPixbuf: Added the icon-name and follow-state
properties
+ Printer::enumerate_printers(): Fix a refcounting problem
+ Gdk::Window: Added an invalidate() that takes no rect
parameter because it can be NULL in C.
+ Cleaned up gtk includes to use only toplevel headers, as may be
required by a future GTK+ version.
+ Container: Use GType instead of GtkType for the child_type_vfunc()
return type. This should allow soure code to use gtkmm if it declares
GTK_DISABLE_DEPRECATED
+ Documentation: TreeModel: set_value_impl() documentation: Mention
row_changed(), not set_row_changed()
+ HandleBox: Restore the child-attached property, which was lost at some
point during 2.14
+ LinkButton: Resore the visited property definition, which was lost at
some point during 2.14
+ CellView, ComboBox, EntryCompletion, IconView: Added unset_model()
* Wed Dec 24 2008 mboman@suse.de
- Update to version 2.14.3:
+ Restored Gtk::HandleBox::signal_child_attached() and
Gtk::LinkButton::property_visited() to the API, which were lost sometime
during the gtkmm 2.14.x series
+ Remove some ;s to avoid warnings.
+ Use the new naming convention, similar to boost.
installer-creation script improvements.
+ Documentation fixes
* Fri Oct 03 2008 mboman@suse.de
- Update to version 2.14.1:
+ Windows build fixes
* Thu Sep 25 2008 ro@suse.de
- add pangomm-devel to devel package requires
* Thu Sep 18 2008 maw@suse.de
- Update to version 2.23.8:
+ ComboBox: Added get/set_button_sensitivity()
+ FileChooser: Added set_file(), select_file(), unselect_file(),
taking a Gio::File. Added get_files(),
set_current_folder_file(), get_current_folder_file(),
get_file(), gtk_file_chooser_get_file(), get_file(),
get_preview_file()
+ LinkButton: Added get/set_visited() and the property
+ StatusIcon: Added set() taking a Gio::Icon. Added get_icon()
and gicon property. Added constructor taking a Gio::Icon.
+ Adjustment, StatusIcon: Reimplement some get_*() functions
with new C functions instead of direct struct access
+ PrintSettings: Added get/set_number_up_layout(), using the
new NumberUpLayout enum.
+ SelectionData: Changed get_data() to not return a length too,
and added get_length(), as it was in gtkmm 2.12, to match
latest GTK+
+ Widget: Changed the get_allocation() implementation back to
direct struct field access, to match latest GTK+.
+ Added a COPYING.tools file because a small gmmproc utility
is GPL (bgo##550789).
* Thu Sep 18 2008 maw@suse.de
- Require pangomm-devel to build.
* Mon Aug 11 2008 maw@suse.de
- Update to version 2.13.6:
+ pangomm is now in its own tarball
+ AccelGroup: Added get_is_locked() and get_modifier_mask()
* CellRendererPixbuf: Added gicon property
* Clipboard: Added request_uris(), wait_for_uris(),
wait_is_uris_available()
* Entry: Added get/set_overwrite_mode()
Added overwrite_mode and text_length properties
* Dialog: Reimplemented get_action_area() and
get_content_area() with the new accessor functions
* Entry: Reimplemented get_text_length() with the new accessor
functions
* HandleBox: Reimplemented is_child_detached() with
* IconInfo: Added IconInfo(icon_theme, pixbuf) constructor
* Image: Added a set() overload that takes a Gio::Icon
Added get_gicon() and gicon property
* Layout: Reimplemented get_bin_window() with the new accessor
function
* Menu: Added get_accel_path() and get_monitor() and many
new properties
* MenuItem: Added get_accel_path().
Added right-justified and submenu properties
* MessageDialog: Added get_image()
* Printer: Added get_default_page_size()
* PageSetup: Added load_from_file() and load_from_key_file()
Added create_from_file() and create_from_key_file()
* Plug: Added get_embedded() and get_socket_window()
Added embedded and socket_window properties
* PrinterSettings: Added load_from_file() and
load_from_key_file(). Added create_from_file() and
create_from_key_file()
* ScaleButton: Added set/get_orientation(),
get_plus_button(), get_minus_button(), get_popup()
Added orientation property
* SelectionData: Reimplemented get_data(), get_data_type(),
get_format(), and get_display() with the new accessor
functions
* ScaleButton: Added set/get_orientation(),
get_plus_button(), get_minus_button(), get_popup()
Added orientation property
* Settings: Added many properties
* Socket: Added get_plug_window()
* StatusIcon: Added get_x11_window_id()
* Stock: Added PAGE_SETUP, PRINT_ERROR, PRINT_REPORT,
PRINT_WARNING
* ToolItem: Added toolbar_reconfigured()
* Tooltip: Added set_icon_from_icon_name()
* TreeViewColumn: Added get_tree_view()
Deprecated the existing cell_get_size() and added another,
because the cell_area parameter has changed to a const in
gtk_tree_view_column_cell_get_size()
* Widget: Added damage_event signal.
Added window property
Added get_snapshot()
Reimplemented get_allocation() and get_window() with the new C
accessor functions instead of direct struct field access
* Builder: Added versions of create_from_file(),
create_from_string(), add_from_file(), and add_from_string()
that take an ID or array of IDs, to allow building of only a part of
the file, as was already possible with libglade
* CellRendererCombo: Wrapped the changed signal
* FileChooser: get_preview_widget(): Avoid an endless loop.
bgo#543288
* Printer: Added is_paused() and is_accepting_jobs()
* ComboBoxEntry: Added get_active_text()
* Widget: Added the drag_failed signal, with no default signal
handler
+ Calendar: Removed spurious ; characters (bgo#54484).
* Mon Jun 30 2008 maw@suse.de
- Update to version 2.13.1:
+ Various API additions and bugfixes
+ For a fuller account, see the included NEWS file.
* Fri Apr 11 2008 maw@suse.de
- Update to version 2.12.7:
+ Container: Avoid a useless warning about remove() with custom
containers (bgo#518002)
+ Build: Fixed a warning from g++ 4.3 (bgo#524874)
+ UIManager: add_ui_from_string(): Fix a problem with use of
non-ASCII text in UI markup
+ TreeModel::Path (TreePath): TreePath(In pbegin, In pend)
constructor: initialize gobject_ to avoid a crash (bgo#50043).
* Mon Mar 17 2008 maw@suse.de
- Update to version 2.12.5:
+ Improved documentation
+ Build fixes
- The file hitherto known as /usr/bin/demo has been
renamed to /usr/bin/gtkmm-demo.
* Tue Jan 29 2008 maw@suse.de
- Update to version 2.12.4:
+ Gtk::RecentAction: Derive from RecentChooser - this class was
unusable before and we didn't want to wait for the next
major GTK+ and gtkmm versions to fix it
+ Build fix with gcc 4.3 pre-releases
- Respin gtkmm2-gcc43.patch
- Remove libtool archives.
* Mon Nov 26 2007 maw@suse.de
- Update to version 2.12.3:
+ Bug fixes
+ Improved documentation.
* 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.
* Fri Sep 15 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.