Import
This commit is contained in:
parent
6e3e61b13a
commit
ca27f8ef19
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/Exporter-5.67.tar.gz
|
||||
54
perl-Exporter.spec
Normal file
54
perl-Exporter.spec
Normal file
@ -0,0 +1,54 @@
|
||||
Name: perl-Exporter
|
||||
Version: 5.67
|
||||
Release: 1%{?dist}
|
||||
Summary: Implements default import method for modules
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Exporter/
|
||||
Source0: http://www.cpan.org/authors/id/T/TO/TODDR/Exporter-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# Run-time:
|
||||
BuildRequires: perl(Carp) >= 1.05
|
||||
BuildRequires: perl(strict)
|
||||
# Tests:
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(vars)
|
||||
%if !%{defined perl_bootstrap}
|
||||
# Optional tests:
|
||||
BuildRequires: perl(Test::Pod) >= 1.18
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Carp) >= 1.05
|
||||
|
||||
%description
|
||||
The Exporter module implements an import method which allows a module to
|
||||
export functions and variables to its users' name spaces. Many modules use
|
||||
Exporter rather than implementing their own import method because Exporter
|
||||
provides a highly flexible interface, with an implementation optimized for
|
||||
the common case.
|
||||
|
||||
%prep
|
||||
%setup -q -n Exporter-%{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
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri Mar 22 2013 Petr Pisar <ppisar@redhat.com> 5.67-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
Loading…
Reference in New Issue
Block a user