%include /usr/lib/rpm/macros.perl Summary: File-Cat perl module Summary(pl): Moduł perla File-Cat Name: perl-File-Cat Version: 1.2 Release: 3 Copyright: GPL Group: Development/Languages/Perl Group(pl): Programowanie/Języki/Perl Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/File/File-Cat-%{version}.tar.gz BuildRequires: rpm-perlprov >= 3.0.3-16 BuildRequires: perl >= 5.005_03-14 %requires_eq perl Requires: %{perl_sitearch} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description File-Cat perl module - Perl implementation of cat(1). %description -l pl Moduł perla File-Cat - cat(1) dla perla. %prep %setup -q -n File-Cat-%{version} %build perl Makefile.PL make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT ( cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/File/Cat sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new mv .packlist.new .packlist ) gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \ Changes %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes.gz %{perl_sitelib}/File/Cat.pm %{perl_sitearch}/auto/File/Cat %{_mandir}/man3/*