# Run optional test %bcond_without perl_Tie_IxHash_enables_optional_test Name: perl-Tie-IxHash Version: 1.23 Release: 1%{?dist} Summary: Ordered associative arrays for Perl Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Tie-IxHash/ Vendor: bww bitwise works GmbH Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Tie-IxHash-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-generators #BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63 BuildRequires: sed # Run-time: #BuildRequires: perl(:VERSION) >= 5.5 BuildRequires: perl(integer) BuildRequires: perl(strict) BuildRequires: perl(Tie::Hash) BuildRequires: perl(vars) # Tests: BuildRequires: perl(Test::More) %if %{with perl_Tie_IxHash_enables_optional_test} && !%{defined perl_bootstrap} # Optional tests: BuildRequires: perl(Test::Pod) >= 1.14 %endif 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. %prep %setup -q -n Tie-IxHash-%{version} # Fix line endings sed -i -e 's/\r$//' Changes README %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} make manifypods %install make pure_install DESTDIR=%{buildroot} %{_fixperms} -c %{buildroot} find %{buildroot} -type f -name .packlist -delete %check #make test %files %doc Changes README %{perl_vendorlib}/Tie/ %{_mandir}/man3/*.3pm* %changelog * Fri Mar 09 2018 Elbert Pol - 1.23-1 - initial rpm for OS2