]>
Commit | Line | Data |
---|---|---|
bf162ad0 AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Importer | |
6 | %include /usr/lib/rpm/macros.perl | |
7 | Summary: Importer - Alternative but compatible interface to modules that export symbols | |
2aed74ee | 8 | Summary(pl.UTF-8): Importer - alternatywny, ale kompatybilny interfejs do modułów eksportujących symbole |
bf162ad0 AM |
9 | Name: perl-Importer |
10 | Version: 0.024 | |
11 | Release: 1 | |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-authors/id/E/EX/EXODIST/Importer-%{version}.tar.gz | |
16 | # Source0-md5: 2d29c79e65e221105a23e28c239b688f | |
17 | URL: http://search.cpan.org/dist/Importer/ | |
2aed74ee | 18 | BuildRequires: perl-devel >= 1:5.8.1 |
bf162ad0 AM |
19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | %if %{with tests} | |
2aed74ee | 21 | BuildRequires: perl-Test-Simple >= 0.98 |
bf162ad0 AM |
22 | %endif |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | This module acts as a layer between Exporter and modules which consume | |
28 | exports. It is feature-compatible with Exporter, plus some much needed | |
29 | extras. You can use this to import symbols from any exporter that | |
30 | follows Exporters specification. The exporter modules themselves do | |
31 | not need to use or inherit from the Exporter module, they just need to | |
32 | set @EXPORT and/or other variables. | |
33 | ||
2aed74ee JB |
34 | %description -l pl.UTF-8 |
35 | Ten moduł działa jako warstwa między Exporterem a modułami | |
36 | pobierającymi wyeksportowane symbole. Jest zgodny co do możliwości z | |
37 | Exporterem, zawiera też trochę dodatków. Można go użyć do importowania | |
38 | symboli od dowolnego eksportera zgodnego ze specyfikacją Exportera. | |
39 | Moduły eksportujące nie muszą wykorzystywać ani dziedziczyć z modułu | |
40 | Exporter, muszą tylko ustawić @EXPORT i/lub inne zmienne. | |
41 | ||
bf162ad0 AM |
42 | %prep |
43 | %setup -q -n %{pdir}-%{version} | |
44 | ||
45 | %build | |
46 | %{__perl} Makefile.PL \ | |
47 | INSTALLDIRS=vendor | |
48 | %{__make} | |
49 | ||
50 | %{?with_tests:%{__make} test} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} pure_install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
2aed74ee | 63 | %doc Changes README.md |
bf162ad0 AM |
64 | %{perl_vendorlib}/Importer.pm |
65 | %{_mandir}/man3/Importer.3pm* |