3 %bcond_without tests # do not perform "make test"
7 Summary: File::Sort - sort a file or merge sort multiple files
8 Summary(pl.UTF-8): File::Sort - sortowanie pliku lub połączenie wyniku sortowania wielu plików
13 License: GPL v1 or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 1feb4128bba2edde68ada7838e55863a
17 URL: http://search.cpan.org/dist/File-Sort/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The File::Sort Perl module sorts text files by lines (or records).
25 Comparisons are based on one or more sort keys extracted from each
26 line of input, and are performed lexicographically. By default, if
27 keys are not given, sort regards each input line as a single field.
28 The sort is a merge sort.
30 %description -l pl.UTF-8
31 Moduł Perla File::Sort sortuje pliki tekstowe według wierszy (lub
32 rekordów). Porównania dokonywane są w oparciu o jeden lub więcej
33 kluczy sortowania pobieranych z każdego wiersza danych wejściowych i
34 układane leksykograficznie. Domyślnie, jeśli nie podano klucza,
35 sortowanie dotyczy całych wierszy danych wejściowych jako pojedynczych
36 pól. Wyniki sortowania są łączone.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/File/Sort.pm