]>
Commit | Line | Data |
---|---|---|
5d1de8ff MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Sub | |
7 | %define pnam Exporter | |
8 | Summary: Sub::Exporter - a sophisticated exporter for custom-built routines | |
daa6e392 | 9 | Summary(pl.UTF-8): Sub::Exporter - wymyślny eksporter dla własnych funkcji |
5d1de8ff | 10 | Name: perl-Sub-Exporter |
9ad58a81 | 11 | Version: 0.982 |
5d1de8ff MP |
12 | Release: 1 |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
daa6e392 | 16 | Source0: http://www.cpan.org/modules/by-module/Sub/%{pdir}-%{pnam}-%{version}.tar.gz |
9ad58a81 | 17 | # Source0-md5: db90a0d73a5ca2d185dd6c6d2fc848f0 |
daa6e392 | 18 | URL: http://search.cpan.org/dist/Sub-Exporter/ |
5d1de8ff MP |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
9ad58a81 | 22 | BuildRequires: perl(Package::Generator) |
daa6e392 JB |
23 | BuildRequires: perl-Data-OptList >= 0.1 |
24 | BuildRequires: perl-Params-Util >= 0.14 | |
25 | BuildRequires: perl-Sub-Install >= 0.92 | |
5d1de8ff MP |
26 | %endif |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
5d1de8ff MP |
31 | The biggest benefit of Sub::Exporter over existing exporters |
32 | (including the ubiquitous Exporter.pm) is its ability to build new | |
33 | coderefs for export, rather than to simply export code identical to | |
34 | that found in the exporting package. | |
35 | ||
daa6e392 JB |
36 | %description -l pl.UTF-8 |
37 | Największą zaletą modułu Sub::Exporter w stosunku do istniejących | |
38 | wcześniej eksporterów (wraz z wszechobecnym Exporter.pm) jest | |
39 | możliwość budowania nowych coderefów do exportowania zamiast zwykłego | |
40 | eksportowania kodu identycznego do tego, jaki można znaleźć w | |
41 | eksportowanym pakiecie. | |
5d1de8ff MP |
42 | |
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
45 | ||
46 | %build | |
47 | %{__perl} Makefile.PL \ | |
48 | INSTALLDIRS=vendor | |
49 | %{__make} | |
50 | ||
51 | %{?with_tests:%{__make} test} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes README | |
65 | %{perl_vendorlib}/Sub/*.pm | |
2cb7bd19 | 66 | %dir %{perl_vendorlib}/Sub/Exporter |
67 | %{perl_vendorlib}/Sub/Exporter/*.pm | |
5d1de8ff | 68 | %{_mandir}/man3/* |