3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Math::PRSG perl module
9 Summary(pl.UTF-8): ModuĊ perla Math::PRSG
13 # if used in a product, Systemics should be given attribution as the author
14 License: free use, distributable
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 4f0c32973d5b03d2a665b6ac6ec04b9c
18 Patch0: %{name}-paths.patch
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Math::PRSG - interface to pseudo random sequence generator function.
26 %description -l pl.UTF-8
27 Math::PRSG - interfejs do funkcji generowania pseudolosowych sekwencji.
30 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %{__perl} Makefile.PL \
38 OPTIMIZE="%{rpmcflags}"
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
46 DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %doc examples/prsg_driver.pl
54 %{perl_vendorarch}/Math/PRSG.pm
55 %dir %{perl_vendorarch}/auto/Math/PRSG
56 %{perl_vendorarch}/auto/Math/PRSG/PRSG.bs
57 %attr(755,root,root) %{perl_vendorarch}/auto/Math/PRSG/PRSG.so