rpms/perl-Gtk2-MozEmbed/F-10 perl-Gtk2-MozEmbed-make.patch, NONE, 1.1 perl-Gtk2-MozEmbed.spec, NONE, 1.1 sources, 1.1, 1.2

Remi Collet remi at fedoraproject.org
Fri Mar 6 18:25:06 UTC 2009


Author: remi

Update of /cvs/extras/rpms/perl-Gtk2-MozEmbed/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv361

Modified Files:
	sources 
Added Files:
	perl-Gtk2-MozEmbed-make.patch perl-Gtk2-MozEmbed.spec 
Log Message:
new package

perl-Gtk2-MozEmbed-make.patch:

--- NEW FILE perl-Gtk2-MozEmbed-make.patch ---
--- Makefile.PL.orig	2009-02-15 10:17:17.000000000 +0100
+++ Makefile.PL	2009-02-15 10:19:18.000000000 +0100
@@ -76,9 +76,9 @@
 my $inc = $pkgcfg{cflags};
 my $libs = $pkgcfg{libs};
 
-if ($libs =~ m#xulrunner-devel-([^/]+)#) {
+if ($libs =~ m#(lib|lib64)/xulrunner-(devel|sdk)-([^/]+)#) {
 	$inc .= qq( -DGTK_MOZ_EMBED_PERL_XULRUNNER_PATH=)
-	      . qq("\\"/usr/lib/xulrunner-$1\\"" );
+	      . qq("\\"/usr/$1/xulrunner-$3\\"" );
 }
 
 my $mozembed = ExtUtils::Depends->new('Gtk2::MozEmbed', 'Gtk2',


--- NEW FILE perl-Gtk2-MozEmbed.spec ---
%define perlname Gtk2-MozEmbed

%if 0%{?fedora} >= 11
%define gecko_version 1.9.1
%else
%define gecko_version 1.9.0.7
%endif

Summary:       Interface to the Mozilla embedding widget
Name:          perl-Gtk2-MozEmbed
Version:       0.08
Release:       3%{?dist}.1

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) >= 1.180
BuildRequires: perl(Gtk2) >= 1.081
BuildRequires: gtk2-devel
BuildRequires: xulrunner-devel-unstable = %{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
* Fri Mar 06 2009 Remi Collet <Fedora at FamilleCollet.com> - 0.08-3.fc10.1
- Rebuild against xulrunner 1.9.0.7

* Tue Mar 03 2009 Remi Collet <Fedora at FamilleCollet.com> - 0.08-3
- Fix from review : Gtk2 dir ownership

* Tue Mar 03 2009 Remi Collet <Fedora at FamilleCollet.com> - 0.08-2
- Fix from review : License, %%check, %%_fixperms

* Sat Feb 14 2009 Remi Collet <Fedora at FamilleCollet.com> - 0.08-1
- initial Fedora RPM



Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-Gtk2-MozEmbed/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	5 Mar 2009 20:07:05 -0000	1.1
+++ sources	6 Mar 2009 18:24:36 -0000	1.2
@@ -0,0 +1 @@
+ddafafa0e2684050a5d8b9f2c15f6dca  Gtk2-MozEmbed-0.08.tar.gz




More information about the fedora-extras-commits mailing list