3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: Perl interface to the 3.x series of the Gimp Toolkit library
8 Summary(pl.UTF-8): Interfejs perlowy do wersji 3.x biblioteki Gimp Toolkit
13 Group: Development/Languages/Perl
14 Source0: http://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 4d6e582b2cddea0503d516edd91f2062
16 URL: http://gtk2-perl.sourceforge.net/
17 BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.192
22 BuildRequires: perl-Cairo-GObject >= 1.000
23 BuildRequires: perl-Glib >= 1.260
24 BuildRequires: perl-Glib-Object-Introspection >= 0.016
25 BuildRequires: perl-Test-Simple >= 0.96
27 # gdk-pixbuf2, gtk+3, pango with gobject-introspection bindings
28 Requires: gdk-pixbuf2 >= 2.22
29 Requires: gtk+3 >= 3.0.0
30 Requires: pango >= 1:1.26
31 Requires: perl-Cairo-GObject >= 1.000
32 Requires: perl-Glib >= 1.260
33 Requires: perl-Glib-Object-Introspection >= 0.016
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 The Gtk3 module allows a perl developer to use the GTK+ graphical user
40 %description -l pl.UTF-8
41 Moduł Gtk3 pozwala programistom perlowym na używanie biblioteki
42 interfejsu graficznego GTK+.
45 %setup -q -n %{pdir}-%{version}
48 %{__perl} Makefile.PL \
53 OPTIMIZE="%{rpmcflags}"
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
60 %{__make} pure_install \
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/Gtk3.pm
70 %{_mandir}/man3/Gtk3.3pm*