54 lines
1.5 KiB
RPMSpec
54 lines
1.5 KiB
RPMSpec
Name: perl-Tie-IxHash
|
|
Version: 1.23
|
|
Release: 1
|
|
Summary: Ordered associative arrays for Perl
|
|
License: GPL+ or Artistic
|
|
URL: http://search.cpan.org/dist/Tie-IxHash/
|
|
Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Tie-IxHash-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: perl-generators perl(ExtUtils::MakeMaker) perl(Test::More) perl(Test::Pod)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
This Perl module implements Perl hashes that preserve the order in
|
|
which the hash elements were added. The order is not affected when
|
|
values corresponding to existing keys in the IxHash are changed.
|
|
The elements can also be set to any arbitrary supplied order. The
|
|
familiar perl array operations can also be performed on the IxHash.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n Tie-IxHash-%{version} -p1
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%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 -depth -type d -exec rmdir {} ';' 2>/dev/null
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{perl_vendorlib}/Tie/
|
|
|
|
%files help
|
|
%defattr(-,root,root)
|
|
%doc Changes README
|
|
%{_mandir}/*
|
|
|
|
%changelog
|
|
* Tue Feb 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.23-1
|
|
- Package init
|