rpms/perl-Gtk2-MozEmbed/devel perl-Gtk2-MozEmbed-make.patch, NONE, 1.1 perl-Gtk2-MozEmbed.spec, NONE, 1.1
Remi Collet
remi at fedoraproject.org
Fri Mar 6 14:55:06 UTC 2009
Author: remi
Update of /cvs/extras/rpms/perl-Gtk2-MozEmbed/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21044
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.6
%endif
Summary: Interface to the Mozilla embedding widget
Name: perl-Gtk2-MozEmbed
Version: 0.08
Release: 3%{?dist}
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
* 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
More information about the scm-commits
mailing list