# # spec file for package gtkmm2 (Version 2.21.8.1) # # Copyright (c) 2010 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: atkmm-devel cairomm-devel fdupes gcc-c++ glibmm2-devel libsigc++2-devel pangomm-devel BuildRequires: gtk2-devel >= 2.15.1 Version: 2.21.8.1 Release: 1 Group: System/Libraries License: LGPLv2.1+ 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 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. %package -n libgtkmm-2_4-1 License: LGPLv2.1+ Group: System/Libraries Summary: C++ Interface for GTK2 (a GUI library for X) Provides: gtkmm2 = %{version} Obsoletes: gtkmm2 < %{version} Provides: gtkmm24 = %{version} Obsoletes: gtkmm24 < %{version} %description -n libgtkmm-2_4-1 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. %package devel License: LGPLv2.1+ Group: Development/Libraries/C and C++ Summary: C++ Interface for GTK2 (a GUI library for X) Requires: libgtkmm-2_4-1 = %{version} Provides: gtkmm24-devel = %{version} Obsoletes: gtkmm24-devel < %{version} %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. %package doc License: GPLv2+ ; LGPLv2.1+ Group: Documentation/HTML Summary: C++ Interface for GTK2 (a GUI Library for X) Requires: glibmm2-doc %if %suse_version > 1120 BuildArch: noarch %endif %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. %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 %makeinstall rm $RPM_BUILD_ROOT/%{_libdir}/*.*a %fdupes %{buildroot} %clean rm -rf $RPM_BUILD_ROOT %post -n libgtkmm-2_4-1 -p /sbin/ldconfig %postun -n libgtkmm-2_4-1 -p /sbin/ldconfig %files -n libgtkmm-2_4-1 %defattr (-, root, root) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README %{_libdir}/*.so.* %files devel %defattr (-, root, root) %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_libdir}/gdkmm-2.4/ %{_libdir}/gtkmm-2.4/ %files doc %defattr (-, root, root) %{_datadir}/devhelp/books/gtkmm-2.4/ %{_datadir}/doc/gtkmm-2.4/ # Avoid BuildRequires on devhelp %dir %{_datadir}/devhelp %dir %{_datadir}/devhelp/books %changelog