BR prof for lib and static for executable
This commit is contained in:
parent
59ac40279c
commit
b0876dcf22
@ -1,9 +1,11 @@
|
|||||||
# generated by cabal-rpm-1.0.0
|
# generated by cabal-rpm-1.0.1
|
||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
|
|
||||||
%global pkg_name random
|
%global pkg_name random
|
||||||
%global pkgver %{pkg_name}-%{version}
|
%global pkgver %{pkg_name}-%{version}
|
||||||
|
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 1.1
|
Version: 1.1
|
||||||
Release: 12%{?dist}
|
Release: 12%{?dist}
|
||||||
@ -18,14 +20,9 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#
|
|||||||
|
|
||||||
# Begin cabal-rpm deps:
|
# Begin cabal-rpm deps:
|
||||||
BuildRequires: ghc-Cabal-devel
|
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-rpm-macros
|
||||||
BuildRequires: ghc-time-devel
|
BuildRequires: ghc-base-prof
|
||||||
|
BuildRequires: ghc-time-prof
|
||||||
# End cabal-rpm deps
|
# End cabal-rpm deps
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -36,6 +33,7 @@ ability to split random number generators.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Haskell %{pkg_name} library development files
|
Summary: Haskell %{pkg_name} library development files
|
||||||
Provides: %{name}-static = %{version}-%{release}
|
Provides: %{name}-static = %{version}-%{release}
|
||||||
|
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
||||||
%if %{defined ghc_version}
|
%if %{defined ghc_version}
|
||||||
Requires: ghc-compiler = %{ghc_version}
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
%endif
|
%endif
|
||||||
@ -83,6 +81,10 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal
|
|||||||
# End cabal-rpm install
|
# End cabal-rpm install
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%cabal_test
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
# Begin cabal-rpm files:
|
# Begin cabal-rpm files:
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user