diff options
author | Remi Collet <fedora@famillecollet.com> | 2011-08-04 17:31:26 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2011-08-04 17:31:26 +0200 |
commit | ae1c5bff613b905a4e8727f7af4d9c697dd864be (patch) | |
tree | 5486bf3b546efe4d9539ac603eeeef58f10de852 |
new package perl-Gtk2-WebKit
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | perl-Gtk2-WebKit.spec | 69 |
2 files changed, 73 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + diff --git a/perl-Gtk2-WebKit.spec b/perl-Gtk2-WebKit.spec new file mode 100644 index 0000000..39e5d34 --- /dev/null +++ b/perl-Gtk2-WebKit.spec @@ -0,0 +1,69 @@ +Name: perl-Gtk2-WebKit +Version: 0.09 +Release: 1%{?dist} +Summary: Web content engine library for Gtk2 +License: LGPLv2+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/Gtk2-WebKit/ +Source0: http://www.cpan.org/modules/by-module/Gtk2/Gtk2-WebKit-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl >= 1:5.8.0 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Gtk2) +BuildRequires: perl(Test::More) >= 0.89 +BuildRequires: webkitgtk-devel + +Requires: perl(Gtk2) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + + +%description +WebKit is a web content engine, derived from KHTML and KJS from KDE, and +used primarily in Apple's Safari browser. It is made to be embedded in +other applications, such as mail readers, or web browsers. + + +%prep +%setup -q -n Gtk2-WebKit-%{version} + + +%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 {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + + +%check +echo "make test disabled, requires a display" + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes maps README +%{perl_vendorarch}/auto/Gtk2 +%{perl_vendorarch}/Gtk2/* +%{_mandir}/man3/Gtk2* + + +%changelog +* Thu Aug 04 2011 Remi Collet <remi@fedoraproject.org> 0.09-1 +- initial package for review +- Specfile autogenerated by cpanspec 1.78. |