Package init
This commit is contained in:
commit
a548548a92
BIN
Scalar-List-Utils-1.52.tar.gz
Normal file
BIN
Scalar-List-Utils-1.52.tar.gz
Normal file
Binary file not shown.
73
perl-Scalar-List-Utils.spec
Normal file
73
perl-Scalar-List-Utils.spec
Normal file
@ -0,0 +1,73 @@
|
||||
%define mod_name Scalar-List-Utils
|
||||
|
||||
Name: perl-%{mod_name}
|
||||
Epoch: 3
|
||||
Version: 1.52
|
||||
Release: 1
|
||||
Summary: Common Scalar and List utility subroutines
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Scalar-List-Utils
|
||||
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{mod_name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: findutils, gcc, make, perl-interpreter, perl-devel, perl-generators
|
||||
BuildRequires: perl(Config), perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(File::Spec), perl(strict), perl(warnings)
|
||||
BuildRequires: perl(Carp), perl(Exporter), perl(XSLoader)
|
||||
BuildRequires: perl(B::Deparse), perl(base), perl(constant), perl(IO::File)
|
||||
BuildRequires: perl(IO::Handle), perl(List::Util), perl(Math::BigInt)
|
||||
BuildRequires: perl(overload), perl(Symbol), perl(Sub::Util), perl(Test::More)
|
||||
BuildRequires: perl(threads), perl(threads::shared), perl(Tie::Handle)
|
||||
BuildRequires: perl(Tie::Scalar), perl(Tie::StdScalar), perl(vars)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
||||
Requires: perl(Carp)
|
||||
|
||||
%description
|
||||
This package contains a selection of subroutines that people have
|
||||
expressed would be nice to have in the perl core, but the usage would not
|
||||
really be high enough to warrant the use of a keyword, and the size so
|
||||
small such that being individual extensions would be wasteful.
|
||||
|
||||
%package help
|
||||
Summary: Help files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description help
|
||||
This package contains user documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{mod_name}-%{version} -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name '*.bs' -size 0 | xargs rm -f
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%pre
|
||||
|
||||
%preun
|
||||
|
||||
%post
|
||||
|
||||
%postun
|
||||
|
||||
%files
|
||||
%doc Changes README
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/List*
|
||||
%{perl_vendorarch}/Scalar*
|
||||
%{perl_vendorarch}/Sub*
|
||||
|
||||
%files help
|
||||
%{_mandir}/man*/*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 3:1.52-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user