]>
Commit | Line | Data |
---|---|---|
ec294b83 JB |
1 | # |
2 | # Conditional build: | |
60783262 | 3 | %bcond_with tests # perform "make test" (requires DISPLAY) |
ec294b83 | 4 | # |
202cdafd CM |
5 | %include /usr/lib/rpm/macros.perl |
6 | %define pdir Pango | |
7 | Summary: Pango - Layout and render international text | |
7e725f24 | 8 | Summary(pl.UTF-8): Pango - rozmieszczanie i renderowanie wielojęzycznego tekstu |
202cdafd | 9 | Name: perl-Pango |
7d96a3b1 | 10 | Version: 1.226 |
34009794 | 11 | Release: 3 |
9fa95633 | 12 | License: LGPL v2.1+ |
202cdafd | 13 | Group: Development/Languages/Perl |
9fa95633 | 14 | Source0: http://downloads.sourceforge.net/gtk2-perl/Pango-%{version}.tar.gz |
7d96a3b1 | 15 | # Source0-md5: 9ff2dee3cc1d37563ea98b91a45e6ba1 |
202cdafd | 16 | URL: http://search.cpan.org/dist/Pango/ |
9fa95633 JB |
17 | BuildRequires: pango-devel >= 1:1.16 |
18 | BuildRequires: perl-ExtUtils-Depends >= 0.300 | |
19 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.03 | |
20 | BuildRequires: perl-Glib-devel >= 1.220 | |
18b22c70 | 21 | BuildRequires: perl-Cairo-devel >= 1.000 |
c1549812 CM |
22 | BuildRequires: perl-devel >= 1:5.8.0 |
23 | BuildRequires: rpm-perlprov >= 4.1-13 | |
24 | %if %{with tests} | |
25 | # some fonts are required, but does not really matter which ones | |
26 | BuildRequires: fonts-TTF-bitstream-vera | |
c1549812 CM |
27 | BuildRequires: perl-Gtk2 >= 1.220 |
28 | %endif | |
9fa95633 JB |
29 | Requires: pango >= 1:1.16 |
30 | Requires: perl-Glib >= 1.220 | |
202cdafd CM |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
7e725f24 JB |
34 | Perl bindings to Pango library used to layout and render international |
35 | text. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Perlowe wiązania do biblioteki Pango służącej do rozmieszczania i | |
39 | renderowania wielojęzycznego tekstu. | |
202cdafd | 40 | |
18b22c70 JB |
41 | %package devel |
42 | Summary: Development files for Perl Pango bindings | |
43 | Summary(pl.UTF-8): Pliki programistyczne wiązań Pango dla Perla | |
44 | Group: Development/Languages/Perl | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | Requires: pango-devel >= 1:1.16 | |
47 | Requires: perl-Glib-devel >= 1.220 | |
48 | ||
49 | %description devel | |
50 | Development files for Perl Pango bindings. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki programistyczne wiązań Pango dla Perla. | |
54 | ||
202cdafd CM |
55 | %prep |
56 | %setup -q -n %{pdir}-%{version} | |
57 | ||
58 | %build | |
59 | %{__perl} Makefile.PL \ | |
60 | INSTALLDIRS=vendor | |
61 | %{__make} \ | |
62 | CC="%{__cc}" \ | |
63 | OPTIMIZE="%{rpmcflags}" | |
64 | ||
65 | %{?with_tests:%{__make} test} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} pure_install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
f1cfb439 | 74 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
202cdafd | 75 | |
ec294b83 JB |
76 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Pango{,/Cairo}/*.pod |
77 | rmdir $RPM_BUILD_ROOT%{perl_vendorarch}/Pango/Cairo | |
78 | ||
202cdafd CM |
79 | %clean |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc AUTHORS NEWS README | |
ec294b83 JB |
85 | %{perl_vendorarch}/Pango.pm |
86 | %dir %{perl_vendorarch}/Pango | |
f1cfb439 | 87 | %dir %{perl_vendorarch}/auto/Pango |
ec294b83 JB |
88 | %attr(755,root,root) %{perl_vendorarch}/auto/Pango/Pango.so |
89 | %{_mandir}/man3/Pango*.3pm* | |
202cdafd | 90 | %{_examplesdir}/%{name}-%{version} |
18b22c70 JB |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %{perl_vendorarch}/Pango/Install |