OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Sort?expand=0&rev=1
50 lines
1.3 KiB
RPMSpec
50 lines
1.3 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
|
|
Name: perl-File-Sort
|
|
Version: 1.01
|
|
Release: 0
|
|
Summary: Sort a file or merge sort multiple files
|
|
Source: http://search.cpan.org/CPAN/authors/id/C/CN/CNANDOR/File-Sort-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/File-Sort
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
%{perl_requires}
|
|
BuildRequires: perl-macros
|
|
%if 0%{?suse_version} >= 1120
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
This module sorts text files by lines (or records). Comparisons are based on
|
|
one or more sort keys extracted from each line of input, and are performed
|
|
lexicographically. By default, if keys are not given, sort regards each input
|
|
line as a single field. The sort is a merge sort. If you don't like that, feel
|
|
free to change it.
|
|
|
|
%prep
|
|
%setup -q -n "File-Sort-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README Sort.pm_rsorted.txt Sort.pm_sorted.txt
|
|
%dir %{perl_vendorlib}/File
|
|
%{perl_vendorlib}/File/Sort.pm
|
|
%doc %{perl_man3dir}/File::Sort.%{perl_man3ext}%{ext_man}
|
|
|