]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" (requires X server) | |
4 | # | |
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 | |
9 | Version: 1.001 | |
10 | Release: 4 | |
11 | License: LGPL v2+ | |
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) | |
30 | ||
31 | %description | |
32 | The Gnome2::Print Perl module allows a Perl developer to use the GNOME | |
33 | Printing libraries with Gtk2-perl. | |
34 | ||
35 | Note: this module is deprecated and no longer maintained. | |
36 | ||
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. | |
40 | ||
41 | Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany. | |
42 | ||
43 | %package devel | |
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 | |
52 | ||
53 | %description devel | |
54 | Development files for Perl Gnome2-Print bindings. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki programistyczne wiązań Gnome2-Print dla Perla. | |
58 | ||
59 | %prep | |
60 | %setup -q -n %{pnam}-%{version} | |
61 | %patch0 -p1 | |
62 | ||
63 | %build | |
64 | %{__perl} Makefile.PL \ | |
65 | INSTALLDIRS=vendor | |
66 | ||
67 | %{__make} \ | |
68 | CC="%{__cc}" \ | |
69 | OPTIMIZE="%{rpmcflags}" | |
70 | ||
71 | %{?with_tests:%{__make} test} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} pure_install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/Print/*.pod | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
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* | |
94 | ||
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %{perl_vendorarch}/Gnome2/Print/Install |