Blame SPECS/ghc-cryptohash-sha256.spec

fb94b4
# generated by cabal-rpm-0.12.1
fb94b4
# https://fedoraproject.org/wiki/Packaging:Haskell
fb94b4
fb94b4
%global pkg_name cryptohash-sha256
fb94b4
%global pkgver %{pkg_name}-%{version}
fb94b4
fb94b4
%bcond_with tests
fb94b4
fb94b4
Name:           ghc-%{pkg_name}
fb94b4
Version:        0.11.101.0
fb94b4
Release:        2%{?dist}
fb94b4
Summary:        Fast, pure and practical SHA-256 implementation
fb94b4
fb94b4
License:        BSD
fb94b4
Url:            https://hackage.haskell.org/package/%{pkg_name}
fb94b4
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
fb94b4
fb94b4
BuildRequires:  ghc-Cabal-devel
fb94b4
BuildRequires:  ghc-rpm-macros
fb94b4
# Begin cabal-rpm deps:
fb94b4
BuildRequires:  ghc-bytestring-devel
fb94b4
%if %{with tests}
fb94b4
BuildRequires:  ghc-SHA-devel
fb94b4
BuildRequires:  ghc-base16-bytestring-devel
fb94b4
BuildRequires:  ghc-tasty-devel
fb94b4
BuildRequires:  ghc-tasty-hunit-devel
fb94b4
BuildRequires:  ghc-tasty-quickcheck-devel
fb94b4
%endif
fb94b4
# End cabal-rpm deps
fb94b4
fb94b4
%description
fb94b4
A practical incremental and one-pass, pure API to the SHA-256 hash algorithm
fb94b4
(including HMAC support) with performance close to the fastest implementations
fb94b4
available in other languages.
fb94b4
fb94b4
NOTE: This package has been forked off 'cryptohash-0.11.7' because the
fb94b4
'cryptohash' package has been deprecated and so this package continues to
fb94b4
satisfy the need for a lightweight package providing the SHA256 hash algorithm
fb94b4
without any dependencies on packages other than 'base' and 'bytestring'.
fb94b4
fb94b4
Consequently, this package can be used as a drop-in replacement for
fb94b4
cryptohash's "Crypto.Hash.SHA256" module, though with a clearly smaller
fb94b4
footprint.
fb94b4
fb94b4
fb94b4
%package devel
fb94b4
Summary:        Haskell %{pkg_name} library development files
fb94b4
Provides:       %{name}-static = %{version}-%{release}
fb94b4
Provides:       %{name}-doc = %{version}-%{release}
fb94b4
%if %{defined ghc_version}
fb94b4
Requires:       ghc-compiler = %{ghc_version}
fb94b4
Requires(post): ghc-compiler = %{ghc_version}
fb94b4
Requires(postun): ghc-compiler = %{ghc_version}
fb94b4
%endif
fb94b4
Requires:       %{name}%{?_isa} = %{version}-%{release}
fb94b4
fb94b4
%description devel
fb94b4
This package provides the Haskell %{pkg_name} library development
fb94b4
files.
fb94b4
fb94b4
fb94b4
%prep
fb94b4
%setup -q -n %{pkgver}
fb94b4
fb94b4
fb94b4
%build
fb94b4
%ghc_lib_build
fb94b4
fb94b4
fb94b4
%install
fb94b4
%ghc_lib_install
fb94b4
fb94b4
fb94b4
%check
fb94b4
%cabal_test
fb94b4
fb94b4
fb94b4
%post devel
fb94b4
%ghc_pkg_recache
fb94b4
fb94b4
fb94b4
%postun devel
fb94b4
%ghc_pkg_recache
fb94b4
fb94b4
fb94b4
%files -f %{name}.files
fb94b4
%license LICENSE
fb94b4
fb94b4
fb94b4
%files devel -f %{name}-devel.files
fb94b4
%doc changelog.md
fb94b4
fb94b4
fb94b4
%changelog
fb94b4
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.101.0-2
fb94b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fb94b4
fb94b4
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 0.11.101.0-1
fb94b4
- update to 0.11.101.0
fb94b4
fb94b4
* Fri Oct 6 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.11.100.1-6
fb94b4
- Bump release to be newer than existing bundled version.
fb94b4
fb94b4
* Thu Oct  5 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.11.100.1-1
fb94b4
- spec file generated by cabal-rpm-0.11.2