diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f3ed68b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Module-Pluggable-5.1.tar.gz diff --git a/.perl516-perl-Module-Pluggable.metadata b/.perl516-perl-Module-Pluggable.metadata new file mode 100644 index 0000000..ab4d73a --- /dev/null +++ b/.perl516-perl-Module-Pluggable.metadata @@ -0,0 +1 @@ +237079d6f54a9ad5022eae02c02e734b39081b65 SOURCES/Module-Pluggable-5.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/perl-Module-Pluggable.spec b/SPECS/perl-Module-Pluggable.spec new file mode 100644 index 0000000..d021e9e --- /dev/null +++ b/SPECS/perl-Module-Pluggable.spec @@ -0,0 +1,110 @@ +%{?scl:%scl_package perl-Module-Pluggable} +%{!?scl:%global pkg_name %{name}} + +%global cpan_version 5.1 +Name: %{?scl_prefix}perl-Module-Pluggable +# Epoch to compete with perl.spec +Epoch: 1 +# Keep two digit decimal part +Version: %{cpan_version}0 +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-%{cpan_version}.tar.gz +BuildArch: noarch +BuildRequires: %{?scl_prefix}perl +BuildRequires: %{?scl_prefix}perl(FindBin) +BuildRequires: %{?scl_prefix}perl(Module::Build) +BuildRequires: %{?scl_prefix}perl(strict) +# Run-time: +BuildRequires: %{?scl_prefix}perl(base) +BuildRequires: %{?scl_prefix}perl(Carp) +%if 0%(perl -e 'print $] > 5.017') +BuildRequires: %{?scl_prefix}perl(deprecate) +%endif +BuildRequires: %{?scl_prefix}perl(Exporter) +BuildRequires: %{?scl_prefix}perl(File::Basename) +BuildRequires: %{?scl_prefix}perl(File::Find) +BuildRequires: %{?scl_prefix}perl(File::Spec::Functions) >= 3.00 +BuildRequires: %{?scl_prefix}perl(if) +BuildRequires: %{?scl_prefix}perl(vars) +# Tests: +BuildRequires: %{?scl_prefix}perl(Data::Dumper) +BuildRequires: %{?scl_prefix}perl(lib) +BuildRequires: %{?scl_prefix}perl(Test::More) >= 0.62 +BuildRequires: %{?scl_prefix}perl(warnings) +# Optional tests: +# App::FatPacker not yet packaged +#%%if !%%{defined perl_bootstrap} +#BuildRequires: perl(App::FatPacker) >= 0.10.0 +#BuildRequires: perl(Cwd) +#BuildRequires: perl(File::Copy) +#BuildRequires: perl(File::Path) +#BuildRequires: perl(File::Temp) +#%%endif +%{?scl:%global perl_version %(scl enable %{scl} 'eval "`perl -V:version`"; echo $version')} +%{!?scl:%global perl_version %(eval "`perl -V:version`"; echo $version)} +Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version}) +Requires: %{?scl_prefix}perl(File::Spec::Functions) >= 3.00 +%if 0%(perl -e 'print $] > 5.017') +Requires: %{?scl_prefix}perl(deprecate) +%endif + +# Filter under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^%{?scl_prefix}perl\\(File::Spec::Functions\\)$ + +%if ( 0%{?rhel} && 0%{?rhel} < 7 ) +%filter_from_requires /perl(File::Spec::Functions)\s*$/d +%filter_setup +%endif + +%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-%{cpan_version} +find -type f -exec chmod -x {} + + +%build +%{?scl:scl enable %{scl} "} +perl Build.PL installdirs=vendor +%{?scl:"} +%{?scl:scl enable %{scl} "} +./Build +%{?scl:"} + +%install +%{?scl:scl enable %{scl} "} +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%{?scl:"} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%{?scl:scl enable %{scl} "} +./Build test +%{?scl:"} + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Jan 29 2014 Jitka Plesnikova - 1:5.10-1 +- 5.1 bump +- Resolves: rhbz#1059119 + +* Tue Nov 19 2013 Jitka Plesnikova - 1:4.80-1 +- 4.8 bump + +* Mon May 20 2013 Jitka Plesnikova - 1:4.7-1 +- 4.7 bump + +* Mon Feb 18 2013 Jitka Plesnikova - 1:4.6-1 +- SCL package - initial import +