# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir Tie %define pnam Hash-Indexed Summary: Tie::Hash::Indexed - Ordered hashes for Perl Summary(pl.UTF-8): Tie::Hash::Indexed - uporządkowane hasze dla Perla Name: perl-Tie-Hash-Indexed Version: 0.05 Release: 3 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 41e2d013df8cfafdd239bc65bbada014 URL: http://search.cpan.org/dist/Tie-Hash-Indexed/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Tie::Hash::Indexed is very similar to Tie::IxHash. However, it is written completely in XS and usually about twice as fast as Tie::IxHash. It's quite a lot faster when it comes to clearing or deleting entries from large hashes. Currently, only the plain tying mechanism is supported. %description -l pl.UTF-8 Tie::Hash::Indexed jest bardzo podobny do Tie::IxHash. Jednak jest napisany w całości w XS i zwykle około dwa razy szybszy niż Tie::IxHash. Jest dużo szybszy, jeśli zachodzi potrzeba czyszczenia lub usuwania wpisów z dużych haszy. Aktualnie obsługiwany jest tylko zwykły mechamizm wiązania. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} \ CC="%{__cc}" \ OPTIMIZE="%{rpmcflags}" %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README TODO %dir %{perl_vendorarch}/Tie/Hash %{perl_vendorarch}/Tie/Hash/*.pm %dir %{perl_vendorarch}/auto/Tie/Hash %dir %{perl_vendorarch}/auto/Tie/Hash/Indexed %attr(755,root,root) %{perl_vendorarch}/auto/Tie/Hash/Indexed/*.so %{_mandir}/man3/*