3 %bcond_with tests # perform "make test" (requires X server)
5 %define pnam Gnome2-Print
6 Summary: Perl interface to the GNOME Print libraries
7 Summary(pl.UTF-8): Interfejs perlowy do bibliotek GNOME Print
8 Name: perl-Gnome2-Print
12 Group: Development/Languages/Perl
13 Source0: https://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
14 # Source0-md5: 67ae821c4b7cb9046513a3944cd37e9b
15 Patch0: perl-5.36.patch
16 URL: http://gtk2-perl.sourceforge.net/
17 BuildRequires: libgnomeprintui-devel >= 2.2.0
18 BuildRequires: perl-ExtUtils-Depends >= 0.1
19 BuildRequires: perl-ExtUtils-PkgConfig >= 1.03
20 BuildRequires: perl-Glib-devel >= 1.120
21 BuildRequires: perl-Gtk2-devel >= 1.120
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: pkgconfig
24 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRequires: rpmbuild(macros) >= 1.745
26 Requires: libgnomeprintui >= 2.2.0
27 Requires: perl-Glib >= 1.120
28 Requires: perl-Gtk2 >= 1.120
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 The Gnome2::Print Perl module allows a Perl developer to use the GNOME
33 Printing libraries with Gtk2-perl.
35 Note: this module is deprecated and no longer maintained.
37 %description -l pl.UTF-8
38 Moduł Perla Gnome2::Print umożliwia programistom perlowym korzystanie
39 z bibliotek GNOME Print wraz z Gtk2-perl.
41 Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany.
44 Summary: Development files for Perl Gnome2-Print bindings
45 Summary(pl.UTF-8): Pliki programistyczne wiązań Gnome2-Print dla Perla
46 Group: Development/Languages/Perl
47 Requires: %{name} = %{version}-%{release}
48 Requires: libgnomeprintui-devel >= 2.2.0
49 Requires: perl-Cairo-devel
50 Requires: perl-Glib-devel >= 1.120
51 Requires: perl-Gtk2-devel >= 1.120
54 Development files for Perl Gnome2-Print bindings.
56 %description devel -l pl.UTF-8
57 Pliki programistyczne wiązań Gnome2-Print dla Perla.
60 %setup -q -n %{pnam}-%{version}
64 %{__perl} Makefile.PL \
69 OPTIMIZE="%{rpmcflags}"
71 %{?with_tests:%{__make} test}
74 rm -rf $RPM_BUILD_ROOT
76 %{__make} pure_install \
77 DESTDIR=$RPM_BUILD_ROOT
79 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/Print/*.pod
82 rm -rf $RPM_BUILD_ROOT
85 %defattr(644,root,root,755)
86 %doc AUTHORS ChangeLog NEWS README
87 %{perl_vendorarch}/Gnome2/Print.pm
88 %dir %{perl_vendorarch}/Gnome2/Print
89 %{perl_vendorarch}/Gnome2/Print/Config
90 %{perl_vendorarch}/Gnome2/Print/Font
91 %dir %{perl_vendorarch}/auto/Gnome2/Print
92 %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/Print/Print.so
93 %{_mandir}/man3/Gnome2::Print*.3pm*
96 %defattr(644,root,root,755)
97 %{perl_vendorarch}/Gnome2/Print/Install