Package init
This commit is contained in:
parent
ba47139f57
commit
a0e8a6510a
BIN
Sort-Key-1.33.tar.gz
Normal file
BIN
Sort-Key-1.33.tar.gz
Normal file
Binary file not shown.
75
perl-Sort-Key.spec
Normal file
75
perl-Sort-Key.spec
Normal file
@ -0,0 +1,75 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: perl-Sort-Key
|
||||
Version: 1.33
|
||||
Release: 1
|
||||
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-generators
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
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
|
||||
* Sun May 23 2021 Perl_Bot <Perl_Bot@openeuler.org> 1.33-1
|
||||
- Specfile autogenerated by Perl_Bot
|
||||
Loading…
x
Reference in New Issue
Block a user