|
|
@ -2,16 +2,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
%global pkg_name scientific
|
|
|
|
%global pkg_name scientific
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
Version: 0.3.3.8
|
|
|
|
Version: 0.3.3.1
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Arbitrary-precision floating-point numbers represented using scientific notation
|
|
|
|
Summary: Arbitrary-precision floating-point numbers represented using scientific notation
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
@ -21,27 +19,18 @@ BuildRequires: ghc-bytestring-devel
|
|
|
|
BuildRequires: ghc-deepseq-devel
|
|
|
|
BuildRequires: ghc-deepseq-devel
|
|
|
|
BuildRequires: ghc-hashable-devel
|
|
|
|
BuildRequires: ghc-hashable-devel
|
|
|
|
BuildRequires: ghc-text-devel
|
|
|
|
BuildRequires: ghc-text-devel
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
|
|
|
|
BuildRequires: ghc-smallcheck-devel
|
|
|
|
|
|
|
|
BuildRequires: ghc-tasty-ant-xml-devel
|
|
|
|
|
|
|
|
BuildRequires: ghc-tasty-devel
|
|
|
|
|
|
|
|
BuildRequires: ghc-tasty-hunit-devel
|
|
|
|
|
|
|
|
BuildRequires: ghc-tasty-quickcheck-devel
|
|
|
|
|
|
|
|
BuildRequires: ghc-tasty-smallcheck-devel
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
'Data.Scientific' provides a space efficient and arbitrary precision scientific
|
|
|
|
A 'Scientific' number is an arbitrary-precision floating-point number
|
|
|
|
number type.
|
|
|
|
represented using scientific notation.
|
|
|
|
|
|
|
|
|
|
|
|
A 'Scientific' number is represented with coefficient 'c' and
|
|
|
|
A scientific number with coefficient 'c' and base10Exponent 'e' corresponds
|
|
|
|
base10Exponent 'e' and corresponds to the 'Fractional' number:
|
|
|
|
to the 'Fractional' number: 'fromInteger c * 10 ^^ e'
|
|
|
|
'fromInteger c * 10 ^^ e'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The main application of 'Scientific' is to be used as the target of parsing
|
|
|
|
Its primary use-case is to serve as the target of parsing floating point
|
|
|
|
arbitrary precision numbers coming from an untrusted source.
|
|
|
|
numbers. Since the textual representation of floating point numbers use
|
|
|
|
|
|
|
|
scientific notation they can be efficiently parsed to a 'Scientific' number.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
@ -67,14 +56,6 @@ This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
|
|
|
rm %{buildroot}%{ghc_pkgdocdir}/LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
%cabal test
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
%ghc_pkg_recache
|
|
|
@ -85,16 +66,13 @@ rm %{buildroot}%{ghc_pkgdocdir}/LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%files -f %{name}.files
|
|
|
|
%license LICENSE
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Sep 17 2015 Jens Petersen <petersen@redhat.com> - 0.3.3.8-1
|
|
|
|
|
|
|
|
- update to 0.3.3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3.1-2
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|