%include /usr/lib/rpm/macros.perl Summary: Math-Matrix perl module Summary(pl): Moduł perla Math-Matrix Name: perl-Math-Matrix Version: 0.2 Release: 3 License: GPL Group: Development/Languages/Perl Group(pl): Programowanie/Języki/Perl Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Math/Math-Matrix-%{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 Math-Matrix perl module. %description -l pl Moduł perla Math-Matrix. %prep %setup -q -n Math-Matrix-%{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/Math/Matrix sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new mv .packlist.new .packlist ) gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \ README %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README.gz %{perl_sitelib}/Math/Matrix.pm %{perl_sitearch}/auto/Math/Matrix %{_mandir}/man3/*