%define perlname Gtk2-MozEmbed %define gecko_version 1.9.0.6 %if 0%{?fedora} >= 11 %define gecko_version 1.9.2.1 %endif %if 0%{?fedora} >= 13 %define gecko_version 1.9.2.1 %else %endif # Using specfilever cause dumpspec to only increase # right part of release (post dist tag) %global specfilever 6 Summary: Interface to the Mozilla embedding widget Name: perl-Gtk2-MozEmbed Version: 0.08 Release: %{specfilever}%{?dist}.11 Group: Development/Libraries License: LGPLv2+ URL: http://search.cpan.org/dist/Gtk2-MozEmbed Source0: http://www.cpan.org/authors/id/T/TS/TSCH/%{perlname}-%{version}.tar.gz # See https://rt.cpan.org/Ticket/Display.html?id=43306 Patch0: %{name}-make.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::Depends) >= 0.20 BuildRequires: perl(ExtUtils::PkgConfig) >= 1.03 BuildRequires: perl(Glib::MakeHelper) BuildRequires: perl(Gtk2) >= 1.081 BuildRequires: gtk2-devel BuildRequires: xulrunner-devel = %{gecko_version} Requires: perl(Glib) >= 1.180 Requires: perl(Gtk2) >= 1.081 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # BR xulrunner-devel-unstable so hard dep. Requires: gecko-libs = %{gecko_version} %description This module allows you to use the Mozilla embedding widget from Perl. %prep %setup -q -n %{perlname}-%{version} %patch0 -p0 iconv -f ISO-8859-15 -t UTF-8 NEWS >NEWS.utf8 touch -r NEWS NEWS.utf8 mv NEWS.utf8 NEWS %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install %{__rm} -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' -print find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' -print find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' %{_fixperms} $RPM_BUILD_ROOT%{_prefix} %check # Tests doesn't run in mock nor in rpmbuild (need a display) # Should display : All tests successful. # Files=1, Tests=8, 1 wallclock secs - Result: PASS %{?_with_display_tests: make test} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc ChangeLog examples/ LICENSE NEWS README %{_mandir}/man3/Gtk2::MozEmbed* %{perl_vendorarch}/auto/Gtk2 %{perl_vendorarch}/Gtk2 %changelog * Thu Nov 26 2009 Jan Horak - 0.08-6.11 - Rebuild against newer gecko * Sun Nov 22 2009 Remi Collet - 0.08-6.10 - Rebuild against newer gecko (1.9.2.1) * Thu Nov 05 2009 Jan Horak - 0.08-6.9 - Rebuild against newer gecko * Tue Oct 27 2009 Jan Horak - 0.08-6.8 - Rebuild against newer gecko * Fri Sep 11 2009 Jan Horak - 0.08-6.7 - Rebuild against newer gecko * Thu Aug 06 2009 Jan Horak - 0.08-6.6 - Rebuild against newer gecko * Tue Aug 04 2009 Jan Horak - 0.08-6.5 - Rebuild against newer gecko * Sat Jul 25 2009 Fedora Release Engineering - 0.08-6.4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jul 20 2009 Remi Collet - 0.08-6.3 - fix BR * Mon Jul 20 2009 Jan Horak - 0.08-6.2 - Rebuild against newer gecko * Mon Apr 27 2009 Christopher Aillon - 0.08-6.1 - Rebuild against newer gecko * Sat Apr 25 2009 Remi Collet - 0.08-6 - fix release to fix NEVR issue (upgrade from F10) * Tue Mar 03 2009 Remi Collet - 0.08-3 - Fix from review : Gtk2 dir ownership * Tue Mar 03 2009 Remi Collet - 0.08-2 - Fix from review : License, %%check, %%_fixperms * Sat Feb 14 2009 Remi Collet - 0.08-1 - initial Fedora RPM