3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Sort::Key - interface to sort arrays by one or manipulate calculated keys
9 Summary(pl.UTF-8): Sort::Key - interfejs do szybkiego sortowania tablic według zmiennych kluczy
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Sort/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: ec9d003d68784a5643815c65124aad18
18 URL: http://search.cpan.org/dist/Sort-Key/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Sort arrays by one or multiple calculated keys.
26 %description -l pl.UTF-8
27 Sortowanie tablic po jednym lub wielu wyliczanych kluczach.
30 %setup -q -n %{pdir}-%{pnam}-%{version}
33 %{__perl} Makefile.PL \
37 OPTIMIZE="%{rpmcflags}"
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %{perl_vendorarch}/Sort/*.pm
54 %dir %{perl_vendorarch}/Sort
55 %dir %{perl_vendorarch}/Sort/Key
56 %{perl_vendorarch}/Sort/Key/*
57 %dir %{perl_vendorarch}/auto/Sort
58 %dir %{perl_vendorarch}/auto/Sort/Key
59 %attr(755,root,root) %{perl_vendorarch}/auto/Sort/Key/*.so