]>
Commit | Line | Data |
---|---|---|
ccba9618 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
a7725ccc | 5 | %include /usr/lib/rpm/macros.perl |
97b7df46 | 6 | %define pdir Font |
7 | %define pnam AFM | |
884aa8cc | 8 | Summary: Font::AFM - interface to Adobe Font Metrics files |
a8aecb03 | 9 | Summary(pl.UTF-8): Font::AFM - interfejs do plików metryk fontów Adobe (AFM) |
8c706e7e | 10 | Name: perl-Font-AFM |
19348b10 | 11 | Version: 1.19 |
0ab4931d | 12 | Release: 3 |
884aa8cc | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
3c3b8249 | 15 | Group: Development/Languages/Perl |
45f617fb | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
19348b10 | 17 | # Source0-md5: f72a12a20656c41b29a79c985bd231c9 |
8e5f30cc | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
00c1f5ce | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
4fc7fddb | 20 | BuildArch: noarch |
33f312ac | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3c3b8249 | 22 | |
23 | %description | |
24 | Font::AFM is an interface to Adobe Font Metrics files. | |
25 | ||
f8bf0b5b JR |
26 | %description -l pl.UTF-8 |
27 | Font::AFM jest interfejsem do plików metryk fontów Adobe (AFM - Adobe | |
884aa8cc | 28 | Font Metrics). |
3c3b8249 | 29 | |
30 | %prep | |
a7725ccc | 31 | %setup -q -n %{pdir}-%{pnam}-%{version} |
3c3b8249 | 32 | |
33 | %build | |
8e5f30cc | 34 | %{__perl} Makefile.PL \ |
a37f3b4c | 35 | INSTALLDIRS=vendor |
d0ab62d4 | 36 | %{__make} |
37 | ||
38 | %{?with_tests:%{__make} test} | |
3c3b8249 | 39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
d0ab62d4 | 43 | %{__make} install \ |
44 | DESTDIR=$RPM_BUILD_ROOT | |
3c3b8249 | 45 | |
3c3b8249 | 46 | %clean |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
5f5141ad | 51 | %doc Changes README |
19348b10 AM |
52 | %dir %{perl_vendorlib}/%{pdir}/Metrics |
53 | %{perl_vendorlib}/%{pdir}/Metrics/*.pm | |
54 | %{perl_vendorlib}/%{pdir}/*.pm | |
3c3b8249 | 55 | %{_mandir}/man3/* |