2007-01-12 16:15:41 +01:00
#
2011-05-04 13:59:21 +02:00
# spec file for package gtkmm2
2007-01-12 16:15:41 +01:00
#
2011-05-04 13:59:21 +02:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-12 16:15:41 +01:00
#
2008-09-05 02:34:33 +02:00
# 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.
2007-01-12 16:15:41 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
2008-03-19 12:31:24 +01:00
2007-01-12 16:15:41 +01:00
Name : gtkmm2
%define _name gtkmm
2010-08-09 22:34:57 +02:00
BuildRequires : atkmm-devel cairomm-devel fdupes gcc-c++ glibmm2-devel libsigc++2-devel pangomm-devel
2009-02-06 20:15:12 +01:00
BuildRequires : gtk2-devel >= 2.15.1
2011-04-28 23:57:21 +02:00
Version : 2.24.0
2010-08-09 22:34:57 +02:00
Release : 1
2011-04-28 23:57:21 +02:00
# FIXME: if there is a new upstream version, remove --disable-documentation from configure: this is right now broken because of the move to mm-common upstream, and we need a tarball to have this work.
2007-01-12 16:15:41 +01:00
Group : System/Libraries
2010-04-08 12:33:25 +02:00
License : LGPLv2.1+
2007-01-12 16:15:41 +01:00
Summary : C++ Interface for GTK2 (a GUI Library for X)
2007-09-19 19:07:16 +02:00
Url : http://www.gtkmm.org/
2007-01-12 16:15:41 +01:00
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.
2010-08-09 22:34:57 +02:00
%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}
2010-10-15 16:39:35 +02:00
Obsoletes : gtkmm2 < %{version}
2010-08-09 22:34:57 +02:00
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.
2007-01-12 16:15:41 +01:00
%package devel
2010-01-15 02:30:09 +01:00
License : LGPLv2.1+
2007-01-12 16:15:41 +01:00
Group : Development/Libraries/C and C++
Summary : C++ Interface for GTK2 (a GUI library for X)
2010-08-09 22:34:57 +02:00
Requires : libgtkmm-2_4-1 = %{version}
2007-01-12 16:15:41 +01:00
Provides : gtkmm24-devel = %{version}
2010-08-09 22:34:57 +02:00
Obsoletes : gtkmm24-devel < %{version}
2011-04-28 23:57:21 +02:00
Provides : %{name} -doc = %{version}
Obsoletes : %{name} -doc < %{version}
2007-01-12 16:15:41 +01:00
%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.
%prep
%setup -q -n %{_name}-%{version}
%build
# FIXME: cannot autoreconf, HAVE_MKFIFO is missing.
#ACLOCAL="aclocal -I scripts" autoreconf -f -i
2011-04-28 23:57:21 +02:00
%configure \
--disable-static \
--disable-documentation
2007-01-12 16:15:41 +01:00
make %{?jobs:-j%jobs} gtkmm_docdir=%{_docdir} /%{name} /docs
%install
2009-09-04 01:44:28 +02:00
%makeinstall
2011-04-28 23:57:21 +02:00
find %{buildroot} %{_libdir} -name '*.la' -type f -delete -print
2009-09-04 01:44:28 +02:00
%fdupes %{buildroot}
2007-07-30 22:57:38 +02:00
2007-01-12 16:15:41 +01:00
%clean
2011-04-28 23:57:21 +02:00
rm -rf %{buildroot}
2007-01-12 16:15:41 +01:00
2010-08-09 22:34:57 +02:00
%post -n libgtkmm-2_4-1 -p /sbin/ldconfig
2007-01-12 16:15:41 +01:00
2010-08-09 22:34:57 +02:00
%postun -n libgtkmm-2_4-1 -p /sbin/ldconfig
2007-01-12 16:15:41 +01:00
2010-08-09 22:34:57 +02:00
%files -n libgtkmm-2_4-1
2007-01-12 16:15:41 +01:00
%defattr (-, root, root)
2009-10-06 00:54:11 +02:00
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
2007-01-12 16:15:41 +01:00
%{_libdir} /*.so.*
%files devel
%defattr (-, root, root)
%{_includedir} /*
%{_libdir} /*.so
%{_libdir} /pkgconfig/*.pc
2010-08-09 22:34:57 +02:00
%{_libdir} /gdkmm-2.4/
%{_libdir} /gtkmm-2.4/
2009-02-06 20:15:12 +01:00
2007-04-12 17:37:52 +02:00
%changelog