3 %bcond_without tests # unit tests
7 Summary: Sort::Key - interface to sort arrays by one or manipulate calculated keys
8 Summary(pl.UTF-8): Sort::Key - interfejs do szybkiego sortowania tablic według zmiennych kluczy
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Sort/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: a37ab0da0cfdc26e57b4c79e39f6d98f
17 URL: https://metacpan.org/dist/Sort-Key
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.745
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/Key.pm
54 %dir %{perl_vendorarch}/Sort
55 %{perl_vendorarch}/Sort/Key
56 %dir %{perl_vendorarch}/auto/Sort
57 %dir %{perl_vendorarch}/auto/Sort/Key
58 %attr(755,root,root) %{perl_vendorarch}/auto/Sort/Key/Key.so
59 %{_mandir}/man3/Sort::Key*.3pm*