3 %bcond_without tests # unit tests
7 Summary: Sort::Naturally Perl module - sort lexically, but sort numeral parts numerically
8 Summary(pl.UTF-8): Moduł Perla Sort::Naturally - sortujący leksykalnie, ale liczby numerycznie
9 Name: perl-Sort-Naturally
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: fef2e36d1b1ea23ee79ec68b5872453f
17 URL: https://metacpan.org/dist/Sort-Naturally
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.745
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Sort::Naturally module exports two functions, nsort and ncmp; they are
26 used in implementing my idea of a "natural sorting" algorithm. Under
27 natural sorting, numeric substrings are compared numerically, and
28 other word-characters are compared lexically.
30 %description -l pl.UTF-8
31 Moduł Sort::Naturally ma wyeksportowane dwie funkcje: nsort i ncmp. Są
32 one implementacją algorytmu "naturalnego sortowania". W algorytmie tym
33 podciągi numeryczne są sortowane numerycznie, a pozostałe znaki -
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 %{?with_tests: %{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/Sort/Naturally.pm
59 %{_mandir}/man3/Sort::Naturally.3pm*