Blame SPECS/ghc-hackage-security.spec

55998b
# generated by cabal-rpm-0.12.1
55998b
# https://fedoraproject.org/wiki/Packaging:Haskell
55998b
55998b
%global pkg_name hackage-security
55998b
%global pkgver %{pkg_name}-%{version}
55998b
55998b
%bcond_with tests
55998b
55998b
Name:           ghc-%{pkg_name}
55998b
Version:        0.5.2.2
55998b
Release:        8%{?dist}
55998b
Summary:        Hackage security library
55998b
55998b
License:        BSD
55998b
Url:            https://hackage.haskell.org/package/%{pkg_name}
55998b
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
55998b
55998b
BuildRequires:  ghc-Cabal-devel
55998b
BuildRequires:  ghc-rpm-macros
55998b
# Begin cabal-rpm deps:
55998b
BuildRequires:  ghc-base16-bytestring-devel
55998b
BuildRequires:  ghc-base64-bytestring-devel
55998b
BuildRequires:  ghc-bytestring-devel
55998b
BuildRequires:  ghc-containers-devel
55998b
BuildRequires:  ghc-cryptohash-sha256-devel
55998b
BuildRequires:  ghc-directory-devel
55998b
BuildRequires:  ghc-ed25519-devel
55998b
BuildRequires:  ghc-filepath-devel
55998b
BuildRequires:  ghc-mtl-devel
55998b
BuildRequires:  ghc-network-devel
55998b
BuildRequires:  ghc-network-uri-devel
55998b
BuildRequires:  ghc-parsec-devel
55998b
BuildRequires:  ghc-pretty-devel
55998b
BuildRequires:  ghc-tar-devel
55998b
BuildRequires:  ghc-template-haskell-devel
55998b
BuildRequires:  ghc-time-devel
55998b
BuildRequires:  ghc-transformers-devel
55998b
BuildRequires:  ghc-zlib-devel
55998b
%if %{with tests}
55998b
BuildRequires:  ghc-HUnit-devel
55998b
BuildRequires:  ghc-QuickCheck-devel
55998b
BuildRequires:  ghc-tasty-devel
55998b
BuildRequires:  ghc-tasty-hunit-devel
55998b
BuildRequires:  ghc-tasty-quickcheck-devel
55998b
BuildRequires:  ghc-temporary-devel
55998b
%endif
55998b
# End cabal-rpm deps
55998b
55998b
%description
55998b
The hackage security library provides both server and client utilities for
55998b
securing the Hackage package server (https://hackage.haskell.org/). It is
55998b
based on The Update Framework (https://theupdateframework.com/), a set of
55998b
recommendations developed by security researchers at various universities in
55998b
the US as well as developers on the Tor project (https://www.torproject.org/).
55998b
55998b
The current implementation supports only index signing, thereby enabling
55998b
untrusted mirrors. It does not yet provide facilities for author package
55998b
signing.
55998b
55998b
55998b
%package devel
55998b
Summary:        Haskell %{pkg_name} library development files
55998b
Provides:       %{name}-static = %{version}-%{release}
55998b
Provides:       %{name}-doc = %{version}-%{release}
55998b
%if %{defined ghc_version}
55998b
Requires:       ghc-compiler = %{ghc_version}
55998b
Requires(post): ghc-compiler = %{ghc_version}
55998b
Requires(postun): ghc-compiler = %{ghc_version}
55998b
%endif
55998b
Requires:       %{name}%{?_isa} = %{version}-%{release}
55998b
55998b
%description devel
55998b
This package provides the Haskell %{pkg_name} library development files.
55998b
55998b
55998b
%package devel-doc
55998b
Summary:        Haskell %{pkg_name} library development documentation
55998b
55998b
BuildArch:      noarch
55998b
55998b
%description devel-doc
55998b
This package provides the Haskell %{pkg_name} library development
55998b
documentation.
55998b
55998b
55998b
%prep
55998b
%setup -q -n %{pkgver}
55998b
55998b
# https://hackage.haskell.org/package/hackage-security-0.5.2.2/revisions/
55998b
cabal-tweak-dep-ver directory 1.3 1.4
55998b
cabal-tweak-dep-ver Cabal '< 1.26' '< 2.1'
55998b
cabal-tweak-dep-ver time '< 1.7' '< 1.9'
55998b
55998b
55998b
%build
55998b
%ghc_lib_build
55998b
55998b
55998b
%install
55998b
%ghc_lib_install
55998b
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
55998b
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
55998b
55998b
55998b
%check
55998b
%cabal_test
55998b
55998b
55998b
%post devel
55998b
%ghc_pkg_recache
55998b
55998b
55998b
%postun devel
55998b
%ghc_pkg_recache
55998b
55998b
55998b
%files -f %{name}.files
55998b
%license LICENSE
55998b
55998b
55998b
%files devel -f %{name}-devel-nodoc.files
55998b
%doc ChangeLog.md
55998b
55998b
55998b
%files devel-doc -f %{name}-devel-doc.files
55998b
%doc ChangeLog.md
55998b
55998b
55998b
%changelog
55998b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2.2-8
55998b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
55998b
55998b
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 0.5.2.2-7
55998b
- rebuild
55998b
55998b
* Fri Oct 6 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.5.2.2-6
55998b
- Bump release to be newer than existing bundled version.
55998b
55998b
* Thu Oct 5 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.5.2.2-2
55998b
- Split documentation into separate subpackage.
55998b
55998b
* Thu Oct  5 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.5.2.2-1
55998b
- spec file generated by cabal-rpm-0.11.2