97 lines
2.5 KiB
RPMSpec
97 lines
2.5 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
|
|
Name: perl-Sort-Key
|
|
Version: 1.33
|
|
Release: 2
|
|
Summary: Fastest way to sort anything in Perl
|
|
License: GPL-1.0-only or Artistic-1.0-Perl
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Sort-Key/
|
|
Source0: http://www.cpan.org/authors/id/S/SA/SALVA/Sort-Key-%{version}.tar.gz
|
|
BuildRequires: perl-devel
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(constant)
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(locale)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
BuildRequires: perl(XSLoader)
|
|
BuildRequires: perl(integer)
|
|
BuildRequires: perl(Test::More) >= 0.54
|
|
Requires: perl(Test::More) >= 0.54
|
|
|
|
%description
|
|
Sort::Key provides a set of functions to sort lists of values by some
|
|
calculated key value.
|
|
|
|
%package help
|
|
Summary: Fastest way to sort anything in Perl
|
|
Provides: perl-Sort-Key-doc
|
|
|
|
%description help
|
|
Sort::Key provides a set of functions to sort lists of values by some
|
|
calculated key value.
|
|
|
|
%prep
|
|
%setup -q -n Sort-Key-%{version}
|
|
|
|
%build
|
|
export PERL_MM_OPT=""
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
export PERL_MM_OPT=""
|
|
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/*
|
|
|
|
pushd %{buildroot}
|
|
touch filelist.lst
|
|
if [ -d usr/bin ];then
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/sbin ];then
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/lib64 ];then
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/lib ];then
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
popd
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
%check || :
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f filelist.lst
|
|
%defattr(-,root,root,-)
|
|
%doc Changes META.json README
|
|
%{perl_vendorarch}/auto/*
|
|
%{perl_vendorarch}/Sort*
|
|
|
|
%files help
|
|
%{_mandir}/*
|
|
|
|
%changelog
|
|
* Mon Oct 24 2022 misaka00251 <liuxin@iscas.ac.cn> - 1.33-2
|
|
- Fix build dependencies
|
|
|
|
* Sun May 23 2021 Perl_Bot <Perl_Bot@openeuler.org> 1.33-1
|
|
- Specfile autogenerated by Perl_Bot
|