[perl-Statistics-CaseResampling] Import

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

 



commit 52351edf689d950e94cc867ed65463ddac5d0594
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Mon Mar 10 16:19:50 2014 +0100

    Import

 .gitignore                                         |    1 +
 ...g-0.14-Do-not-redefine-optimization-level.patch |   24 ++++++++
 perl-Statistics-CaseResampling.spec                |   62 ++++++++++++++++++++
 sources                                            |    1 +
 4 files changed, 88 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..82300a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Statistics-CaseResampling-0.14.tar.gz
diff --git a/Statistics-CaseResampling-0.14-Do-not-redefine-optimization-level.patch b/Statistics-CaseResampling-0.14-Do-not-redefine-optimization-level.patch
new file mode 100644
index 0000000..4640715
--- /dev/null
+++ b/Statistics-CaseResampling-0.14-Do-not-redefine-optimization-level.patch
@@ -0,0 +1,24 @@
+From 4769ab64d7756c7bf73faa041a82462c577806d6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@xxxxxxxxxx>
+Date: Tue, 14 May 2013 13:57:39 +0200
+Subject: [PATCH] Do not redefine optimization level
+
+---
+ Makefile.PL | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 3088376..5c5d26c 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -12,7 +12,6 @@ WriteMakefile(
+       (ABSTRACT_FROM  => 'lib/Statistics/CaseResampling.pm', # retrieve abstract from module
+        AUTHOR         => 'Steffen Mueller <smueller@xxxxxxxx>') : ()),
+     LIBS              => [''], # e.g., '-lm'
+-    DEFINE            => '-O2', # e.g., '-DHAVE_SOMETHING'
+     INC               => '-I.', # e.g., '-I. -I/usr/include/other'
+     OBJECT            => '$(O_FILES)', # link all the C files too
+ );
+-- 
+1.8.1.4
+
diff --git a/perl-Statistics-CaseResampling.spec b/perl-Statistics-CaseResampling.spec
new file mode 100644
index 0000000..b696988
--- /dev/null
+++ b/perl-Statistics-CaseResampling.spec
@@ -0,0 +1,62 @@
+Name:           perl-Statistics-CaseResampling
+Version:        0.14
+Release:        1%{?dist}
+Summary:        Resampling and calculation of medians with confidence intervals
+# Mersenne Twister is somewhat bundled, CPAN RT#85284
+# _mt.c, mt.h:  Copyright only
+# <http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/elicense.html>
+# The rest:     GPL+ or Artistic
+License:        (GPL+ or Artistic) and (Copyright Only)
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Statistics-CaseResampling/
+Source0:        http://www.cpan.org/authors/id/S/SM/SMUELLER/Statistics-CaseResampling-%{version}.tar.gz
+# Respect distribution CFLAGS, CPAN RT#85282
+Patch0:         Statistics-CaseResampling-0.14-Do-not-redefine-optimization-level.patch
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker)
+# Run-time:
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+BuildRequires:  perl(XSLoader)
+# Tests:
+BuildRequires:  perl(List::Util)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Provides:       bundled(mt19937ar)
+
+%{?perl_default_filter}
+
+%description
+The purpose of this module is to calculate the median (or in principle also
+other statistics) with confidence intervals on a sample. To do that, it uses
+a technique called boot-strapping. In a nutshell, it resamples the sample
+a lot of times and for each resample, it calculates the median. From the
+distribution of medians, it then calculates the confidence limits.
+
+%prep
+%setup -q -n Statistics-CaseResampling-%{version}
+%patch0 -p1
+
+%build
+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 {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Statistics*
+%{_mandir}/man3/*
+
+%changelog
+* Tue May 14 2013 Petr Pisar <ppisar@xxxxxxxxxx> 0.14-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..adba575 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8e0564dc5368f620b3cd7142de279ce6  Statistics-CaseResampling-0.14.tar.gz
--
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