BR prof for lib and static for executable

This commit is contained in:
Jens Petersen 2019-08-05 18:28:09 +08:00
parent d657ec8d76
commit 018ad8fd7b
1 changed files with 9 additions and 7 deletions

View File

@ -1,9 +1,11 @@
# generated by cabal-rpm-1.0.0
# generated by cabal-rpm-1.0.1
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name code-page
%global pkgver %{pkg_name}-%{version}
%bcond_without tests
Name: ghc-%{pkg_name}
Version: 0.2
Release: 1%{?dist}
@ -17,13 +19,8 @@ Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
# 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-base-prof
# End cabal-rpm deps
%description
@ -40,6 +37,7 @@ exports nothing.
%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
@ -86,6 +84,10 @@ This package provides the Haskell %{pkg_name} profiling library.
# End cabal-rpm install
%check
%cabal_test
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE