[perl-Exporter] Import

Petr Pisar ppisar at fedoraproject.org
Fri Mar 22 15:49:45 UTC 2013


commit ca27f8ef19e5e194d44a8eadf98b98e7b76ee64a
Author: Petr Písař <ppisar at redhat.com>
Date:   Fri Mar 22 16:20:59 2013 +0100

    Import

 .gitignore         |    1 +
 perl-Exporter.spec |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cdb4e41 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Exporter-5.67.tar.gz
diff --git a/perl-Exporter.spec b/perl-Exporter.spec
new file mode 100644
index 0000000..c327cbb
--- /dev/null
+++ b/perl-Exporter.spec
@@ -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 at redhat.com> 5.67-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..8799e9b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+99ddc4eac35ba72d7d8e8b7887f71c09  Exporter-5.67.tar.gz


More information about the scm-commits mailing list