[perl-Math-Random-MT-Auto] Declare bundled Mersenne Twister

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit a355dcd63ffa3e89c56f5c040afc41df66828365
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Mon Mar 10 16:13:34 2014 +0100

    Declare bundled Mersenne Twister
    
    And modernize the spec file

 perl-Math-Random-MT-Auto.spec |   37 ++++++++++++++++++++-----------------
 1 files changed, 20 insertions(+), 17 deletions(-)
---
diff --git a/perl-Math-Random-MT-Auto.spec b/perl-Math-Random-MT-Auto.spec
index 553d298..ba294d8 100644
--- a/perl-Math-Random-MT-Auto.spec
+++ b/perl-Math-Random-MT-Auto.spec
@@ -1,42 +1,45 @@
 Name:           perl-Math-Random-MT-Auto
 Version:        6.22
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Auto-seeded Mersenne Twister PRNGs
 License:        BSD 
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Math-Random-MT-Auto/
 Source0:        http://www.cpan.org/authors/id/J/JD/JDHEDDEN/Math-Random-MT-Auto-%{version}.tar.gz
-
+BuildRequires:  perl
+BuildRequires:  perl(Config)
+# Config_m not used
 BuildRequires:  perl(ExtUtils::MakeMaker)
-# Run-time
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time:
 BuildRequires:  perl(Carp)
-BuildRequires:  perl(Config)
 BuildRequires:  perl(Exception::Class) >= 1.32
 BuildRequires:  perl(Fcntl)
 BuildRequires:  perl(Object::InsideOut) >= 3.88
 BuildRequires:  perl(Object::InsideOut::Util)
 BuildRequires:  perl(Scalar::Util) >= 1.23
-BuildRequires:  perl(strict)
+# Win32 not used
+# Win32::API not used
 BuildRequires:  perl(XSLoader)
+# Optional run-time:
+BuildRequires:  perl(LWP::UserAgent)
 # Tests only:
 BuildRequires:  perl(Data::Dumper)
 BuildRequires:  perl(Test::More)
 BuildRequires:  perl(threads)
 BuildRequires:  perl(threads::shared)
-# Optional tests
-BuildRequires:  perl(LWP::UserAgent)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(Exception::Class) >= 1.32
 Requires:       perl(Fcntl)
 Requires:       perl(Object::InsideOut) >= 3.88
 Requires:       perl(Scalar::Util) >= 1.23
+Provides:       bundled(mt19937ar)
 
 %{?perl_default_filter}
-
-# Removed underpsecified dependencies
-%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Exception::Class\\)$
-%global __requires_exclude %__requires_exclude|^perl\\(Object::InsideOut\\)
-%global __requires_exclude %__requires_exclude|^perl\\(Scalar::Util\\)
+# Removed under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Exception::Class|Object::InsideOut|Scalar::Util)\\)
 
 %description
 The Mersenne Twister is a fast pseudo-random number generator (PRNG) that is
@@ -44,21 +47,18 @@ capable of providing large volumes (> 10^6004) of "high quality"
 pseudo-random data to applications that may exhaust available "truly" random
 data sources or system-provided PRNGs such as rand.
 
-%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Object::InsideOut\\)$
-
 %prep
 %setup -q -n Math-Random-MT-Auto-%{version}
 chmod -x examples/*
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
 make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
@@ -71,6 +71,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Mon Mar 10 2014 Petr Pisar <ppisar@xxxxxxxxxx> - 6.22-5
+- Declare bundled Mersenne Twister
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 6.22-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux