]>
Commit | Line | Data |
---|---|---|
fc4799c9 | 1 | %include /usr/lib/rpm/macros.perl |
6929eb8c | 2 | %define pdir Tie |
3 | %define pnam IxHash | |
2b144f19 | 4 | Summary: Tie::IxHash - ordered associative arrays for Perl |
74099a18 | 5 | Name: perl-Tie-IxHash |
6 | Version: 1.21 | |
ae7aa688 | 7 | Release: 9 |
602d4665 | 8 | License: GPL |
74099a18 | 9 | Group: Development/Languages/Perl |
c3fd9a0b | 10 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
258a4e4f | 11 | BuildRequires: rpm-perlprov >= 3.0.3-16 |
25331206 | 12 | BuildRequires: perl >= 5.6 |
2f4be33e | 13 | BuildArch: noarch |
fcc9fe51 | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
74099a18 | 15 | |
16 | %description | |
2b144f19 | 17 | This Perl module implements Perl hashes that preserve the order in which |
18 | the hash elements were added. The order is not affected when values | |
19 | corresponding to existing keys in the IxHash are changed. The elements | |
20 | can also be set to any arbitrary supplied order. The familiar perl | |
21 | array operations can also be performed on the IxHash. | |
74099a18 | 22 | |
23 | %prep | |
fc4799c9 | 24 | %setup -q -n %{pdir}-%{pnam}-%{version} |
74099a18 | 25 | |
26 | %build | |
27 | perl Makefile.PL | |
75a5af66 | 28 | %{__make} |
74099a18 | 29 | |
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
74099a18 | 32 | |
25331206 | 33 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
74099a18 | 34 | |
25331206 | 35 | gzip -9nf Changes README |
74099a18 | 36 | |
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
25331206 | 42 | %doc *.gz |
74099a18 | 43 | %{perl_sitelib}/Tie/IxHash.pm |
74099a18 | 44 | %{_mandir}/man3/* |