]> git.pld-linux.org Git - packages/perl-Importer.git/blob - perl-Importer.spec
- updated to 0.026
[packages/perl-Importer.git] / perl-Importer.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Importer
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
8 Name:           perl-Importer
9 Version:        0.026
10 Release:        1
11 # same as perl
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:  3f09930b82cadfe26d0ce2fb1338aa1b
16 URL:            https://metacpan.org/release/Importer
17 BuildRequires:  perl-devel >= 1:5.8.1
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRequires:  rpmbuild(macros) >= 1.745
20 %if %{with tests}
21 BuildRequires:  perl-Test-Simple >= 0.98
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
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
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)
63 %doc Changes README.md
64 %{perl_vendorlib}/Importer.pm
65 %{_mandir}/man3/Importer.3pm*
This page took 0.083206 seconds and 4 git commands to generate.