summaryrefslogtreecommitdiffstats
path: root/perl-Gtk2-WebKit.spec
blob: 982952a476b8968e9ff9b7c4b37e85e45c29d67d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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(ExtUtils::Depends)
BuildRequires:  perl(ExtUtils::PkgConfig)
BuildRequires:  perl(Gtk2)
BuildRequires:  perl(Test::More) >= 0.89
BuildRequires:  webkitgtk-devel
BuildRequires:  perl-Glib-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,-)
# request for License
# https://rt.cpan.org/Public/Bug/Display.html?id=70048
%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.