!1 Init package

From: @misaka00251 
Reviewed-by: @geasscore 
Signed-off-by: @geasscore
This commit is contained in:
openeuler-ci-bot 2022-08-16 02:30:23 +00:00 committed by Gitee
commit dfb12d29a4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 61 additions and 0 deletions

BIN
XString-0.005.tar.gz Normal file

Binary file not shown.

61
perl-XString.spec Normal file
View File

@ -0,0 +1,61 @@
Name: perl-XString
Version: 0.005
Release: 1
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: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# 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
BuildRequires: perl(CPAN::Meta::Prereqs)
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(XSLoader)
%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
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 0.005-1
- Init package (Thanks to fedora team)