ffd621b
# generated by cabal-rpm-2.1.0
a504955
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
efb81a6
efb81a6
%global pkg_name x509-validation
efb81a6
%global pkgver %{pkg_name}-%{version}
efb81a6
a388eed
%bcond_with tests
a388eed
efb81a6
Name:           ghc-%{pkg_name}
233b3d2
Version:        1.6.12
be15114
Release:        %autorelease
efb81a6
Summary:        X.509 Certificate and CRL validation
efb81a6
ffd621b
License:        BSD-3-Clause
efb81a6
Url:            https://hackage.haskell.org/package/%{pkg_name}
9be007b
# Begin cabal-rpm sources:
efb81a6
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
9be007b
# End cabal-rpm sources
efb81a6
9be007b
# Begin cabal-rpm deps:
efb81a6
BuildRequires:  ghc-Cabal-devel
efb81a6
BuildRequires:  ghc-rpm-macros
ffd621b
BuildRequires:  ghc-asn1-encoding-devel
ffd621b
BuildRequires:  ghc-asn1-types-devel
ffd621b
BuildRequires:  ghc-base-devel
ffd621b
BuildRequires:  ghc-bytestring-devel
ffd621b
BuildRequires:  ghc-containers-devel
ffd621b
BuildRequires:  ghc-cryptonite-devel
ffd621b
BuildRequires:  ghc-data-default-class-devel
ffd621b
BuildRequires:  ghc-hourglass-devel
ffd621b
BuildRequires:  ghc-memory-devel
ffd621b
BuildRequires:  ghc-mtl-devel
ffd621b
BuildRequires:  ghc-pem-devel
ffd621b
BuildRequires:  ghc-x509-devel
ffd621b
BuildRequires:  ghc-x509-store-devel
ffd621b
%if %{with ghc_prof}
7021e70
BuildRequires:  ghc-asn1-encoding-prof
7021e70
BuildRequires:  ghc-asn1-types-prof
7021e70
BuildRequires:  ghc-base-prof
7021e70
BuildRequires:  ghc-bytestring-prof
7021e70
BuildRequires:  ghc-containers-prof
7021e70
BuildRequires:  ghc-cryptonite-prof
7021e70
BuildRequires:  ghc-data-default-class-prof
7021e70
BuildRequires:  ghc-hourglass-prof
7021e70
BuildRequires:  ghc-memory-prof
7021e70
BuildRequires:  ghc-mtl-prof
7021e70
BuildRequires:  ghc-pem-prof
7021e70
BuildRequires:  ghc-x509-prof
7021e70
BuildRequires:  ghc-x509-store-prof
ffd621b
%endif
a388eed
%if %{with tests}
a388eed
BuildRequires:  ghc-tasty-devel
a388eed
BuildRequires:  ghc-tasty-hunit-devel
a388eed
%endif
efb81a6
# End cabal-rpm deps
efb81a6
efb81a6
%description
7a25e9c
X.509 Certificate and CRL validation. please see README.
efb81a6
efb81a6
efb81a6
%package devel
efb81a6
Summary:        Haskell %{pkg_name} library development files
efb81a6
Provides:       %{name}-static = %{version}-%{release}
7021e70
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
6b76ce1
%if %{defined ghc_version}
efb81a6
Requires:       ghc-compiler = %{ghc_version}
6b76ce1
%endif
efb81a6
Requires:       %{name}%{?_isa} = %{version}-%{release}
efb81a6
efb81a6
%description devel
efb81a6
This package provides the Haskell %{pkg_name} library development
efb81a6
files.
efb81a6
efb81a6
a388eed
%if %{with haddock}
a388eed
%package doc
a388eed
Summary:        Haskell %{pkg_name} library documentation
c5b8b51
BuildArch:      noarch
112e08c
Requires:       ghc-filesystem
a388eed
a388eed
%description doc
a388eed
This package provides the Haskell %{pkg_name} library documentation.
a388eed
%endif
a388eed
a388eed
a388eed
%if %{with ghc_prof}
a388eed
%package prof
a388eed
Summary:        Haskell %{pkg_name} profiling library
a388eed
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
c5b8b51
Supplements:    (%{name}-devel and ghc-prof)
a388eed
a388eed
%description prof
a388eed
This package provides the Haskell %{pkg_name} profiling library.
a388eed
%endif
a388eed
a388eed
efb81a6
%prep
9be007b
# Begin cabal-rpm setup:
efb81a6
%setup -q -n %{pkgver}
9be007b
# End cabal-rpm setup
efb81a6
efb81a6
efb81a6
%build
9be007b
# Begin cabal-rpm build:
efb81a6
%ghc_lib_build
9be007b
# End cabal-rpm build
efb81a6
efb81a6
efb81a6
%install
9be007b
# Begin cabal-rpm install
efb81a6
%ghc_lib_install
9be007b
# End cabal-rpm install
efb81a6
efb81a6
a388eed
%check
112e08c
%if %{with tests}
a388eed
%cabal_test
112e08c
%endif
efb81a6
efb81a6
efb81a6
%files -f %{name}.files
9be007b
# Begin cabal-rpm files:
efb81a6
%license LICENSE
9be007b
# End cabal-rpm files
efb81a6
efb81a6
efb81a6
%files devel -f %{name}-devel.files
efb81a6
efb81a6
a388eed
%if %{with haddock}
a388eed
%files doc -f %{name}-doc.files
c5b8b51
%license LICENSE
a388eed
%endif
a388eed
a388eed
a388eed
%if %{with ghc_prof}
a388eed
%files prof -f %{name}-prof.files
a388eed
%endif
a388eed
a388eed
efb81a6
%changelog
be15114
%autochangelog