108 lines
3.1 KiB
RPMSpec
108 lines
3.1 KiB
RPMSpec
Name: perl-Scalar-List-Utils
|
|
%if %{rhel} == 8
|
|
Epoch: 3
|
|
%endif
|
|
Version: 1.68
|
|
Release: 4%{?dist}
|
|
Summary: A selection of general-utility scalar and list subroutines
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Scalar-List-Utils/
|
|
Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/Scalar-List-Utils-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
# Build
|
|
BuildRequires: findutils
|
|
BuildRequires: gcc
|
|
BuildRequires: make
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl-devel
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl(Config)
|
|
BuildRequires: perl(ExtUtils::Manifest)
|
|
BuildRequires: perl(inc::Module::Install)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
# Runtime
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(XSLoader)
|
|
# Tests only
|
|
BuildRequires: perl(B::Deparse)
|
|
BuildRequires: perl(base)
|
|
BuildRequires: perl(constant)
|
|
BuildRequires: perl(IO::File)
|
|
BuildRequires: perl(IO::Handle)
|
|
BuildRequires: perl(List::Util)
|
|
BuildRequires: perl(Math::BigInt)
|
|
BuildRequires: perl(overload)
|
|
BuildRequires: perl(Symbol)
|
|
BuildRequires: perl(Sub::Util)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(threads)
|
|
BuildRequires: perl(threads::shared)
|
|
BuildRequires: perl(Tie::Handle)
|
|
BuildRequires: perl(Tie::Scalar)
|
|
BuildRequires: perl(Tie::StdScalar)
|
|
BuildRequires: perl(vars)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
Requires: perl(Carp)
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
%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.
|
|
Scalar::List::Utils does nothing on its own. It is packaged with several
|
|
useful modules.
|
|
|
|
%prep
|
|
%setup -q -n Scalar-List-Utils-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$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
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes META.json README
|
|
%{perl_vendorarch}/auto/*
|
|
%{perl_vendorarch}/List*
|
|
%{perl_vendorarch}/Scalar*
|
|
%{perl_vendorarch}/Sub*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Mon Jan 27 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.68-4.sme
|
|
- set epoch 3 for el8
|
|
|
|
* Fri Jan 24 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.68-3.sme
|
|
- improve spec for koji builder
|
|
|
|
* Tue Jan 21 2025 Trevor Batley<trevorb@koozali.org> 1.68-2.el8.sme
|
|
- fix missing files as per openfusion spec file
|
|
|
|
* Tue Jan 21 2025 Koozali 1.68-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|