]>
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 |
c59eda1e | 10 | Version: 1.106 |
aef7a3d1 | 11 | Release: 2 |
b09057f1 | 12 | License: LGPL v2.1+ |
13 | Group: Development/Languages/Perl | |
c431f153 | 14 | Source0: http://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz |
c59eda1e | 15 | # Source0-md5: 47ca0ae0f5b9bc4c16a27627ff48bd8b |
b09057f1 | 16 | URL: http://gtk2-perl.sourceforge.net/ |
bfd1fecf | 17 | BuildRequires: cairo-devel >= 1.10.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 | 22 | %if %{with tests} |
eb295df5 | 23 | BuildRequires: perl-Test-Number-Delta >= 1.0 |
abc4be78 | 24 | %endif |
bfd1fecf | 25 | Requires: cairo >= 1.10.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 | |
bfd1fecf JB |
34 | %package devel |
35 | Summary: Development files for Perl Cairo bindings | |
36 | Summary(pl.UTF-8): Pliki programistyczne wiązań Cairo dla Perla | |
37 | Group: Development/Languages/Perl | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | Requires: cairo-devel >= 1.10.0 | |
40 | ||
41 | %description devel | |
42 | Development files for Perl Cairo bindings. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki programistyczne wiązań Cairo dla Perla. | |
46 | ||
b09057f1 | 47 | %prep |
48 | %setup -q -n %{pnam}-%{version} | |
49 | ||
50 | %build | |
51 | %{__perl} Makefile.PL \ | |
52 | INSTALLDIRS=vendor | |
53 | ||
54 | %{__make} \ | |
ebce6ba6 | 55 | CC="%{__cc}" \ |
b09057f1 | 56 | OPTIMIZE="%{rpmcflags}" |
57 | ||
58 | %{?with_tests:%{__make} test} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
b97b71f0 | 63 | %{__make} pure_install \ |
b09057f1 | 64 | DESTDIR=$RPM_BUILD_ROOT |
65 | ||
c431f153 | 66 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Cairo/.packlist |
de4d19f5 | 67 | |
b09057f1 | 68 | %clean |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
eb295df5 | 73 | %doc NEWS README TODO |
41f5fb4b | 74 | %{perl_vendorarch}/Cairo.pm |
b09057f1 | 75 | %dir %{perl_vendorarch}/Cairo |
b09057f1 | 76 | %dir %{perl_vendorarch}/auto/Cairo |
77 | %attr(755,root,root) %{perl_vendorarch}/auto/Cairo/Cairo.so | |
41f5fb4b | 78 | %{_mandir}/man3/Cairo.3pm* |
bfd1fecf JB |
79 | |
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
82 | %{perl_vendorarch}/Cairo/Install |