]> git.pld-linux.org Git - SPECS.git/blob - perl-Gtk3.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / perl-Gtk3.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Gtk3
6 Summary:        Perl interface to the 3.x series of the Gimp Toolkit library
7 Summary(pl.UTF-8):      Interfejs perlowy do wersji 3.x biblioteki Gimp Toolkit
8 Name:           perl-Gtk3
9 Version:        0.038
10 Release:        2
11 License:        LGPL v2.1+
12 Group:          Development/Languages/Perl
13 Source0:        https://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{version}.tar.gz
14 # Source0-md5:  c4f13880b5a95855cbdf3bcd6ada5661
15 URL:            http://gtk2-perl.sourceforge.net/
16 BuildRequires:  perl-ExtUtils-MakeMaker >= 6.30
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRequires:  rpmbuild(macros) >= 1.745
20 %if %{with tests}
21 BuildRequires:  perl-Cairo-GObject >= 1.000
22 BuildRequires:  perl-Glib >= 1.260
23 BuildRequires:  perl-Glib-Object-Introspection >= 0.043
24 BuildRequires:  perl-Test-Simple >= 0.96
25 %endif
26 # gdk-pixbuf2, gtk+3, pango with gobject-introspection bindings
27 Requires:       gdk-pixbuf2 >= 2.22
28 Requires:       gtk+3 >= 3.0.0
29 Requires:       pango >= 1:1.26
30 Requires:       perl-Cairo-GObject >= 1.000
31 Requires:       perl-Glib >= 1.260
32 Requires:       perl-Glib-Object-Introspection >= 0.043
33 BuildArch:      noarch
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
53 %{?with_tests:%{__make} test}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} pure_install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc NEWS README
67 %{perl_vendorlib}/Gtk3.pm
68 %{_mandir}/man3/Gtk3.3pm*
This page took 0.750002 seconds and 3 git commands to generate.