summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Písař <ppisar@redhat.com>2013-01-25 14:40:59 +0100
committerPetr Písař <ppisar@redhat.com>2013-01-25 14:42:14 +0100
commit21174456c51d695bb3d2c85d7b15ca4c80622ab2 (patch)
tree595c463ce87fc867b917bb8f45f5a03fb363730c
parent46cbde64fa73c3c53bbf6df410a787814acf4c2d (diff)
downloadperl-Module-Pluggable-21174456c51d695bb3d2c85d7b15ca4c80622ab2.zip
perl-Module-Pluggable-21174456c51d695bb3d2c85d7b15ca4c80622ab2.tar.gz
perl-Module-Pluggable-21174456c51d695bb3d2c85d7b15ca4c80622ab2.tar.xz
Unretire the package as 4.6 version
bug #903624
-rw-r--r--.gitignore3
-rw-r--r--dead.package1
-rw-r--r--perl-Module-Pluggable.spec62
-rw-r--r--sources1
4 files changed, 65 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index fe3c407..62c2149 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-Module-Pluggable-3.6.tar.gz
+/Module-Pluggable-3.6.tar.gz
+/Module-Pluggable-4.6.tar.gz
diff --git a/dead.package b/dead.package
deleted file mode 100644
index be499dc..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-Package obsoleted by the base perl package in 5.10.0.
diff --git a/perl-Module-Pluggable.spec b/perl-Module-Pluggable.spec
new file mode 100644
index 0000000..3e7edf1
--- /dev/null
+++ b/perl-Module-Pluggable.spec
@@ -0,0 +1,62 @@
+Name: perl-Module-Pluggable
+# Epoch to compete with perl.spec
+Epoch: 1
+Version: 4.6
+Release: 1%{?dist}
+Summary: Automatically give your module the ability to have plugins
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Module-Pluggable/
+Source0: http://www.cpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: perl
+BuildRequires: perl(FindBin)
+BuildRequires: perl(Module::Build)
+# Run-time:
+BuildRequires: perl(base)
+BuildRequires: perl(Carp)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(File::Basename)
+BuildRequires: perl(File::Find)
+BuildRequires: perl(File::Spec::Functions) >= 3.00
+BuildRequires: perl(if)
+# Tests:
+BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(lib)
+BuildRequires: perl(Test::More) >= 0.62
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires: perl(File::Basename)
+Requires: perl(File::Spec::Functions) >= 3.00
+
+# Filter under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec::Functions\\)$
+
+%description
+This package provides a simple but, hopefully, extensible way of having
+'plugins' for your module. Essentially all it does is export a method into
+your name space that looks through a search path for .pm files and turn those
+into class names. Optionally it instantiates those classes for you.
+
+%prep
+%setup -q -n Module-Pluggable-%{version}
+find -type f -exec chmod -x {} +
+
+%build
+perl Build.PL installdirs=vendor
+./Build
+
+%install
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Thu Jan 24 2013 Petr Pisar <ppisar@redhat.com> 1:4.6-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
new file mode 100644
index 0000000..0adca38
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1a3af6ac7d047a76c1b0c5d3b84ad64d Module-Pluggable-4.6.tar.gz