[perl-Number-WithError] Import

Petr Pisar ppisar at fedoraproject.org
Tue May 21 06:38:06 UTC 2013


commit e94907e4b53804b971e0fae711d35c2e46ba78c2
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue May 21 08:37:35 2013 +0200

    Import

 .gitignore                 |    1 +
 perl-Number-WithError.spec |   78 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..472aece 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Number-WithError-1.01.tar.gz
diff --git a/perl-Number-WithError.spec b/perl-Number-WithError.spec
new file mode 100644
index 0000000..1a1ad40
--- /dev/null
+++ b/perl-Number-WithError.spec
@@ -0,0 +1,78 @@
+Name:           perl-Number-WithError
+Version:        1.01
+Release:        1%{?dist}
+Summary:        Numbers with error propagation and scientific rounding
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Number-WithError/
+Source0:        http://www.cpan.org/authors/id/S/SM/SMUELLER/Number-WithError-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(inc::Module::Install)
+# Run-time:
+BuildRequires:  perl(base)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(Math::BigFloat) >= 1.40
+BuildRequires:  perl(overload)
+BuildRequires:  perl(Params::Util) >= 0.10
+BuildRequires:  perl(prefork) >= 1.00
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Tests:
+BuildRequires:  perl(File::Spec::Functions)
+# FindBin not needed
+BuildRequires:  perl(constant)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Test::LectroTest)
+BuildRequires:  perl(Test::More) >= 0.47
+# Optional tests:
+BuildRequires:  perl(Test::Pod) >= 1.00
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(Math::BigFloat) >= 1.40
+Requires:       perl(overload)
+Requires:       perl(Params::Util) >= 0.10
+Requires:       perl(prefork) >= 1.00
+
+# Remove under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Params::Util|prefork)\\)$
+
+%description
+This class is a container class for numbers with a number of associated
+symmetric and asymmetric errors. It overloads practically all common
+arithmetic operations and trigonometric functions to propagate the errors.
+It can do proper scientific rounding.
+
+You can use Math::BigFloat objects as the internal representation of numbers
+in order to support arbitrary precision calculations.
+
+Errors are propagated using Gaussian error propagation.
+
+%prep
+%setup -q -n Number-WithError-%{version}
+# Remove bundled modules
+rm -rf inc/*
+sed -i -e '/^inc\//d' MANIFEST
+# Correct encoding
+sed -i -e 's/\r//' Changes
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue May 14 2013 Petr Pisar <ppisar at redhat.com> 1.01-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..d0c81b2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5cef7b1a8f7f85135ec24de5961cab4e  Number-WithError-1.01.tar.gz



More information about the perl-devel mailing list