]> git.pld-linux.org Git - packages/perl-Importer.git/blame - perl-Importer.spec
- updated to 0.026
[packages/perl-Importer.git] / perl-Importer.spec
CommitLineData
bf162ad0
AM
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Importer
bf162ad0 6Summary: Importer - Alternative but compatible interface to modules that export symbols
2aed74ee 7Summary(pl.UTF-8): Importer - alternatywny, ale kompatybilny interfejs do modułów eksportujących symbole
bf162ad0 8Name: perl-Importer
8952ee53 9Version: 0.026
bf162ad0
AM
10Release: 1
11# same as perl
12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-authors/id/E/EX/EXODIST/Importer-%{version}.tar.gz
8952ee53 15# Source0-md5: 3f09930b82cadfe26d0ce2fb1338aa1b
e7c6b986 16URL: https://metacpan.org/release/Importer
2aed74ee 17BuildRequires: perl-devel >= 1:5.8.1
bf162ad0 18BuildRequires: rpm-perlprov >= 4.1-13
8952ee53 19BuildRequires: rpmbuild(macros) >= 1.745
bf162ad0 20%if %{with tests}
2aed74ee 21BuildRequires: perl-Test-Simple >= 0.98
bf162ad0
AM
22%endif
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27This module acts as a layer between Exporter and modules which consume
28exports. It is feature-compatible with Exporter, plus some much needed
29extras. You can use this to import symbols from any exporter that
30follows Exporters specification. The exporter modules themselves do
31not need to use or inherit from the Exporter module, they just need to
32set @EXPORT and/or other variables.
33
2aed74ee
JB
34%description -l pl.UTF-8
35Ten moduł działa jako warstwa między Exporterem a modułami
36pobierającymi wyeksportowane symbole. Jest zgodny co do możliwości z
37Exporterem, zawiera też trochę dodatków. Można go użyć do importowania
38symboli od dowolnego eksportera zgodnego ze specyfikacją Exportera.
39Moduły eksportujące nie muszą wykorzystywać ani dziedziczyć z modułu
40Exporter, 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
53rm -rf $RPM_BUILD_ROOT
54
55%{__make} pure_install \
56 DESTDIR=$RPM_BUILD_ROOT
57
58%clean
59rm -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*
This page took 0.078579 seconds and 4 git commands to generate.