3 %bcond_without tests # do not perform "make test"
6 Summary: Importer - Alternative but compatible interface to modules that export symbols
7 Summary(pl.UTF-8): Importer - alternatywny, ale kompatybilny interfejs do modułów eksportujących symbole
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/E/EX/EXODIST/Importer-%{version}.tar.gz
15 # Source0-md5: 09660fe32701e28ee149258315de0262
16 URL: https://metacpan.org/release/Importer
17 BuildRequires: perl-devel >= 1:5.8.1
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-Test-Simple >= 0.98
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module acts as a layer between Exporter and modules which consume
27 exports. It is feature-compatible with Exporter, plus some much needed
28 extras. You can use this to import symbols from any exporter that
29 follows Exporters specification. The exporter modules themselves do
30 not need to use or inherit from the Exporter module, they just need to
31 set @EXPORT and/or other variables.
33 %description -l pl.UTF-8
34 Ten moduł działa jako warstwa między Exporterem a modułami
35 pobierającymi wyeksportowane symbole. Jest zgodny co do możliwości z
36 Exporterem, zawiera też trochę dodatków. Można go użyć do importowania
37 symboli od dowolnego eksportera zgodnego ze specyfikacją Exportera.
38 Moduły eksportujące nie muszą wykorzystywać ani dziedziczyć z modułu
39 Exporter, muszą tylko ustawić @EXPORT i/lub inne zmienne.
42 %setup -q -n %{pdir}-%{version}
45 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
54 %{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc Changes README.md
63 %{perl_vendorlib}/Importer.pm
64 %{_mandir}/man3/Importer.3pm*