2012-06-07 11:52:56 +02:00
|
|
|
#
|
|
|
|
# spec file for ghc-digest
|
|
|
|
#
|
2009-08-02 20:38:03 +02:00
|
|
|
|
2012-01-19 00:06:22 +01:00
|
|
|
# Copyright (c) 2012 Herbert Graeber <herbert@graeber-clan.de>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2009-08-02 20:38:03 +02:00
|
|
|
|
2012-01-19 00:06:22 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2009-08-02 20:38:03 +02:00
|
|
|
|
2012-01-19 00:06:22 +01:00
|
|
|
%global pkg_name digest
|
2009-08-02 20:38:03 +02:00
|
|
|
|
2012-06-07 11:52:56 +02:00
|
|
|
%global common_summary Various cryptographic hashes for bytestrings
|
2009-08-02 20:38:03 +02:00
|
|
|
|
2012-06-07 11:52:56 +02:00
|
|
|
%global common_description This package provides efficient cryptographic hash implementations for strict and lazy bytestrings. For now, CRC32 and Adler32 are supported; they are implemented as FFI bindings to efficient code from zlib.
|
2009-08-02 20:38:03 +02:00
|
|
|
|
2012-01-19 00:06:22 +01:00
|
|
|
Name: ghc-%{pkg_name}
|
2012-11-28 09:24:48 +01:00
|
|
|
Version: 0.0.1.1
|
2012-01-19 00:06:22 +01:00
|
|
|
Release: 1
|
|
|
|
Summary: %{common_summary}
|
|
|
|
|
2012-06-07 11:52:56 +02:00
|
|
|
Group: System/Libraries
|
2012-02-29 13:50:29 +01:00
|
|
|
License: BSD-3-Clause
|
2012-06-07 11:52:56 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-01-19 00:06:22 +01:00
|
|
|
# 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: %{ix86} x86_64 %{ghc_arches}
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
2012-06-07 11:52:56 +02:00
|
|
|
BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
|
2012-01-19 00:06:22 +01:00
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
# END cabal2spec
|
2012-02-29 13:50:29 +01:00
|
|
|
|
2012-01-19 00:06:22 +01:00
|
|
|
%description
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
|
2009-08-02 20:38:03 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2012-01-19 00:06:22 +01:00
|
|
|
%ghc_lib_build
|
2009-08-02 20:38:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2012-01-19 00:06:22 +01:00
|
|
|
%ghc_lib_install
|
2009-08-02 20:38:03 +02:00
|
|
|
|
|
|
|
|
2012-06-07 11:52:56 +02:00
|
|
|
# devel subpackage
|
|
|
|
%ghc_devel_package
|
|
|
|
Requires: zlib-devel
|
2009-08-02 20:38:03 +02:00
|
|
|
|
2012-06-07 11:52:56 +02:00
|
|
|
%ghc_devel_description
|
2009-08-02 20:38:03 +02:00
|
|
|
|
|
|
|
|
2012-06-07 11:52:56 +02:00
|
|
|
%ghc_devel_post_postun
|
2009-08-02 20:38:03 +02:00
|
|
|
|
|
|
|
|
2012-06-07 11:52:56 +02:00
|
|
|
%ghc_files LICENSE
|
2009-08-02 20:38:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|