commit 8ff3a7c1e9480daba53eb00b251022a15fac6574 Author: putao66 <1336374132@qq.com> Date: Thu Nov 28 09:52:47 2019 +0800 init diff --git a/Data-OptList-0.110.tar.gz b/Data-OptList-0.110.tar.gz new file mode 100644 index 0000000..2a91a46 Binary files /dev/null and b/Data-OptList-0.110.tar.gz differ diff --git a/perl-Data-OptList.spec b/perl-Data-OptList.spec new file mode 100644 index 0000000..17cc6ab --- /dev/null +++ b/perl-Data-OptList.spec @@ -0,0 +1,56 @@ +Name: perl-Data-OptList +Version: 0.110 +Release: 9 +Summary: Parse and validate simple name/value option pairs +License: GPL+ and Artistic +URL: https://metacpan.org/release/Data-OptList +Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils findutils make perl-generators perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) perl(List::Util) perl(Params::Util) +BuildRequires: perl(strict) perl(Sub::Install) >= 0.921 perl(warnings) +BuildRequires: perl(File::Spec) perl(Test::More) >= 0.88 perl(Test::Pod) >= 1.41 +BuildRequires: perl(CPAN::Meta) >= 2.120900 perl(CPAN::Meta::Prereqs) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +Data-OptList is a Perl module to parse and validate simple name/value option pairs. + +%package help +BuildArch: noarch +Summary: Help documents for perl-Data-OptList + +%description help +The perl-Data-OptList-help package conatins manual pages for perl-Data-OptList. + +%prep +%autosetup -n Data-OptList-%{version} -p1 + +for F in t/*; do + perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{$F})" +done + +%build +perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -delete +%{_fixperms} $RPM_BUILD_ROOT + +%check +make test +make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" + +%files +%license LICENSE +%{perl_vendorlib}/Data/ + +%files help +%doc Changes README t/ +%{_mandir}/man3/Data::OptList.3* + +%changelog +* Wed Nov 27 2019 liujing - 0.110-9 +- Package init