perl-Scalar-List-Utils/perl-Scalar-List-Utils.spec

60 lines
1.7 KiB
RPMSpec

Name: perl-Scalar-List-Utils
Version: 1.68
Release: 2%{?dist}
Summary: Distribution of general-utility 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)
BuildRequires: perl >= 0:5.006
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
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="$RPM_OPT_FLAGS"
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
* 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.