2012-03-22 13:33:37 +00:00
|
|
|
# cabal2spec-0.25
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
2011-10-26 14:27:07 +00:00
|
|
|
|
|
|
|
%global pkg_name cryptohash
|
|
|
|
|
|
|
|
# common part of summary for all the subpackages
|
|
|
|
%global common_summary Crypto hashes, fast, pure and practical
|
|
|
|
|
|
|
|
# main description used for all the subpackages
|
|
|
|
%global common_description A collection of crypto hashes, with a practical incremental and one-pass,\
|
|
|
|
pure APIs, with performance close to the fastest implementations available\
|
|
|
|
in others languages. The implementations are made in C with\
|
|
|
|
a Haskell FFI wrapper that hide the C implementation.
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
Version: 0.7.4
|
2012-03-22 13:33:37 +00:00
|
|
|
Release: 3%{?dist}
|
2011-10-26 14:27:07 +00:00
|
|
|
Summary: %{common_summary}
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: BSD
|
|
|
|
# BEGIN cabal2spec
|
|
|
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
ExclusiveArch: %{ghc_arches}
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
2012-03-22 13:33:37 +00:00
|
|
|
BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
|
2011-10-26 14:27:07 +00:00
|
|
|
# END cabal2spec
|
|
|
|
BuildRequires: ghc-bytestring-prof
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
rm -r %{buildroot}%{_datadir}/%{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
2012-03-22 13:33:37 +00:00
|
|
|
# devel subpackage
|
|
|
|
%ghc_devel_package
|
2011-10-26 14:27:07 +00:00
|
|
|
|
2012-03-22 13:33:37 +00:00
|
|
|
%ghc_devel_description
|
2011-10-26 14:27:07 +00:00
|
|
|
|
|
|
|
|
2012-03-22 13:33:37 +00:00
|
|
|
%ghc_devel_post_postun
|
2011-10-26 14:27:07 +00:00
|
|
|
|
|
|
|
|
2012-03-22 13:33:37 +00:00
|
|
|
%ghc_files LICENSE
|
2011-10-26 14:27:07 +00:00
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2012-03-22 13:33:37 +00:00
|
|
|
* Sun Mar 18 2012 Jens Petersen <petersen@redhat.com> - 0.7.4-3
|
|
|
|
- update to cabal2spec-0.25
|
|
|
|
|
2012-01-13 03:21:42 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-26 14:27:07 +00:00
|
|
|
* Mon Oct 24 2011 Jens Petersen <petersen@redhat.com> - 0.7.4-1
|
|
|
|
- BSD license
|
|
|
|
- depends on bytestring
|
|
|
|
|
|
|
|
* Mon Oct 24 2011 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.7.4-0
|
|
|
|
- initial packaging for Fedora automatically generated by cabal2spec-0.24.1
|