]>
Commit | Line | Data |
---|---|---|
ccba9618 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
97b7df46 | 5 | %define pdir Font |
6 | %define pnam AFM | |
884aa8cc | 7 | Summary: Font::AFM - interface to Adobe Font Metrics files |
a8aecb03 | 8 | Summary(pl.UTF-8): Font::AFM - interfejs do plików metryk fontów Adobe (AFM) |
8c706e7e | 9 | Name: perl-Font-AFM |
ef0e6e0f | 10 | Version: 1.20 |
11 | Release: 1 | |
884aa8cc | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
3c3b8249 | 14 | Group: Development/Languages/Perl |
5b94fb2d | 15 | Source0: http://www.cpan.org/modules/by-module/Font/%{pdir}-%{pnam}-%{version}.tar.gz |
ef0e6e0f | 16 | # Source0-md5: b14ecf4dc4edbd63940aa354eb13c499 |
5b94fb2d | 17 | URL: http://search.cpan.org/dist/Font-AFM/ |
00c1f5ce | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
5b94fb2d | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
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 |
5b94fb2d JB |
52 | %dir %{perl_vendorlib}/Font/Metrics |
53 | %{perl_vendorlib}/Font/Metrics/*.pm | |
54 | %{perl_vendorlib}/Font/*.pm | |
3c3b8249 | 55 | %{_mandir}/man3/* |