Import
This commit is contained in:
parent
2ec34c34e7
commit
d4c2e53006
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/Importer-0.012.tar.gz
|
||||
54
perl-Importer.spec
Normal file
54
perl-Importer.spec
Normal file
@ -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 <ppisar@redhat.com> 0.012-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
Loading…
Reference in New Issue
Block a user