Hello community, here is the log from the commit of package ghc-pureMD5 for openSUSE:Factory checked in at 2016-07-27 16:08:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-pureMD5 (Old) and /work/SRC/openSUSE:Factory/.ghc-pureMD5.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-pureMD5" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-pureMD5/ghc-pureMD5.changes 2016-05-17 17:14:40.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-pureMD5.new/ghc-pureMD5.changes 2016-07-27 16:09:12.000000000 +0200 @@ -1,0 +2,5 @@ +Sun Jul 10 17:28:20 UTC 2016 - psimons@suse.com + +- Update to version 2.1.3 revision 0 with cabal2obs. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-pureMD5.spec ++++++ --- /var/tmp/diff_new_pack.BFDip4/_old 2016-07-27 16:09:13.000000000 +0200 +++ /var/tmp/diff_new_pack.BFDip4/_new 2016-07-27 16:09:13.000000000 +0200 @@ -17,54 +17,66 @@ %global pkg_name pureMD5 - -Name: ghc-pureMD5 +%bcond_with tests +Name: ghc-%{pkg_name} Version: 2.1.3 Release: 0 Summary: A Haskell-only implementation of the MD5 digest (hash) algorithm 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-binary-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-cereal-devel BuildRequires: ghc-crypto-api-devel +BuildRequires: ghc-rpm-macros BuildRequires: ghc-tagged-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-crypto-api-tests-devel +BuildRequires: ghc-pretty-hex-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-quickcheck2-devel +%endif # End cabal-rpm deps %description A Haskell-only implementation of the MD5 digest (hash) algorithm. This now supports the crypto-api class interface. - %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} + %build %ghc_lib_build + %install %ghc_lib_install + +%check +%if %{with tests} +%{cabal} test +%endif + + %post devel %ghc_pkg_recache