Name: gtkmozembedmm Version: 1.4.2.cvs20060817 Release: 5%{?dist} Summary: C++ wrapper for GtkMozembed Group: System Environment/Libraries License: LGPL URL: http://gtkmm.sourceforge.net/ Source0: gtkmozembedmm-%{version}.tar.bz2 # script to generate tarball from cvs Source1: gtkmozembedmm-cvs.sh BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtkmm24-devel >= 2.4.0 BuildRequires: gnome-vfsmm26 >= 2.12.0 BuildRequires: libgnomemm26 >= 2.12.0 BuildRequires: libgnomeuimm26-devel >= 2.12.0 # Use mozilla-devel up to FC5, and firefox-devel for FC6+ %if %{!?fedora:6}%{?fedora} >= 6 BuildRequires: gecko-devel Requires: gecko-libs = 1.5.0.8 %else BuildRequires: mozilla-devel %endif BuildRequires: automake >= 1.9.6 BuildRequires: libtool Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description This package provides a C++/gtkmm wrapper for GtkMozEmbed from Mozilla 1.4.x to 1.7.x. The wrapper provides a convenient interface for C++ programmers to use the Gtkmozembed HTML-rendering widget inside their software. %package devel Summary: Headers for developing programs that will use gtkmozembedmm Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: gtkmm24-devel %if %{!?fedora:6}%{?fedora} >= 6 BuildRequires: gecko-devel %else BuildRequires: mozilla-devel %endif %description devel This package contains the headers that programmers will need to develop applications which will use gtkmozembedmm. %prep %setup -q -n gtkmozembedmm-%{version} %if %{!?fedora:6}%{?fedora} >= 6 %{__sed} -i 's/mozilla-gtkmozembed/firefox-gtkmozembed/' configure configure.ac %endif %ifarch x86_64 # correct a path issue that prevent gtkmozembedmm to build on x86_64 %{__sed} -i 's/lib\/glibmm-2.4/lib64\/glibmm-2.4/' configure %{__sed} -i 's/lib\/glibmm-2.4/lib64\/glibmm-2.4/' configure.ac %endif %build # enable maintainer specific parts in makefiles # prevent the build to fail %configure --disable-static --enable-maintainer-mode "$@" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR=${RPM_BUILD_ROOT} install find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so mkdir $RPM_BUILD_ROOT%{_includedir}/gtkmozembedmm-1.4/proc/ mv $RPM_BUILD_ROOT%{_libdir}/gtkmozembedmm-1.4/include/gtkmozembedmmconfig.h \ $RPM_BUILD_ROOT%{_includedir}/gtkmozembedmm-1.4/gtkmozembedmmconfig.h mv $RPM_BUILD_ROOT%{_libdir}/gtkmozembedmm-1.4/proc \ $RPM_BUILD_ROOT%{_includedir}/gtkmozembedmm-1.4/proc/ %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog TODO NEWS README %{_libdir}/*.so.* %files devel %defattr(-, root, root, -) %doc %{_includedir}/gtkmozembedmm-1.4/ %{_libdir}/*.so %{_libdir}/gtkmozembedmm-1.4/ %{_libdir}/pkgconfig/*.pc %changelog * Sun Nov 12 2006 Karl - 1.4.2.cvs20060817-5 - Fixed x86_64 build issue. * Tue Sep 12 2006 Karl - 1.4.2.cvs20060817-4 - fixed shared lib permission, moved m4 macros into /usr/include, added libtool as BR, provides a script to generate cvs snapshot. * Fri Sep 08 2006 Karl - 1.4.2.cvs20060817-3 - added automake as BR, conditional dependency on firefox-devel for FC6+ to build under Mock. * Thu Aug 17 2006 Karl - 1.4.2.cvs20060817-2 - updated to cvs20060817 * Sat May 20 2006 Karl - 1.4.2-1 - First Packaging from cvs