From e69954b4ca6be7abb1ac64ef46d1d9da0656e526 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Dec 07 2018 17:07:03 +0000 Subject: Initial import --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c13c58 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/match-simple-XS-0.001.tar.gz diff --git a/perl-match-simple-XS.spec b/perl-match-simple-XS.spec new file mode 100644 index 0000000..c773c38 --- /dev/null +++ b/perl-match-simple-XS.spec @@ -0,0 +1,56 @@ +Name: perl-match-simple-XS +Version: 0.001 +Release: 2%{?dist} +Summary: XS backend for match::simple +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/match-simple-XS/ +Source0: https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/match-simple-XS-%{version}.tar.gz +BuildRequires: gcc +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(match::simple) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(XSLoader) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +XS backend for match::simple. + +%prep +%setup -q -n match-simple-XS-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%make_build + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes CONTRIBUTING COPYRIGHT CREDITS README +%license LICENSE +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/match* +%{_mandir}/man3/* + +%changelog +* Fri Dec 07 2018 Xavier Bachelot 0.001-2 +- Fixes from package review. + +* Fri Nov 30 2018 Xavier Bachelot 0.001-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..6af75d1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (match-simple-XS-0.001.tar.gz) = 959af36e8449e661a581de5f2254d7c99d239a1ae394603218cd9f7cc2634d83810f164de71804fa75ab4d9fa0144fb6a3b479c71378235307b7e400fda08380