diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f81171 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Params-Check-0.38.tar.gz diff --git a/.perl516-perl-Params-Check.metadata b/.perl516-perl-Params-Check.metadata new file mode 100644 index 0000000..83a50e0 --- /dev/null +++ b/.perl516-perl-Params-Check.metadata @@ -0,0 +1 @@ +235575dad853dc2f574a221e22d7e8f8a2e6b0b7 SOURCES/Params-Check-0.38.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-Params-Check.spec b/SPECS/perl-Params-Check.spec new file mode 100644 index 0000000..f265130 --- /dev/null +++ b/SPECS/perl-Params-Check.spec @@ -0,0 +1,68 @@ +%{?scl:%scl_package perl-Params-Check} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}perl-Params-Check +# Epoch to compete with perl.spec +Epoch: 1 +Version: 0.38 +Release: 1%{?dist} +Summary: Generic input parsing/checking mechanism +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Params-Check/ +Source0: http://www.cpan.org/authors/id/B/BI/BINGOS/Params-Check-%{version}.tar.gz +BuildArch: noarch +BuildRequires: %{?scl_prefix}perl +BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) +BuildRequires: %{?scl_prefix}perl(strict) +# Run-time: +BuildRequires: %{?scl_prefix}perl(Carp) +BuildRequires: %{?scl_prefix}perl(Exporter) +BuildRequires: %{?scl_prefix}perl(Locale::Maketext::Simple) +BuildRequires: %{?scl_prefix}perl(vars) +# Tests: +BuildRequires: %{?scl_prefix}perl(constant) +BuildRequires: %{?scl_prefix}perl(Test::More) +%{?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}) + +%description +This is a generic input parsing/checking mechanism. It allows you to +validate input via a template. The only requirement is that the arguments +must be named. + +%prep +%setup -q -n Params-Check-%{version} + +%build +%{?scl:scl enable %{scl} "} +perl Makefile.PL INSTALLDIRS=vendor +%{?scl:"} +%{?scl:scl enable %{scl} "} +make %{?_smp_mflags} +%{?scl:"} + +%install +%{?scl:scl enable %{scl} "} +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{?scl:"} +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%{?scl:scl enable %{scl} "} +make test +%{?scl:"} + +%files +%doc CHANGES README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Nov 13 2013 Jitka Plesnikova - 1:0.38-1 +- 0.38 bump + +* Thu Apr 04 2013 Jitka Plesnikova - 1:0.36-1 +- SCL package - initial import