]>
Commit | Line | Data |
---|---|---|
a18ff944 MK |
1 | # |
2 | # Conditional build: | |
6ba52767 | 3 | %bcond_with tests # perform "make test" (requires X server) |
ce344824 | 4 | |
474282bf | 5 | %define pnam Gnome2-Canvas |
ce344824 | 6 | %include /usr/lib/rpm/macros.perl |
1941784d | 7 | Summary: Perl interface to the GNOME Canvas |
6d8dc065 | 8 | Summary(pl.UTF-8): Interfejs perlowy do GNOME Canvas |
8c93a273 | 9 | Name: perl-Gnome2-Canvas |
333b939e | 10 | Version: 1.002 |
8afaa2d5 | 11 | Release: 14 |
7d22693a | 12 | License: LGPL |
a18ff944 | 13 | Group: Development/Languages/Perl |
ce344824 | 14 | Source0: http://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz |
333b939e | 15 | # Source0-md5: 93405a987ba4bbd03c2f91592b88f5cb |
a2995a78 | 16 | URL: http://gtk2-perl.sourceforge.net/ |
a18ff944 | 17 | BuildRequires: gtk+2-devel |
cf82b2f2 | 18 | BuildRequires: libgnomecanvas-devel >= 2.14.0 |
ce344824 | 19 | BuildRequires: perl-Cairo-devel |
98896e81 | 20 | BuildRequires: perl-ExtUtils-Depends >= 0.200 |
21 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.03 | |
ce344824 ER |
22 | BuildRequires: perl-Glib-devel >= 1.120 |
23 | BuildRequires: perl-Gtk2-devel >= 1.121 | |
4536c4a5 | 24 | BuildRequires: perl-devel >= 1:5.8.0 |
a18ff944 MK |
25 | BuildRequires: pkgconfig |
26 | BuildRequires: rpm-perlprov >= 4.1-13 | |
cf82b2f2 JB |
27 | Requires: libgnomecanvas >= 2.14.0 |
28 | Requires: perl-Glib >= 1.120 | |
29 | Requires: perl-Gtk2 >= 1.121 | |
a18ff944 MK |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | The Gnome2 Perl module allows a perl developer to use the GnomeCanvas | |
34 | widget. | |
35 | ||
b5b4af65 JR |
36 | %description -l pl.UTF-8 |
37 | Moduł Perla Gnome2 umożliwia programistom perlowym korzystanie z | |
b4da3a9e | 38 | kontrolki GnomeCanvas. |
39 | ||
a18ff944 MK |
40 | %prep |
41 | %setup -q -n %{pnam}-%{version} | |
42 | ||
43 | %build | |
44 | %{__perl} Makefile.PL \ | |
45 | INSTALLDIRS=vendor | |
46 | ||
47 | %{__make} \ | |
499516c4 | 48 | CC="%{__cc}" \ |
a18ff944 MK |
49 | OPTIMIZE="%{rpmcflags}" |
50 | ||
e7ce4814 | 51 | %{?with_tests:%{__make} test} |
a18ff944 MK |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
4536c4a5 | 59 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/Canvas/*.pod |
60 | ||
a18ff944 MK |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc AUTHORS TODO README | |
67 | %{perl_vendorarch}/Gnome2/Canvas.pm | |
7e41ceb4 | 68 | %dir %{perl_vendorarch}/auto/Gnome2/Canvas |
4cffd3a1 | 69 | %dir %{perl_vendorarch}/Gnome2/Canvas |
4536c4a5 | 70 | %dir %{perl_vendorarch}/Gnome2/Canvas/Install |
a18ff944 | 71 | %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/Canvas/*.so |
4536c4a5 | 72 | %{perl_vendorarch}/Gnome2/Canvas/Install/* |
a18ff944 | 73 | %{_mandir}/man3/* |