!1 Init package

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

BIN
Text-CSV_XS-1.48.tgz Normal file

Binary file not shown.

76
perl-Text-CSV_XS.spec Normal file
View File

@ -0,0 +1,76 @@
Name: perl-Text-CSV_XS
Version: 1.48
Release: 1
Summary: Comma-separated values manipulation routines
License: GPL+ or Artistic
URL: https://metacpan.org/release/Text-CSV_XS
Source0: https://cpan.metacpan.org/modules/by-module/Text/Text-CSV_XS-%{version}.tgz
# Build:
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(charnames)
BuildRequires: perl(Config::Tiny)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(strict)
BuildRequires: perl(UNIVERSAL::isa)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: perl(XSLoader)
# Tests:
BuildRequires: perl(base)
BuildRequires: perl(Config)
BuildRequires: perl(Test::More)
BuildRequires: perl(Tie::Scalar)
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(Encode)
Requires: perl(IO::Handle)
Requires: perl(UNIVERSAL::isa)
%{?perl_default_filter}
%description
Text::CSV provides facilities for the composition and decomposition of
comma-separated values. An instance of the Text::CSV class can combine
fields into a CSV string and parse a CSV string into fields.
%prep
%setup -q -n Text-CSV_XS-%{version}
chmod -c a-x examples/*
%build
perl Makefile.PL \
INSTALLDIRS=vendor \
OPTIMIZE="%{optflags}" \
NO_PACKLIST=true \
NO_PERLLOCAL=true
%{make_build}
%install
%{make_install}
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} -c %{buildroot}
%check
%{make_build} test
%files
%doc ChangeLog CONTRIBUTING.md README examples/
%{perl_vendorarch}/Text/
%{perl_vendorarch}/auto/Text/
%{_mandir}/man3/Text::CSV_XS.3*
%changelog
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 1.48-1
- Init package (Thanks to fedora team)