3 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
7 Summary: Importer - Alternative but compatible interface to modules that export symbols
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: 2d29c79e65e221105a23e28c239b688f
16 URL: http://search.cpan.org/dist/Importer/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module acts as a layer between Exporter and modules which consume
26 exports. It is feature-compatible with Exporter, plus some much needed
27 extras. You can use this to import symbols from any exporter that
28 follows Exporters specification. The exporter modules themselves do
29 not need to use or inherit from the Exporter module, they just need to
30 set @EXPORT and/or other variables.
33 %setup -q -n %{pdir}-%{version}
36 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
45 %{__make} pure_install \
46 DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %{perl_vendorlib}/Importer.pm
55 %{_mandir}/man3/Importer.3pm*