From a96d05633d9a45cd587e2fc4afee50461207d010 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Wed, 27 Nov 2019 16:08:19 +0000 Subject: [PATCH] Initial import (perl-XString-0.002-1) XString provides the B string helpers in one isolated package. Right now only cstring and perlstring are available. --- .gitignore | 1 + perl-XString.rpmlintrc | 3 ++ perl-XString.spec | 62 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 67 insertions(+) create mode 100644 .gitignore create mode 100644 perl-XString.rpmlintrc create mode 100644 perl-XString.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..88bb504 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/XString-[0-9.]*.tar.gz diff --git a/perl-XString.rpmlintrc b/perl-XString.rpmlintrc new file mode 100644 index 0000000..813d414 --- /dev/null +++ b/perl-XString.rpmlintrc @@ -0,0 +1,3 @@ +from Config import * + +addFilter("spelling-error %description -l en_US (c|perl)string -> ") diff --git a/perl-XString.spec b/perl-XString.spec new file mode 100644 index 0000000..31eff94 --- /dev/null +++ b/perl-XString.spec @@ -0,0 +1,62 @@ +Name: perl-XString +Version: 0.002 +Release: 1%{?dist} +Summary: Isolated String helpers from B +License: GPL+ or Artistic +URL: https://metacpan.org/release/XString +Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/XString-%{version}.tar.gz +# Build +BuildRequires: coreutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) +# Module +BuildRequires: perl(:VERSION) >= 5.10.0 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: perl(XSLoader) +# Test Suite +BuildRequires: perl(B) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Test::More) >= 0.88 +# Optional Tests +BuildRequires: perl(CPAN::Meta) >= 2.120900 +# Requirements from upstream metadata that are not actually used +BuildRequires: perl(Test2::Bundle::Extended) +BuildRequires: perl(Test2::Plugin::NoWarnings) +BuildRequires: perl(Test2::Tools::Explain) +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +XString provides the B string helpers in one isolated package. Right now only +cstring and perlstring are available. + +%prep +%setup -q -n XString-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +find %{buildroot} -type f -name '*.bs' -empty -delete +%{_fixperms} -c %{buildroot} + +%check +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorarch}/XString.pm +%{perl_vendorarch}/auto/XString/ +%{_mandir}/man3/XString.3* + +%changelog +* Mon Nov 25 2019 Paul Howarth - 0.002-1 +- Initial RPM version diff --git a/sources b/sources new file mode 100644 index 0000000..9709022 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (XString-0.002.tar.gz) = 5fb9a3baec891485d0ad32b9aec3c1a48ff6ab7aa47e3d289127cbe2b7ec9bd7a16da9e2ccd349cdd513af62bd85a9ce1b1a04f90ecf67f2a161c187a8abd613