3 %bcond_with tests # perform "make test" (requires X server)
5 %define pnam Gtk2-Html2
6 Summary: Gtk2::Html2 - Perl interface to gtkhtml2 library
7 Summary(pl.UTF-8): Gtk2::Html2 - perlowy interfejs do biblioteki gtkhtml2
12 Group: Development/Languages/Perl
13 Source0: https://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
14 # Source0-md5: 827b00137fcee6372cb7e07c9a3c0a9f
15 Patch0: %{name}-build.patch
16 URL: http://gtk2-perl.sourceforge.net/
17 BuildRequires: libgtkhtml-devel >= 2.0.0
18 BuildRequires: perl-ExtUtils-Depends >= 0.200
19 BuildRequires: perl-ExtUtils-PkgConfig >= 0.1
20 BuildRequires: perl-Glib-devel >= 1.040
21 BuildRequires: perl-Gtk2-devel >= 1.040
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRequires: rpmbuild(macros) >= 1.745
25 Requires: libgtkhtml >= 2.0.0
26 Requires: perl-Glib >= 1.040
27 Requires: perl-Gtk2 >= 1.040
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 The Gtk2::Html2 extension allows a Perl developer to use the gtkhtml2
32 HTML display widget with perl-Gtk2.
34 Note: this module is deprecated and no longer maintained.
36 %description -l pl.UTF-8
37 Moduł Gtk2::Html2 pozwala programistom perlowym używać widgetu
38 wyświetlającego HTML gtkhtml2 wraz z modułem perl-Gtk2.
40 Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany.
43 Summary: Development files for Perl Gtk2-Html2 bindings
44 Summary(pl.UTF-8): Pliki programistyczne wiązań Gtk2-Html2 dla Perla
45 Group: Development/Languages/Perl
46 Requires: %{name} = %{version}-%{release}
47 Requires: libgtkhtml-devel >= 2.0.0
48 Requires: perl-Cairo-devel
49 Requires: perl-Glib-devel >= 1.040
50 Requires: perl-Gtk2-devel >= 1.040
53 Development files for Perl Gtk2-Html2 bindings.
55 %description devel -l pl.UTF-8
56 Pliki programistyczne wiązań Gtk2-Html2 dla Perla.
59 %setup -q -n %{pnam}-%{version}
63 %{__perl} Makefile.PL \
68 OPTIMIZE="%{rpmcflags}"
70 %{?with_tests:%{__make} test}
73 rm -rf $RPM_BUILD_ROOT
75 %{__make} pure_install \
76 DESTDIR=$RPM_BUILD_ROOT
78 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Gtk2/Html2/*.pod
81 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog NEWS README TODO
86 %{perl_vendorarch}/Gtk2/Html2.pm
87 %dir %{perl_vendorarch}/Gtk2/Html2
88 %dir %{perl_vendorarch}/auto/Gtk2/Html2
89 %attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/Html2/Html2.so
90 %{_mandir}/man3/Gtk2::Html2*.3pm*
93 %defattr(644,root,root,755)
94 %{perl_vendorarch}/Gtk2/Html2/Install