Hello community, here is the log from the commit of package ghc-crypto-pubkey for openSUSE:Factory checked in at 2016-07-21 08:12:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-crypto-pubkey (Old) and /work/SRC/openSUSE:Factory/.ghc-crypto-pubkey.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-crypto-pubkey" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-crypto-pubkey/ghc-crypto-pubkey.changes 2015-05-21 08:37:50.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-crypto-pubkey.new/ghc-crypto-pubkey.changes 2016-07-21 08:12:07.000000000 +0200 @@ -1,0 +2,5 @@ +Sun Jul 10 17:05:11 UTC 2016 - psimons@suse.com + +- Update to version 0.2.8 revision 0 with cabal2obs. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-crypto-pubkey.spec ++++++ --- /var/tmp/diff_new_pack.GfRVhH/_old 2016-07-21 08:12:07.000000000 +0200 +++ /var/tmp/diff_new_pack.GfRVhH/_new 2016-07-21 08:12:07.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-crypto-pubkey # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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,20 +17,16 @@ %global pkg_name crypto-pubkey - -Name: ghc-crypto-pubkey +%bcond_with tests +Name: ghc-%{pkg_name} Version: 0.2.8 Release: 0 Summary: Public Key cryptography License: BSD-2-Clause Group: System/Libraries - -Url: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - +Url: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-byteable-devel BuildRequires: ghc-bytestring-devel @@ -38,6 +34,14 @@ BuildRequires: ghc-crypto-pubkey-types-devel BuildRequires: ghc-crypto-random-devel BuildRequires: ghc-cryptohash-devel +BuildRequires: ghc-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if %{with tests} +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-kat-devel +BuildRequires: ghc-tasty-quickcheck-devel +%endif # End cabal-rpm deps %description @@ -47,27 +51,35 @@ Also have primitive support for Diffie Hellman, and ElGamal encryption. - %package devel Summary: Haskell %{pkg_name} library development files Group: Development/Libraries/Other -Provides: %{name}-static = %{version}-%{release} Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} %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