%define shortname gtkmm Name: %{shortname}2.4 Summary: A C++ interface for GTK2 (a GUI library for X). Copyright: LGPL Group: System/Libraries Version: 2.4.8 Release: 0.mv.0.SuSE_9.2 Url: http://gtkmm.sourceforge.net/ Packager: Martin Väth Distribution: SuSE 9.2 (i586) # Source: ftp://ftp.sourceforge.net/pub/sourceforge/%{shortname}/%{shortname}-%{version}.tar.gz Source0: %{shortname}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: %{shortname} = %{version} Prefix: %{_prefix} BuildRequires: libsigc++-devel >= 1.2.0 BuildRequires: glib2-devel >= 2.0.4 BuildRequires: atk-devel >= 1.0.0, pango-devel >= 1.0.0, gtk2-devel >= 2.0.5 %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 devel Summary: Headers for developing programs that will use %{name}. Group: Development/Libraries/GNOME Provides: %{shortname}-devel = %{version} Requires: %{shortname} = %{version} Requires: gtk2-devel, glib2-devel, libsigc++-devel >= 1.2.0 Requires: atk-devel, pango-devel %description devel This package contains the static libraries and header files needed for developing %{name} applications. %package doc Summary: documentation and examples for %{name}. Group: Development/Libraries/GNOME Requires: %{shortname}-devel = %{version} %description doc This package contains the documentation and examples for %{name}. %define docs %{_defaultdocdir}/%{name} %define docsub %{docs}/doc %prep umask 022 test -n '%{buildroot}' || { echo "Must use buildroot" ; exit 1 ; } %if %{?fake:%fake}%{!?fake:0} %setup -T -D -c -n %{shortname}-%{version} %else %setup -q -c -n %{shortname}-%{version} test -d %{name}-%{version} && mv %{name}-%{version}/* . test -d %{name} && mv %{name}/* . test -d %{shortname}-%{version} && mv %{shortname}-%{version}/* . test -d %{shortname} && mv %{shortname}/* . %endif %build umask 022 cd "$RPM_BUILD_DIR"/%{shortname}-%{version} %if %{?fake:%fake}%{!?fake:0} %else %configure --enable-static --enable-shared make %{?_smp_mflags} gtkmm_docdir=%{docsub} find . -name "*.so*" -type f | xargs strip --strip-unneeded %endif %install umask 022 cd "$RPM_BUILD_DIR"/%{shortname}-%{version} test -n '%{buildroot}' test -d '%{buildroot}' && rm -rf '%{buildroot}' install -d -m 755 '%{buildroot}%{docsub}' install -p -m 644 AUTHORS ChangeLog COPYING NEWS README CHANGES PORTING '%{buildroot}%{docs}' make DESTDIR='%{buildroot}' gtkmm_docdir=%{docsub} install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean test -n '%{buildroot}' -a -d '%{buildroot}' && rm -rf '%{buildroot}' %files %defattr(-,root,root) %{_libdir}/*.so* %dir %{docs} %{docs}/AUTHORS %{docs}/ChangeLog %{docs}/COPYING %{docs}/NEWS %{docs}/README %files devel %defattr(-,root,root) /usr/lib/gdkmm-2.4 %{_includedir}/* %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/%{shortname}* %{_libdir}/pkgconfig/* %files doc %defattr(-,root,root) %dir %{docs} %{docs}/CHANGES %{docs}/PORTING %{docsub} %{_datadir}/devhelp %changelog * Sat Dec 04 2004 Martin Väth - Update to new release and for SuSE9.2 * Wed Nov 26 2003 Martin Väth - minor compatibility improvements * Sat Nov 01 2003 Martin Väth - Almost complete rewrite for SuSE9.0 - separated doc sub-package. * Fri Dec 6 2002 Gary Peck 2.0.2-1 - Removed "--without docs" option and simplified the spec file since the documentation is included in the tarball now * Thu Dec 5 2002 Walter H. van Holst 1.0.2 - Removed reference to patch - Added the documentation files in %files * Thu Oct 31 2002 Gary Peck 2.0.0-gp1 - Update to 2.0.0 * Wed Oct 30 2002 Gary Peck 1.3.26-gp3 - Added "--without docs" option to disable DocBook generation * Sat Oct 26 2002 Gary Peck 1.3.26-gp2 - Update to 1.3.26 - Spec file cleanups - Removed examples from devel package - Build html documentation (including a Makefile patch) * Mon Oct 14 2002 Gary Peck 1.3.24-gp1 - Initial release of gtkmm2, using gtkmm spec file as base