ghc-cryptonite/ghc-cryptonite.spec

197 lines
5.2 KiB
RPMSpec
Raw Normal View History

# generated by cabal-rpm-1.0.0
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: 5%{?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}
2019-02-17 14:44:11 +00:00
# Begin cabal-rpm sources:
2017-09-06 19:29:40 +00:00
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2019-02-17 14:44:11 +00:00
# End cabal-rpm sources
2017-09-06 19:29:40 +00:00
2019-02-17 14:44:11 +00:00
# Begin cabal-rpm deps:
2017-09-06 19:29:40 +00:00
BuildRequires: ghc-Cabal-devel
%if %{with haddock}
BuildRequires: ghc-doc
%endif
%if %{with ghc_prof}
BuildRequires: ghc-prof
%endif
2017-09-06 19:29:40 +00:00
BuildRequires: ghc-rpm-macros
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
%if %{defined ghc_version}
2017-09-06 19:29:40 +00:00
Requires: 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.
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
Obsoletes: %{name}-devel-doc < %{version}-%{release}
2017-09-06 19:29:40 +00:00
%description doc
This package provides the Haskell %{pkg_name} library documentation.
%endif
%if %{with ghc_prof}
%package prof
Summary: Haskell %{pkg_name} profiling library
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description prof
This package provides the Haskell %{pkg_name} profiling library.
%endif
2017-09-06 19:29:40 +00:00
%prep
2019-02-17 14:44:11 +00:00
# Begin cabal-rpm setup:
2017-09-06 19:29:40 +00:00
%setup -q -n %{pkgver}
2019-02-17 14:44:11 +00:00
# End cabal-rpm setup
2017-09-06 19:29:40 +00:00
%build
2019-02-17 14:44:11 +00:00
# Begin cabal-rpm build:
2017-09-06 19:29:40 +00:00
%ghc_lib_build
2019-02-17 14:44:11 +00:00
# End cabal-rpm build
2017-09-06 19:29:40 +00:00
%install
2019-02-17 14:44:11 +00:00
# Begin cabal-rpm install
2017-09-06 19:29:40 +00:00
%ghc_lib_install
2019-02-17 14:44:11 +00:00
# End cabal-rpm install
2017-09-06 19:29:40 +00:00
%check
%cabal_test
%files -f %{name}.files
2019-02-17 14:44:11 +00:00
# Begin cabal-rpm files:
2017-09-06 19:29:40 +00:00
%license LICENSE
2019-02-17 14:44:11 +00:00
# End cabal-rpm files
2017-09-06 19:29:40 +00:00
%files devel -f %{name}-devel.files
2017-09-06 19:29:40 +00:00
%doc CHANGELOG.md README.md
%if %{with haddock}
%files doc -f %{name}-doc.files
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
2018-09-13 09:40:22 +00:00
%endif
2017-09-06 19:29:40 +00:00
%changelog
* Thu Aug 01 2019 Jens Petersen <petersen@redhat.com> - 0.25-5
- add doc and prof subpackages (cabal-rpm-1.0.0)
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-02-17 14:44:11 +00:00
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.25-3
- refresh to cabal-rpm-0.13
* 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