Ondřej Súkup 2016-07-17 00:08:24 +00:00 committed by Git OBS Bridge
parent 7aa4d1d702
commit b88654b224
4 changed files with 16 additions and 19 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d4ec71b168f3600226cb53ac43559eb5795d5d79904a910c26046c360d60d780
size 10844

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:57b02338e9648639335788b422dd4c744543cb0991347472e2e3628a33c2f5d6
size 10885

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 10 17:28:01 UTC 2016 - psimons@suse.com
- Update to version 0.11.100.1 revision 0 with cabal2obs.
-------------------------------------------------------------------
Fri May 27 12:02:02 UTC 2016 - mimi.vx@gmail.com

View File

@ -15,25 +15,22 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global pkg_name cryptohash-sha256
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.11.100.0
Version: 0.11.100.1
Release: 0
Summary: Fast, pure and practical SHA-256 implementation
Group: System/Libraries
License: BSD-3-Clause
Group: System/Libraries
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with tests}
BuildRequires: ghc-SHA-devel
BuildRequires: ghc-base16-bytestring-devel
@ -61,20 +58,18 @@ Consequently, this package can be used as a drop-in replacement for
'cryptohash''s "Crypto.Hash.SHA256" module, though with a clearly smaller
footprint.
%package devel
Summary: Haskell %{pkg_name} library development files
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
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}
@ -89,25 +84,22 @@ files.
%check
%if %{with tests}
%cabal test
%{cabal} test
%endif
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%defattr(-,root,root,-)
%doc LICENSE
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
%doc changelog.md
%changelog