f670111
# generated by cabal-rpm-2.1.0
e0a841b
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
df02c78
df02c78
%global pkg_name crypto-pubkey-types
df02c78
%global pkgver %{pkg_name}-%{version}
df02c78
df02c78
Name:           ghc-%{pkg_name}
df02c78
Version:        0.4.3
e497e69
Release:        %autorelease
df02c78
Summary:        Generic cryptography Public keys algorithm types
df02c78
f670111
License:        BSD-3-Clause
df02c78
Url:            https://hackage.haskell.org/package/%{pkg_name}
0858781
# Begin cabal-rpm sources:
df02c78
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
0858781
# End cabal-rpm sources
df02c78
0858781
# Begin cabal-rpm deps:
df02c78
BuildRequires:  ghc-Cabal-devel
df02c78
BuildRequires:  ghc-rpm-macros
f670111
BuildRequires:  ghc-asn1-encoding-devel
f670111
BuildRequires:  ghc-asn1-types-devel
f670111
BuildRequires:  ghc-base-devel
f670111
%if %{with ghc_prof}
13b3bae
BuildRequires:  ghc-asn1-encoding-prof
13b3bae
BuildRequires:  ghc-asn1-types-prof
13b3bae
BuildRequires:  ghc-base-prof
f670111
%endif
df02c78
# End cabal-rpm deps
df02c78
df02c78
%description
df02c78
Generic cryptography public keys algorithm types.
df02c78
df02c78
df02c78
%package devel
df02c78
Summary:        Haskell %{pkg_name} library development files
df02c78
Provides:       %{name}-static = %{version}-%{release}
13b3bae
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
334a0f5
%if %{defined ghc_version}
df02c78
Requires:       ghc-compiler = %{ghc_version}
334a0f5
%endif
df02c78
Requires:       %{name}%{?_isa} = %{version}-%{release}
df02c78
df02c78
%description devel
df02c78
This package provides the Haskell %{pkg_name} library development
df02c78
files.
df02c78
df02c78
4bcf188
%if %{with haddock}
4bcf188
%package doc
4bcf188
Summary:        Haskell %{pkg_name} library documentation
ac1fa0d
BuildArch:      noarch
967a687
Requires:       ghc-filesystem
4bcf188
4bcf188
%description doc
4bcf188
This package provides the Haskell %{pkg_name} library
4bcf188
documentation.
4bcf188
%endif
4bcf188
4bcf188
4bcf188
%if %{with ghc_prof}
4bcf188
%package prof
4bcf188
Summary:        Haskell %{pkg_name} profiling library
4bcf188
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
ac1fa0d
Supplements:    (%{name}-devel and ghc-prof)
4bcf188
4bcf188
%description prof
4bcf188
This package provides the Haskell %{pkg_name} profiling library.
4bcf188
%endif
4bcf188
4bcf188
df02c78
%prep
0858781
# Begin cabal-rpm setup:
df02c78
%setup -q -n %{pkgver}
0858781
# End cabal-rpm setup
df02c78
df02c78
df02c78
%build
0858781
# Begin cabal-rpm build:
df02c78
%ghc_lib_build
0858781
# End cabal-rpm build
df02c78
df02c78
df02c78
%install
0858781
# Begin cabal-rpm install
df02c78
%ghc_lib_install
0858781
# End cabal-rpm install
df02c78
df02c78
df02c78
%files -f %{name}.files
0858781
# Begin cabal-rpm files:
df02c78
%license LICENSE
0858781
# End cabal-rpm files
df02c78
df02c78
df02c78
%files devel -f %{name}-devel.files
df02c78
df02c78
4bcf188
%if %{with haddock}
4bcf188
%files doc -f %{name}-doc.files
ac1fa0d
%license LICENSE
4bcf188
%endif
4bcf188
4bcf188
4bcf188
%if %{with ghc_prof}
4bcf188
%files prof -f %{name}-prof.files
4bcf188
%endif
4bcf188
4bcf188
df02c78
%changelog
e497e69
%autochangelog