2023-01-21 18:02:00 +00:00
|
|
|
# generated by cabal-rpm-2.1.0
|
2020-06-04 11:26:36 +00:00
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
2017-10-06 22:33:47 +00:00
|
|
|
|
|
|
|
%global pkg_name hackage-security
|
|
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
|
2020-06-03 11:14:22 +00:00
|
|
|
# deps bounds
|
2017-10-06 22:33:47 +00:00
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
2023-01-22 16:11:20 +00:00
|
|
|
Version: 0.6.2.3
|
2023-02-16 05:24:41 +00:00
|
|
|
Release: %autorelease
|
2017-10-06 22:33:47 +00:00
|
|
|
Summary: Hackage security library
|
|
|
|
|
2023-01-21 18:02:00 +00:00
|
|
|
License: BSD-3-Clause
|
2017-10-06 22:33:47 +00:00
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
2019-02-17 14:44:56 +00:00
|
|
|
# Begin cabal-rpm sources:
|
2017-10-06 22:33:47 +00:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
2019-02-17 14:44:56 +00:00
|
|
|
# End cabal-rpm sources
|
2023-01-22 16:11:20 +00:00
|
|
|
Patch0: hackage-security-no-Cabal-syntax.patch
|
2017-10-06 22:33:47 +00:00
|
|
|
|
2019-02-17 14:44:56 +00:00
|
|
|
# Begin cabal-rpm deps:
|
2017-10-06 22:33:47 +00:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2023-01-21 18:02:00 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2023-01-22 16:11:20 +00:00
|
|
|
#BuildRequires: ghc-Cabal-syntax-devel
|
2023-01-21 18:02:00 +00:00
|
|
|
BuildRequires: ghc-base-devel
|
|
|
|
BuildRequires: ghc-base16-bytestring-devel
|
|
|
|
BuildRequires: ghc-base64-bytestring-devel
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-cryptohash-sha256-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-ed25519-devel
|
|
|
|
BuildRequires: ghc-filepath-devel
|
|
|
|
BuildRequires: ghc-lukko-devel
|
|
|
|
BuildRequires: ghc-mtl-devel
|
|
|
|
BuildRequires: ghc-network-devel
|
|
|
|
BuildRequires: ghc-network-uri-devel
|
|
|
|
BuildRequires: ghc-parsec-devel
|
|
|
|
BuildRequires: ghc-pretty-devel
|
|
|
|
BuildRequires: ghc-tar-devel
|
|
|
|
BuildRequires: ghc-template-haskell-devel
|
|
|
|
BuildRequires: ghc-time-devel
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
BuildRequires: ghc-zlib-devel
|
|
|
|
%if %{with ghc_prof}
|
2019-08-05 10:29:30 +00:00
|
|
|
BuildRequires: ghc-Cabal-prof
|
2023-02-17 04:38:50 +00:00
|
|
|
#BuildRequires: ghc-Cabal-syntax-prof
|
2019-08-05 10:29:30 +00:00
|
|
|
BuildRequires: ghc-base-prof
|
|
|
|
BuildRequires: ghc-base16-bytestring-prof
|
|
|
|
BuildRequires: ghc-base64-bytestring-prof
|
|
|
|
BuildRequires: ghc-bytestring-prof
|
|
|
|
BuildRequires: ghc-containers-prof
|
|
|
|
BuildRequires: ghc-cryptohash-sha256-prof
|
|
|
|
BuildRequires: ghc-directory-prof
|
|
|
|
BuildRequires: ghc-ed25519-prof
|
|
|
|
BuildRequires: ghc-filepath-prof
|
2020-06-23 16:03:29 +00:00
|
|
|
BuildRequires: ghc-lukko-prof
|
2019-08-05 10:29:30 +00:00
|
|
|
BuildRequires: ghc-mtl-prof
|
|
|
|
BuildRequires: ghc-network-prof
|
|
|
|
BuildRequires: ghc-network-uri-prof
|
|
|
|
BuildRequires: ghc-parsec-prof
|
|
|
|
BuildRequires: ghc-pretty-prof
|
|
|
|
BuildRequires: ghc-tar-prof
|
|
|
|
BuildRequires: ghc-template-haskell-prof
|
|
|
|
BuildRequires: ghc-time-prof
|
|
|
|
BuildRequires: ghc-transformers-prof
|
|
|
|
BuildRequires: ghc-zlib-prof
|
2023-01-21 18:02:00 +00:00
|
|
|
%endif
|
2017-10-06 22:33:47 +00:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
2020-06-23 16:03:29 +00:00
|
|
|
BuildRequires: ghc-aeson-devel
|
2017-10-06 22:33:47 +00:00
|
|
|
BuildRequires: ghc-tasty-devel
|
|
|
|
BuildRequires: ghc-tasty-hunit-devel
|
|
|
|
BuildRequires: ghc-tasty-quickcheck-devel
|
|
|
|
BuildRequires: ghc-temporary-devel
|
2022-06-07 05:37:35 +00:00
|
|
|
BuildRequires: ghc-text-devel
|
2020-06-23 16:03:29 +00:00
|
|
|
BuildRequires: ghc-unordered-containers-devel
|
|
|
|
BuildRequires: ghc-vector-devel
|
2017-10-06 22:33:47 +00:00
|
|
|
%endif
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description
|
|
|
|
The hackage security library provides both server and client utilities for
|
|
|
|
securing the Hackage package server (https://hackage.haskell.org/). It is
|
|
|
|
based on The Update Framework (https://theupdateframework.com/), a set of
|
|
|
|
recommendations developed by security researchers at various universities in
|
|
|
|
the US as well as developers on the Tor project (https://www.torproject.org/).
|
|
|
|
|
|
|
|
The current implementation supports only index signing, thereby enabling
|
|
|
|
untrusted mirrors. It does not yet provide facilities for author package
|
|
|
|
signing.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
2019-08-05 10:29:30 +00:00
|
|
|
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
2018-01-24 13:11:13 +00:00
|
|
|
%if %{defined ghc_version}
|
2017-10-06 22:33:47 +00:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
2018-01-24 13:11:13 +00:00
|
|
|
%endif
|
2017-10-06 22:33:47 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
2019-07-25 04:23:33 +00:00
|
|
|
This package provides the Haskell %{pkg_name} library development
|
|
|
|
files.
|
2017-10-06 22:33:47 +00:00
|
|
|
|
|
|
|
|
2019-07-25 04:23:33 +00:00
|
|
|
%if %{with haddock}
|
|
|
|
%package doc
|
|
|
|
Summary: Haskell %{pkg_name} library documentation
|
2020-02-08 14:50:19 +00:00
|
|
|
BuildArch: noarch
|
2021-05-04 11:18:47 +00:00
|
|
|
Requires: ghc-filesystem
|
2017-10-06 22:33:47 +00:00
|
|
|
|
2019-07-25 04:23:33 +00:00
|
|
|
%description doc
|
|
|
|
This package provides the Haskell %{pkg_name} library documentation.
|
|
|
|
%endif
|
2017-10-06 22:33:47 +00:00
|
|
|
|
2019-07-25 04:23:33 +00:00
|
|
|
|
|
|
|
%if %{with ghc_prof}
|
|
|
|
%package prof
|
|
|
|
Summary: Haskell %{pkg_name} profiling library
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
2020-02-08 14:50:19 +00:00
|
|
|
Supplements: (%{name}-devel and ghc-prof)
|
2019-07-25 04:23:33 +00:00
|
|
|
|
|
|
|
%description prof
|
|
|
|
This package provides the Haskell %{pkg_name} profiling library.
|
|
|
|
%endif
|
2017-10-06 22:33:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2019-02-17 14:44:56 +00:00
|
|
|
# Begin cabal-rpm setup:
|
2017-10-06 22:33:47 +00:00
|
|
|
%setup -q -n %{pkgver}
|
2019-02-17 14:44:56 +00:00
|
|
|
# End cabal-rpm setup
|
2022-06-07 05:37:35 +00:00
|
|
|
%patch0 -p1 -b .orig
|
2018-01-26 08:53:34 +00:00
|
|
|
|
2017-10-06 22:33:47 +00:00
|
|
|
|
|
|
|
%build
|
2019-02-17 14:44:56 +00:00
|
|
|
# Begin cabal-rpm build:
|
2017-10-06 22:33:47 +00:00
|
|
|
%ghc_lib_build
|
2019-02-17 14:44:56 +00:00
|
|
|
# End cabal-rpm build
|
2017-10-06 22:33:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2019-02-17 14:44:56 +00:00
|
|
|
# Begin cabal-rpm install
|
2017-10-06 22:33:47 +00:00
|
|
|
%ghc_lib_install
|
2019-02-17 14:44:56 +00:00
|
|
|
# End cabal-rpm install
|
2017-10-06 22:33:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2019-02-17 14:44:56 +00:00
|
|
|
# Begin cabal-rpm files:
|
2017-10-06 22:33:47 +00:00
|
|
|
%license LICENSE
|
2019-02-17 14:44:56 +00:00
|
|
|
# End cabal-rpm files
|
2017-10-06 22:33:47 +00:00
|
|
|
|
|
|
|
|
2019-07-25 04:23:33 +00:00
|
|
|
%files devel -f %{name}-devel.files
|
2017-10-06 22:33:47 +00:00
|
|
|
%doc ChangeLog.md
|
|
|
|
|
|
|
|
|
2019-07-25 04:23:33 +00:00
|
|
|
%if %{with haddock}
|
|
|
|
%files doc -f %{name}-doc.files
|
2020-02-08 14:50:19 +00:00
|
|
|
%license LICENSE
|
2019-07-25 04:23:33 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with ghc_prof}
|
|
|
|
%files prof -f %{name}-prof.files
|
2018-09-13 09:48:16 +00:00
|
|
|
%endif
|
2017-10-06 22:33:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-02-16 05:24:41 +00:00
|
|
|
%autochangelog
|