diff --git a/SHA-1.6.4.1.tar.gz b/SHA-1.6.4.1.tar.gz deleted file mode 100644 index b6e86c9..0000000 --- a/SHA-1.6.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:743bc6d7dd3e74a44bfca8920f0f0ba5855722a62f6cc44f0a38d10c11bddc0d -size 2715446 diff --git a/SHA-1.6.4.2.tar.gz b/SHA-1.6.4.2.tar.gz new file mode 100644 index 0000000..b0b38e6 --- /dev/null +++ b/SHA-1.6.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c470176f63cbe49fd0502a1b32ef22bc01b1af42385583b8be94547750958a8c +size 2715266 diff --git a/ghc-SHA.changes b/ghc-SHA.changes index f787338..13f6360 100644 --- a/ghc-SHA.changes +++ b/ghc-SHA.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Apr 21 18:32:23 UTC 2015 - mimi.vx@gmail.com + +- disable exe flag + +------------------------------------------------------------------- +Sun Apr 19 20:56:45 UTC 2015 - mimi.vx@gmail.com + +- update to 1.6.4.2 +- enable "exe" flag +* no upstream changelog + ------------------------------------------------------------------- Sun Feb 1 20:40:48 UTC 2015 - mimi.vx@gmail.com diff --git a/ghc-SHA.spec b/ghc-SHA.spec index 70b84c1..b77e8d2 100644 --- a/ghc-SHA.spec +++ b/ghc-SHA.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-SHA # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,24 +17,31 @@ %global pkg_name SHA -# no useful debuginfo for Haskell packages without C sources -%global debug_package %{nil} +%bcond_with tests -Name: ghc-SHA -Version: 1.6.4.1 +Name: ghc-%{pkg_name} +Version: 1.6.4.2 Release: 0 Summary: Implementations of the SHA suite of message digest functions -Group: Development/Languages/Other +Group: System/Libraries + License: BSD-3-Clause -Url: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +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-array-devel BuildRequires: ghc-binary-devel BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-directory-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-quickcheck2-devel +%endif # End cabal-rpm deps %description @@ -49,12 +56,14 @@ like OpenSSL. %package devel Summary: Haskell %{pkg_name} library development files Group: Development/Libraries/Other +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} @@ -64,6 +73,11 @@ This package provides the Haskell %{pkg_name} library development files. %install %ghc_lib_install +%check +%if %{with tests} +%cabal test +%endif + %post devel %ghc_pkg_recache