]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | ||
5 | %define pdir File | |
6 | %define pnam Cat | |
7 | Summary: File::Cat - Perl implementation of cat(1) | |
8 | Summary(pl.UTF-8): File::Cat - implementacja cat(1) w Perlu | |
9 | Name: perl-File-Cat | |
10 | Version: 1.2 | |
11 | Release: 11 | |
12 | License: unknown | |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
15 | # Source0-md5: 300600b3786cec4360e88947f775f4fb | |
16 | URL: http://search.cpan.org/dist/File-Cat/ | |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | File::Cat module - Perl implementation of cat(1). | |
24 | ||
25 | File::Cat is a module of adventure, danger, and low cunning. With it, | |
26 | you will explore some of the most inane programs ever seen by mortals. | |
27 | No computer should be without one! | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Moduł File::Cat - implementacja cat(1) w Perlu. | |
31 | ||
32 | File::Cat jest modułem z przygodami, niebezpiecznym i mało pomysłowym. | |
33 | Przy jego pomocy można stworzyć kilka spośród najgłupszych programów | |
34 | jakie widzieli śmiertelnicy. Na każdym komputerze powinien być choć | |
35 | jeden taki! | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes | |
59 | %{perl_vendorlib}/File/Cat.pm | |
60 | %{_mandir}/man3/* |