]> git.pld-linux.org Git - packages/perl-Math-PRSG.git/blobdiff - perl-Math-PRSG.spec
- formatting
[packages/perl-Math-PRSG.git] / perl-Math-PRSG.spec
index ea15ed0eecfe423b74a36fc89fe9635a2361af9f..b1907338e9c45b4c7264f94df9c8d60e757801af 100644 (file)
@@ -1,18 +1,23 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-%define        pdir    Math
-%define        pnam    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:       8
-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
 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 >= 5.6
+BuildRequires: perl-devel >= 1:5.8.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -28,12 +33,16 @@ Math::PRSG - interfejs do funkcji generowania pseudolosowych sekwencji.
 %build
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
-%{__make} OPTIMIZE="%{rpmcflags}"
+%{__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
This page took 0.1012 seconds and 4 git commands to generate.