!1 package init

Merge pull request !1 from 通行百万/local
This commit is contained in:
openeuler-ci-bot 2020-02-20 18:59:05 +08:00 committed by Gitee
commit 057f993086
2 changed files with 53 additions and 0 deletions

BIN
Tie-IxHash-1.23.tar.gz Normal file

Binary file not shown.

53
perl-Tie-IxHash.spec Normal file
View File

@ -0,0 +1,53 @@
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