# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name crypto-api Name: ghc-%{pkg_name} Version: 0.12.2.1 Release: 1%{?dist} Summary: A generic interface for cryptographic operations License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel BuildRequires: ghc-cereal-devel BuildRequires: ghc-entropy-devel BuildRequires: ghc-tagged-devel BuildRequires: ghc-transformers-devel # End cabal-rpm deps %description A generic interface for cryptographic operations (hashes, ciphers, randomness). Maintainers of hash and cipher implementations are encouraged to add instances for the classes defined in Crypto.Classes. Crypto users are similarly encouraged to use the interfaces defined in the Classes module. Any concepts or functions of general use to more than one cryptographic algorithm (ex: padding) is within scope of this package. %package devel Summary: Haskell %{pkg_name} library development files Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %doc LICENSE %files devel -f %{name}-devel.files %changelog * Fri Jun 7 2013 Jens Petersen - 0.12.2.1-1 - update to 0.12.2.1 - update with cabal-rpm-0.8.1 * Fri Mar 22 2013 Fedora Haskell SIG - 0.11-1 - spec file generated by cabal-rpm-0.7.1 * Sat Oct 30 2010 Ben Boeckel - 0.1.2.4-1 - Initial package * Sat Oct 30 2010 Fedora Haskell SIG - 0.1.2.4-0 - initial packaging for Fedora automatically generated by cabal2spec-0.22.2