diff --git a/.gitignore b/.gitignore index e69de29..e4b9092 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Importer-0.012.tar.gz diff --git a/perl-Importer.spec b/perl-Importer.spec new file mode 100644 index 0000000..3b4334f --- /dev/null +++ b/perl-Importer.spec @@ -0,0 +1,54 @@ +Name: perl-Importer +Version: 0.012 +Release: 1%{?dist} +Summary: Alternative interface to modules that export symbols +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Importer/ +Source0: http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Importer-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Tests: +BuildRequires: perl(base) +BuildRequires: perl(Exporter) +BuildRequires: perl(Test::More) >= 0.98 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This Perl module acts as a layer between Exporter and modules which consume +exports. It is feature-compatible with Exporter, plus some much needed +extras. You can use this to import symbols from any exporter that follows +Exporters specification. The exporter modules themselves do not need to use +or inherit from the Exporter module, they just need to set @EXPORT and/or +other variables. + +%prep +%setup -q -n Importer-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Jan 27 2016 Petr Pisar 0.012-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..3d09904 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +992ed5ce9ddd6f047cd3f0141ca368c2 Importer-0.012.tar.gz