6952281
# generated by cabal-rpm-2.1.0
3ca351c
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
873d718
873d718
%global pkg_name crypto-random
0b8e883
%global pkgver %{pkg_name}-%{version}
873d718
873d718
Name:           ghc-%{pkg_name}
873d718
Version:        0.0.9
7e67ea6
Release:        %autorelease
873d718
Summary:        Simple cryptographic random related types
873d718
6952281
License:        BSD-3-Clause
873d718
Url:            https://hackage.haskell.org/package/%{pkg_name}
e9806f2
# Begin cabal-rpm sources:
0b8e883
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
e9806f2
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
e9806f2
# End cabal-rpm sources
873d718
e9806f2
# Begin cabal-rpm deps:
873d718
BuildRequires:  ghc-Cabal-devel
873d718
BuildRequires:  ghc-rpm-macros
6952281
BuildRequires:  ghc-base-devel
6952281
BuildRequires:  ghc-bytestring-devel
6952281
BuildRequires:  ghc-securemem-devel
6952281
BuildRequires:  ghc-unix-devel
6952281
BuildRequires:  ghc-vector-devel
6952281
%if %{with ghc_prof}
0bfefe0
BuildRequires:  ghc-base-prof
0bfefe0
BuildRequires:  ghc-bytestring-prof
0bfefe0
BuildRequires:  ghc-securemem-prof
0bfefe0
BuildRequires:  ghc-unix-prof
0bfefe0
BuildRequires:  ghc-vector-prof
6952281
%endif
873d718
# End cabal-rpm deps
873d718
873d718
%description
873d718
Simple cryptographic random related types.
873d718
873d718
873d718
%package devel
873d718
Summary:        Haskell %{pkg_name} library development files
873d718
Provides:       %{name}-static = %{version}-%{release}
0bfefe0
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
0b8e883
%if %{defined ghc_version}
873d718
Requires:       ghc-compiler = %{ghc_version}
0b8e883
%endif
873d718
Requires:       %{name}%{?_isa} = %{version}-%{release}
873d718
873d718
%description devel
873d718
This package provides the Haskell %{pkg_name} library development files.
873d718
873d718
ffed369
%if %{with haddock}
ffed369
%package doc
ffed369
Summary:        Haskell %{pkg_name} library documentation
d011967
# the docs are arch dependent
6db79b0
Requires:       ghc-filesystem
ffed369
ffed369
%description doc
ffed369
This package provides the Haskell %{pkg_name} library documentation.
ffed369
%endif
ffed369
ffed369
ffed369
%if %{with ghc_prof}
ffed369
%package prof
ffed369
Summary:        Haskell %{pkg_name} profiling library
ffed369
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
5f21c16
Supplements:    (%{name}-devel and ghc-prof)
ffed369
ffed369
%description prof
ffed369
This package provides the Haskell %{pkg_name} profiling library.
ffed369
%endif
ffed369
ffed369
873d718
%prep
e9806f2
# Begin cabal-rpm setup:
0b8e883
%setup -q -n %{pkgver}
e9806f2
cp -bp %{SOURCE1} %{pkg_name}.cabal
e9806f2
# End cabal-rpm setup
873d718
873d718
873d718
%build
e9806f2
# Begin cabal-rpm build:
873d718
%ghc_lib_build
e9806f2
# End cabal-rpm build
873d718
873d718
873d718
%install
e9806f2
# Begin cabal-rpm install
873d718
%ghc_lib_install
e9806f2
# End cabal-rpm install
873d718
873d718
873d718
%files -f %{name}.files
e9806f2
# Begin cabal-rpm files:
873d718
%license LICENSE
e9806f2
# End cabal-rpm files
873d718
873d718
873d718
%files devel -f %{name}-devel.files
873d718
873d718
ffed369
%if %{with haddock}
ffed369
%files doc -f %{name}-doc.files
5f21c16
%license LICENSE
ffed369
%endif
ffed369
ffed369
ffed369
%if %{with ghc_prof}
ffed369
%files prof -f %{name}-prof.files
ffed369
%endif
ffed369
ffed369
873d718
%changelog
7e67ea6
%autochangelog