[perl-Gtk3-WebKit] Initial import (#1071204).
David Dick
ddick at fedoraproject.org
Fri Feb 28 21:17:39 UTC 2014
commit c96cfaf8e485d28edbb4d56dfb722e95fb209bc2
Author: David Dick <ddick at cpan.org>
Date: Sat Mar 1 08:18:19 2014 +1100
Initial import (#1071204).
.gitignore | 1 +
perl-Gtk3-WebKit.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
webkit_xvfb_segfault.patch | 11 +++++++
4 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5bc30d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Gtk3-WebKit-0.04.tar.gz
diff --git a/perl-Gtk3-WebKit.spec b/perl-Gtk3-WebKit.spec
new file mode 100644
index 0000000..ff83682
--- /dev/null
+++ b/perl-Gtk3-WebKit.spec
@@ -0,0 +1,72 @@
+%global use_x11_tests 1
+Name: perl-Gtk3-WebKit
+Version: 0.04
+Release: 1%{?dist}
+Summary: WebKit bindings for Perl
+License: LGPLv2 or Artistic 2.0
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Gtk3-WebKit/
+Source0: http://www.cpan.org/authors/id/P/PO/POTYL/Gtk3-WebKit-%{version}.tar.gz
+# https://rt.cpan.org/Ticket/Display.html?id=93421
+Patch1: webkit_xvfb_segfault.patch
+BuildArch: noarch
+BuildRequires: perl
+BuildRequires: perl(base)
+BuildRequires: perl(constant)
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(File::Spec)
+BuildRequires: perl(Glib::Object::Introspection)
+BuildRequires: perl(Gtk3)
+BuildRequires: perl(strict)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::NeedsDisplay)
+BuildRequires: perl(warnings)
+BuildRequires: webkitgtk3-devel
+%if %{use_x11_tests}
+# X11 tests:
+BuildRequires: xorg-x11-server-Xvfb
+BuildRequires: xorg-x11-xinit
+BuildRequires: font(:lang=en)
+%endif
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module provides the Perl bindings for the Gtk3 port of WebKit.
+
+%prep
+%setup -q -n Gtk3-WebKit-%{version}
+
+%patch1
+
+%build
+%if %{use_x11_tests}
+ xvfb-run %{__perl} Makefile.PL INSTALLDIRS=vendor
+%else
+ %{__perl} Makefile.PL INSTALLDIRS=vendor
+%endif
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+%if %{use_x11_tests}
+ xvfb-run -a make test
+%else
+ make test
+%endif
+
+%files
+%doc Changes COPYING README examples
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Feb 28 2014 David Dick <ddick at cpan.org> - 0.04-1
+- Initial release
diff --git a/sources b/sources
index e69de29..b5e066e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+78cd32a5f97ea5992e9c5f9af3597399 Gtk3-WebKit-0.04.tar.gz
diff --git a/webkit_xvfb_segfault.patch b/webkit_xvfb_segfault.patch
new file mode 100644
index 0000000..15d35c5
--- /dev/null
+++ b/webkit_xvfb_segfault.patch
@@ -0,0 +1,11 @@
+diff -Naur old/t/webkit.t new/t/webkit.t
+--- t/webkit.t 2013-04-16 06:10:44.000000000 +1000
++++ t/webkit.t 2014-02-28 18:52:35.679550175 +1100
+@@ -19,6 +19,7 @@
+ sub main {
+ my $view = Gtk3::WebKit::WebView->new();
+ isa_ok($view, 'Gtk3::WebKit::WebView');
++ my $session = Gtk3::WebKit::get_default_session();
+ return 0;
+ }
+
More information about the scm-commits
mailing list