BR prof for lib and static for executable

This commit is contained in:
Jens Petersen 2019-08-05 18:31:57 +08:00
parent 67d8c6412c
commit 089b35522a
3 changed files with 39 additions and 23 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/statistics-0.14.0.2.tar.gz
/statistics-0.15.0.0.tar.gz
/dense-linear-algebra-0.1.0.0.tar.gz

View File

@ -1,13 +1,17 @@
# generated by cabal-rpm-1.0.0
# generated by cabal-rpm-1.0.1 --subpackage
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name statistics
%global pkgver %{pkg_name}-%{version}
%global denselinearalgebra dense-linear-algebra-0.1.0.0
%global subpkgs %{denselinearalgebra}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.15.0.0
# can only be reset when all subpkgs bumped
Release: 1%{?dist}
Summary: A library of statistical types, data, and functions
@ -15,31 +19,28 @@ License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{denselinearalgebra}/%{denselinearalgebra}.tar.gz
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
%if %{with haddock}
BuildRequires: ghc-doc
%endif
%if %{with ghc_prof}
BuildRequires: ghc-prof
%endif
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-aeson-devel
BuildRequires: ghc-base-orphans-devel
BuildRequires: ghc-binary-devel
BuildRequires: ghc-data-default-class-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-dense-linear-algebra-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
BuildRequires: ghc-rpm-macros-extra
BuildRequires: ghc-aeson-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-base-orphans-prof
BuildRequires: ghc-binary-prof
BuildRequires: ghc-data-default-class-prof
BuildRequires: ghc-deepseq-prof
#BuildRequires: ghc-dense-linear-algebra-prof
BuildRequires: ghc-math-functions-prof
BuildRequires: ghc-monad-par-prof
BuildRequires: ghc-mwc-random-prof
BuildRequires: ghc-primitive-prof
BuildRequires: ghc-vector-prof
BuildRequires: ghc-vector-algorithms-prof
BuildRequires: ghc-vector-binary-instances-prof
BuildRequires: ghc-vector-th-unbox-prof
BuildRequires: chrpath
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-QuickCheck-devel
@ -74,6 +75,7 @@ autocorrelation analysis.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
%endif
@ -102,21 +104,33 @@ This package provides the Haskell %{pkg_name} profiling library.
%endif
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage %{denselinearalgebra}
%endif
%global version %{main_version}
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
%setup -q -n %{pkgver} -a1
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_libs_build %{subpkgs}
%ghc_lib_build
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_libs_install %{subpkgs}
%ghc_lib_install
%ghc_fix_rpath %{pkgver}
# End cabal-rpm install

View File

@ -1 +1,2 @@
SHA512 (dense-linear-algebra-0.1.0.0.tar.gz) = bcc70b42c3ea59aa3a739e2b189b9a1018d3dc27e65f5016502a2068005f480c296960ba7758a810cb22bfde53b5a597a66a3e1dd7bb732e54fe5daa1be08aa0
SHA512 (statistics-0.15.0.0.tar.gz) = 89b44ab8662308dc17769c47c9791b1b673fd37363483333ef0e005b0e00ec120145ee8a1174d2e5a92fdb6e00fd441e389407cdcbd99c55b6523cc79ba82949