2018-07-28 15:53:29 +00:00
|
|
|
# generated by cabal-rpm-0.12.5
|
2017-12-14 20:22:01 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
%global pkg_name statistics
|
|
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
Version: 0.14.0.2
|
2019-01-31 22:02:41 +00:00
|
|
|
Release: 7%{?dist}
|
2017-12-14 20:22:01 +00:00
|
|
|
Summary: A library of statistical types, data, and functions
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
2018-07-28 15:53:29 +00:00
|
|
|
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
2017-12-14 20:22:01 +00:00
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
BuildRequires: ghc-aeson-devel
|
|
|
|
BuildRequires: ghc-base-orphans-devel
|
|
|
|
BuildRequires: ghc-binary-devel
|
|
|
|
BuildRequires: ghc-deepseq-devel
|
|
|
|
BuildRequires: ghc-erf-devel
|
|
|
|
BuildRequires: ghc-math-functions-devel
|
|
|
|
BuildRequires: ghc-monad-par-devel
|
|
|
|
BuildRequires: ghc-mwc-random-devel
|
|
|
|
BuildRequires: ghc-primitive-devel
|
|
|
|
BuildRequires: ghc-vector-algorithms-devel
|
|
|
|
BuildRequires: ghc-vector-binary-instances-devel
|
|
|
|
BuildRequires: ghc-vector-devel
|
|
|
|
BuildRequires: ghc-vector-th-unbox-devel
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-HUnit-devel
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
BuildRequires: ghc-ieee754-devel
|
|
|
|
BuildRequires: ghc-test-framework-devel
|
|
|
|
BuildRequires: ghc-test-framework-hunit-devel
|
|
|
|
BuildRequires: ghc-test-framework-quickcheck2-devel
|
|
|
|
%endif
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description
|
|
|
|
This library provides a number of common functions and types useful in
|
|
|
|
statistics. We focus on high performance, numerical robustness, and use of good
|
|
|
|
algorithms. Where possible, we provide references to the statistical
|
|
|
|
literature.
|
|
|
|
|
|
|
|
The library's facilities can be divided into four broad categories:
|
|
|
|
|
|
|
|
* Working with widely used discrete and continuous probability distributions.
|
|
|
|
(There are dozens of exotic distributions in use; we focus on the most common.)
|
|
|
|
|
|
|
|
* Computing with sample data: quantile estimation, kernel density estimation,
|
|
|
|
histograms, bootstrap methods, significance testing, and regression and
|
|
|
|
autocorrelation analysis.
|
|
|
|
|
|
|
|
* Random variate generation under several different distributions.
|
|
|
|
|
|
|
|
* Common statistical tests for significant differences between samples.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
2018-01-24 13:12:02 +00:00
|
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
|
|
%if %{defined ghc_version}
|
2017-12-14 20:22:01 +00:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2018-01-24 13:12:02 +00:00
|
|
|
%endif
|
2017-12-14 20:22:01 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel-doc
|
|
|
|
Summary: Haskell %{pkg_name} library development documentation
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
This package provides the Haskell %{pkg_name} library development
|
|
|
|
documentation.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkgver}
|
2018-07-28 15:53:29 +00:00
|
|
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
2017-12-14 20:22:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
|
2018-09-13 10:01:15 +00:00
|
|
|
%if %{undefined without_haddock}
|
2017-12-14 20:22:01 +00:00
|
|
|
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
|
2018-09-13 10:01:15 +00:00
|
|
|
%endif
|
2017-12-14 20:22:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%cabal_test
|
|
|
|
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel-nodoc.files
|
|
|
|
%doc README.markdown changelog.md
|
|
|
|
|
|
|
|
|
2018-09-13 10:01:15 +00:00
|
|
|
%if %{undefined without_haddock}
|
2017-12-14 20:22:01 +00:00
|
|
|
%files devel-doc -f %{name}-devel-doc.files
|
|
|
|
%doc README.markdown examples
|
2018-09-13 10:01:15 +00:00
|
|
|
%endif
|
2017-12-14 20:22:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2019-01-31 22:02:41 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-28 15:53:29 +00:00
|
|
|
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 0.14.0.2-6
|
|
|
|
- revise .cabal
|
|
|
|
|
2018-07-13 02:08:47 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-07 12:10:32 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-26 10:57:35 +00:00
|
|
|
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 0.14.0.2-3
|
|
|
|
- rebuild
|
|
|
|
|
2017-12-18 20:52:33 +00:00
|
|
|
* Mon Dec 04 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.14.0.2-2
|
2017-12-14 20:22:01 +00:00
|
|
|
- Split documentation into separate subpackage.
|
|
|
|
|
|
|
|
* Sat Nov 18 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.14.0.2-1
|
|
|
|
- spec file generated by cabal-rpm-0.11.2
|