]>
Commit | Line | Data |
---|---|---|
b09057f1 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pnam Cairo | |
7 | Summary: Perl Cairo bindings | |
5054bd70 | 8 | Summary(pl.UTF-8): Wiązania Cairo dla Perla |
b09057f1 | 9 | Name: perl-Cairo |
ddff1afa | 10 | Version: 1.061 |
7c5cc938 | 11 | Release: 5 |
b09057f1 | 12 | License: LGPL v2.1+ |
13 | Group: Development/Languages/Perl | |
c431f153 | 14 | Source0: http://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz |
ddff1afa | 15 | # Source0-md5: 08cd5e847f61858651fc4de769066e88 |
b09057f1 | 16 | URL: http://gtk2-perl.sourceforge.net/ |
ec4aea16 | 17 | BuildRequires: cairo-devel >= 1.6.0 |
b09057f1 | 18 | BuildRequires: perl-ExtUtils-Depends >= 0.201 |
19 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.06 | |
20 | BuildRequires: perl-devel >= 1:5.8.0 | |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
abc4be78 JB |
22 | %if %{with tests} |
23 | BuildRequires: perl-Test-Number-Delta | |
24 | %endif | |
ec4aea16 | 25 | Requires: cairo >= 1.6.0 |
b09057f1 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | This module provides perl access to Cairo library. | |
30 | ||
952d486a JR |
31 | %description -l pl.UTF-8 |
32 | Ten moduł daje dostęp z poziomu Perla do biblioteki Cairo. | |
b09057f1 | 33 | |
34 | %prep | |
35 | %setup -q -n %{pnam}-%{version} | |
36 | ||
c431f153 JB |
37 | # fails with current cairo; TODO: recheck when upgrading |
38 | %{__rm} t/CairoSurface.t | |
39 | ||
b09057f1 | 40 | %build |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | ||
44 | %{__make} \ | |
ebce6ba6 | 45 | CC="%{__cc}" \ |
b09057f1 | 46 | OPTIMIZE="%{rpmcflags}" |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
b97b71f0 | 53 | %{__make} pure_install \ |
b09057f1 | 54 | DESTDIR=$RPM_BUILD_ROOT |
55 | ||
c431f153 | 56 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Cairo/.packlist |
de4d19f5 | 57 | |
b09057f1 | 58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc ChangeLog NEWS README TODO | |
41f5fb4b | 64 | %{perl_vendorarch}/Cairo.pm |
b09057f1 | 65 | %dir %{perl_vendorarch}/Cairo |
66 | %{perl_vendorarch}/Cairo/Install | |
67 | %dir %{perl_vendorarch}/auto/Cairo | |
68 | %attr(755,root,root) %{perl_vendorarch}/auto/Cairo/Cairo.so | |
69 | %{perl_vendorarch}/auto/Cairo/Cairo.bs | |
41f5fb4b | 70 | %{_mandir}/man3/Cairo.3pm* |