]> git.pld-linux.org Git - packages/perl-Gtk3.git/blob - perl-Gtk3.spec
- updated to 0.026
[packages/perl-Gtk3.git] / perl-Gtk3.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Gtk3
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
9 Name:           perl-Gtk3
10 Version:        0.026
11 Release:        1
12 License:        LGPL v2.1+
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
21 %if %{with tests}
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
26 %endif
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)
35
36 %description
37 The Gtk3 module allows a perl developer to use the GTK+ graphical user
38 interface library.
39
40 %description -l pl.UTF-8
41 Moduł Gtk3 pozwala programistom perlowym na używanie biblioteki
42 interfejsu graficznego GTK+.
43
44 %prep
45 %setup -q -n %{pdir}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50
51 %{__make} \
52         CC="%{__cc}" \
53         OPTIMIZE="%{rpmcflags}"
54
55 %{?with_tests:%{__make} test}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} pure_install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc NEWS README
69 %{perl_vendorlib}/Gtk3.pm
70 %{_mandir}/man3/Gtk3.3pm*
This page took 0.055207 seconds and 3 git commands to generate.