8
0
Files
perl-File-ReadBackwards/perl-File-ReadBackwards.spec

54 lines
1.5 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
# norootforbuild
Name: perl-File-ReadBackwards
Version: 1.04
Release: 0
Summary: Read a file backwards by lines
Source: http://search.cpan.org/CPAN/authors/id/U/UR/URI/File-ReadBackwards-%{version}.tar.gz
URL: http://search.cpan.org/dist/File-ReadBackwards
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
BuildRequires: perl
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker)
%description
This module reads a file backwards line by line. It is simple to use, memory
efficient and fast. It supports both an object and a tied handle interface.
It is intended for processing log and other similar text files which typically
have their newest entries appended to them. By default files are assumed to be
plain text and have a line ending appropriate to the OS. But you can set the
input record separator string on a per file basis.
%prep
%setup -q -n "File-ReadBackwards-%{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 Changes README
%dir %{perl_vendorlib}/File
%{perl_vendorlib}/File/ReadBackwards.pm
%dir %{perl_vendorarch}/auto/File
%{perl_vendorarch}/auto/File/ReadBackwards
%doc %{perl_man3dir}/File::ReadBackwards.%{perl_man3ext}%{ext_man}