1 | # Run optional test
|
---|
2 | %bcond_without perl_Tie_IxHash_enables_optional_test
|
---|
3 |
|
---|
4 | Name: perl-Tie-IxHash
|
---|
5 | Version: 1.23
|
---|
6 | Release: 1%{?dist}
|
---|
7 | Summary: Ordered associative arrays for Perl
|
---|
8 |
|
---|
9 | Group: Development/Libraries
|
---|
10 | License: GPL+ or Artistic
|
---|
11 | URL: http://search.cpan.org/dist/Tie-IxHash/
|
---|
12 | Vendor: bww bitwise works GmbH
|
---|
13 | Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Tie-IxHash-%{version}.tar.gz
|
---|
14 |
|
---|
15 | BuildArch: noarch
|
---|
16 | BuildRequires: make
|
---|
17 | BuildRequires: perl-generators
|
---|
18 | #BuildRequires: perl-interpreter
|
---|
19 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
---|
20 | BuildRequires: sed
|
---|
21 | # Run-time:
|
---|
22 | #BuildRequires: perl(:VERSION) >= 5.5
|
---|
23 | BuildRequires: perl(integer)
|
---|
24 | BuildRequires: perl(strict)
|
---|
25 | BuildRequires: perl(Tie::Hash)
|
---|
26 | BuildRequires: perl(vars)
|
---|
27 | # Tests:
|
---|
28 | BuildRequires: perl(Test::More)
|
---|
29 | %if %{with perl_Tie_IxHash_enables_optional_test} && !%{defined perl_bootstrap}
|
---|
30 | # Optional tests:
|
---|
31 | BuildRequires: perl(Test::Pod) >= 1.14
|
---|
32 | %endif
|
---|
33 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
34 |
|
---|
35 | %description
|
---|
36 | This Perl module implements Perl hashes that preserve the order in
|
---|
37 | which the hash elements were added. The order is not affected when
|
---|
38 | values corresponding to existing keys in the IxHash are changed.
|
---|
39 | The elements can also be set to any arbitrary supplied order. The
|
---|
40 | familiar perl array operations can also be performed on the IxHash.
|
---|
41 |
|
---|
42 |
|
---|
43 | %prep
|
---|
44 | %setup -q -n Tie-IxHash-%{version}
|
---|
45 |
|
---|
46 | # Fix line endings
|
---|
47 | sed -i -e 's/\r$//' Changes README
|
---|
48 |
|
---|
49 |
|
---|
50 | %build
|
---|
51 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
---|
52 | make %{?_smp_mflags}
|
---|
53 | make manifypods
|
---|
54 |
|
---|
55 | %install
|
---|
56 | make pure_install DESTDIR=%{buildroot}
|
---|
57 | %{_fixperms} -c %{buildroot}
|
---|
58 | find %{buildroot} -type f -name .packlist -delete
|
---|
59 |
|
---|
60 | %check
|
---|
61 | #make test
|
---|
62 |
|
---|
63 |
|
---|
64 | %files
|
---|
65 | %doc Changes README
|
---|
66 | %{perl_vendorlib}/Tie/
|
---|
67 | %{_mandir}/man3/*.3pm*
|
---|
68 |
|
---|
69 |
|
---|
70 | %changelog
|
---|
71 | * Fri Mar 09 2018 Elbert Pol <elbert.pol@gmail.com> - 1.23-1
|
---|
72 | - initial rpm for OS2
|
---|
73 |
|
---|