forked from remicollet/remirepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35167e3
commit 1e69492
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SRCDIR := $(shell pwd) | ||
NAME := $(shell basename $(SRCDIR)) | ||
include ../common/Makefile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |