]> git.pld-linux.org Git - packages/perl-Importer.git/blame - perl-Importer.spec
- updated to 0.025
[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
6%include /usr/lib/rpm/macros.perl
7Summary: Importer - Alternative but compatible interface to modules that export symbols
2aed74ee 8Summary(pl.UTF-8): Importer - alternatywny, ale kompatybilny interfejs do modułów eksportujących symbole
bf162ad0 9Name: perl-Importer
e7c6b986 10Version: 0.025
bf162ad0
AM
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-authors/id/E/EX/EXODIST/Importer-%{version}.tar.gz
e7c6b986
JB
16# Source0-md5: 09660fe32701e28ee149258315de0262
17URL: https://metacpan.org/release/Importer
2aed74ee 18BuildRequires: perl-devel >= 1:5.8.1
bf162ad0
AM
19BuildRequires: rpm-perlprov >= 4.1-13
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.112544 seconds and 4 git commands to generate.