ghc-cryptonite/ghc-cryptonite.spec

171 lines
4.7 KiB
RPMSpec
Raw Normal View History

2018-07-28 09:29:43 +00:00
# generated by cabal-rpm-0.12.5
2017-09-06 19:29:40 +00:00
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name cryptonite
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
2018-07-28 09:29:43 +00:00
Version: 0.25
Release: 2%{?dist}
2017-09-06 19:29:40 +00:00
Summary: Cryptography Primitives sink
# Main - Argon2 C code - Blake2 C code
License: BSD and (CC0 or ASL 2.0) and (CC0 or ASL 2.0 or OpenSSL)
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
2018-07-28 09:29:43 +00:00
BuildRequires: ghc-basement-devel
2017-09-06 19:29:40 +00:00
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-memory-devel
2018-07-28 09:29:43 +00:00
BuildRequires: glibc-devel
2017-09-06 19:29:40 +00:00
%if %{with tests}
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-kat-devel
BuildRequires: ghc-tasty-quickcheck-devel
%endif
# End cabal-rpm deps
%description
A repository of cryptographic primitives.
2018-07-28 09:29:43 +00:00
* Symmetric ciphers: AES, DES, 3DES, CAST5, Blowfish, Twofish, Camellia, RC4,
Salsa, XSalsa, ChaCha.
2017-09-06 19:29:40 +00:00
* Hash: SHA1, SHA2, SHA3, SHAKE, MD2, MD4, MD5, Keccak, Skein, Ripemd, Tiger,
Whirlpool, Blake2
* MAC: HMAC, Poly1305
* Asymmetric crypto: DSA, RSA, DH, ECDH, ECDSA, ECC, Curve25519, Curve448,
Ed25519, Ed448
* Key Derivation Function: PBKDF2, Scrypt, HKDF, Argon2
* Cryptographic Random generation: System Entropy, Deterministic Random
Generator
* Data related: Anti-Forensic Information Splitter (AFIS)
If anything cryptographic related is missing from here, submit a pull request
to have it added. This package strive to be a cryptographic kitchen sink that
provides cryptography for everyone.
Evaluate the security related to your requirements before using.
Read "Crypto.Tutorial" for a quick start guide.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
2018-01-24 13:10:55 +00:00
Provides: %{name}-doc = %{version}-%{release}
%if %{defined ghc_version}
2017-09-06 19:29:40 +00:00
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
2018-01-24 13:10:55 +00:00
%endif
2017-09-06 19:29:40 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2018-07-28 09:29:43 +00:00
# Begin cabal-rpm deps:
Requires: glibc-devel%{?_isa}
# End cabal-rpm deps
2017-09-06 19:29:40 +00:00
%description devel
This package provides the Haskell %{pkg_name} library development files.
%package devel-doc
Summary: Haskell %{pkg_name} library development documentation
%description devel-doc
This package provides the Haskell %{pkg_name} library development
documentation.
%prep
%setup -q -n %{pkgver}
%build
%ghc_lib_build
%install
%ghc_lib_install
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
2018-09-13 09:40:22 +00:00
%if %{undefined without_haddock}
2017-09-06 19:29:40 +00:00
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
2018-09-13 09:40:22 +00:00
%endif
2017-09-06 19:29:40 +00:00
%check
%cabal_test
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel-nodoc.files
%doc CHANGELOG.md README.md
2018-09-13 09:40:22 +00:00
%if %{undefined without_haddock}
2017-09-06 19:29:40 +00:00
%files devel-doc -f %{name}-devel-doc.files
%doc CHANGELOG.md README.md
2018-09-13 09:40:22 +00:00
%endif
2017-09-06 19:29:40 +00:00
%changelog
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-07-28 09:29:43 +00:00
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 0.25-1
- update to 0.25
2018-07-23 11:41:46 +00:00
* Mon Jul 23 2018 Miro Hrončok <mhroncok@redhat.com> - 0.24-6
- Rebuilt for #1607054
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-31 16:33:40 +00:00
* Wed Jan 31 2018 Jens Petersen <petersen@redhat.com> - 0.24-3
- docs package is arch dependent
2018-01-26 10:27:35 +00:00
2017-09-06 19:29:40 +00:00
* Tue Sep 05 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.24-2
- Split documentation into separate subpackage.
- Correct licensing information.
* Tue Sep 05 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.24-1
- Update to latest version.
- Update to latest spec template.
* Sat Jul 22 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.22-1
- update to 0.22
* Fri Jul 21 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.15-3
- Bump for Fedora 26.
* Thu Dec 15 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15-2
- Update release to be newer than previous builds
* Thu Dec 15 2016 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.15-1
- spec file generated by cabal-rpm-0.10.0