1 %include /usr/lib/rpm/macros.perl
2 Summary: Math-PRSG perl module
3 Summary(pl): Modu³ perla Math-PRSG
8 Group: Development/Languages/Perl
9 Group(pl): Programowanie/Jêzyki/Perl
10 Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Math/Math-PRSG-%{version}.tar.gz
11 Patch: perl-Math-PRSG-paths.patch
12 BuildRequires: rpm-perlprov >= 3.0.3-16
13 BuildRequires: perl >= 5.005_03-14
15 Requires: %{perl_sitearch}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Math-PRSG - interface to pseudo random sequence generator function.
22 Math-PRSG - interfejs do funkcji generowania pseudolosowych sekwencji.
25 %setup -q -n Math-PRSG-%{version}
30 make OPTIMIZE="$RPM_OPT_FLAGS"
33 rm -rf $RPM_BUILD_ROOT
34 make install DESTDIR=$RPM_BUILD_ROOT
36 strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Math/PRSG/*.so
39 cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Math/PRSG
40 sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
41 mv .packlist.new .packlist
44 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/*
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
51 %doc examples/prsg_driver.pl
53 %{perl_sitearch}/Math/PRSG.pm
55 %dir %{perl_sitearch}/auto/Math/PRSG
56 %{perl_sitearch}/auto/Math/PRSG/.packlist
57 %{perl_sitearch}/auto/Math/PRSG/PRSG.bs
58 %attr(755,root,root) %{perl_sitearch}/auto/Math/PRSG/PRSG.so