X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-Math-PRSG.spec;h=804a2988224fc133e3589181e234550f29b33638;hb=56469a7cc4a5afca6372cf38ca95906812e482eb;hp=7aaeac46bd7b2cd0bacca480a7612ccb3c654f47;hpb=42b5bedafb2f89488dca72906fc4c60e96cb9e58;p=packages%2Fperl-Math-PRSG.git diff --git a/perl-Math-PRSG.spec b/perl-Math-PRSG.spec index 7aaeac4..804a298 100644 --- a/perl-Math-PRSG.spec +++ b/perl-Math-PRSG.spec @@ -1,39 +1,48 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# %include /usr/lib/rpm/macros.perl -Summary: Math-PRSG perl module -Summary(pl): Modu³ perla Math-PRSG +%define pdir Math +%define pnam PRSG +Summary: Math::PRSG perl module +Summary(pl): Modu³ perla Math::PRSG Name: perl-Math-PRSG Version: 1.0 -Release: 4 -License: GPL +Release: 9 +# if used in a product, Systemics should be given attribution as the author +License: free use, distributable Group: Development/Languages/Perl -Group(pl): Programowanie/Jêzyki/Perl -Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Math/Math-PRSG-%{version}.tar.gz -Patch0: perl-Math-PRSG-paths.patch -BuildRequires: rpm-perlprov >= 3.0.3-16 -BuildRequires: perl >= 5.6 -%requires_eq perl -Requires: %{perl_sitearch} +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 4f0c32973d5b03d2a665b6ac6ec04b9c +Patch0: %{name}-paths.patch +BuildRequires: rpm-perlprov >= 4.1-13 +BuildRequires: perl-devel >= 1:5.8.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -Math-PRSG - interface to pseudo random sequence generator function. +Math::PRSG - interface to pseudo random sequence generator function. %description -l pl -Math-PRSG - interfejs do funkcji generowania pseudolosowych sekwencji. +Math::PRSG - interfejs do funkcji generowania pseudolosowych sekwencji. %prep -%setup -q -n Math-PRSG-%{version} +%setup -q -n %{pdir}-%{pnam}-%{version} %patch -p1 %build -perl Makefile.PL -%{__make} OPTIMIZE="$RPM_OPT_FLAGS" +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} \ + OPTIMIZE="%{rpmcflags}" + +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT - +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT @@ -41,11 +50,8 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc examples/prsg_driver.pl - -%{perl_sitearch}/Math/PRSG.pm - -%dir %{perl_sitearch}/auto/Math/PRSG -%{perl_sitearch}/auto/Math/PRSG/PRSG.bs -%attr(755,root,root) %{perl_sitearch}/auto/Math/PRSG/PRSG.so - +%{perl_vendorarch}/Math/PRSG.pm +%dir %{perl_vendorarch}/auto/Math/PRSG +%{perl_vendorarch}/auto/Math/PRSG/PRSG.bs +%attr(755,root,root) %{perl_vendorarch}/auto/Math/PRSG/PRSG.so %{_mandir}/man3/*