[ghc-scientific] import (#1076739)

Jens Petersen petersen at fedoraproject.org
Fri Apr 11 08:17:27 UTC 2014


commit 6019f7b755c47e57cef574116e9e0ae184e2a081
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Apr 11 17:16:15 2014 +0900

    import (#1076739)

 .gitignore          |    1 +
 ghc-scientific.spec |   75 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f6ed87f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/scientific-0.2.0.2.tar.gz
diff --git a/ghc-scientific.spec b/ghc-scientific.spec
new file mode 100644
index 0000000..7a3c9ba
--- /dev/null
+++ b/ghc-scientific.spec
@@ -0,0 +1,75 @@
+# https://fedoraproject.org/wiki/Packaging:Haskell
+
+%global pkg_name scientific
+
+Name:           ghc-%{pkg_name}
+Version:        0.2.0.2
+Release:        1%{?dist}
+Summary:        Arbitrary-precision floating-point numbers represented using scientific notation
+
+License:        BSD
+URL:            http://hackage.haskell.org/package/%{pkg_name}
+Source0:        http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+
+BuildRequires:  ghc-Cabal-devel
+BuildRequires:  ghc-rpm-macros
+# Begin cabal-rpm deps:
+BuildRequires:  ghc-deepseq-devel
+BuildRequires:  ghc-hashable-devel
+BuildRequires:  ghc-text-devel
+# End cabal-rpm deps
+
+%description
+A 'Scientific' number is an arbitrary-precision floating-point number
+represented using scientific notation.
+
+A scientific number with 'coefficient' 'c' and 'base10Exponent' 'e' corresponds
+to the 'Fractional' number: ''fromInteger' c * 10 '^^' e'
+
+Its primary use-case is to serve as the target of parsing floating point
+numbers. Since the textual representation of floating point numbers use
+scientific notation they can be efficiently parsed to a 'Scientific' number.
+
+
+%package devel
+Summary:        Haskell %{pkg_name} library development files
+Provides:       %{name}-static = %{version}-%{release}
+Requires:       ghc-compiler = %{ghc_version}
+Requires(post): ghc-compiler = %{ghc_version}
+Requires(postun): ghc-compiler = %{ghc_version}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
+
+
+%prep
+%setup -q -n %{pkg_name}-%{version}
+
+
+%build
+%ghc_lib_build
+
+
+%install
+%ghc_lib_install
+
+
+%post devel
+%ghc_pkg_recache
+
+
+%postun devel
+%ghc_pkg_recache
+
+
+%files -f %{name}.files
+%doc LICENSE
+
+
+%files devel -f %{name}-devel.files
+
+
+%changelog
+* Sat Mar 15 2014 Fedora Haskell SIG <haskell at lists.fedoraproject.org> - 0.2.0.2
+- spec file generated by cabal-rpm-0.8.10
diff --git a/sources b/sources
index e69de29..ecdd446 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b811b242be41e3f8fc630c03d168c0e7  scientific-0.2.0.2.tar.gz


More information about the scm-commits mailing list