Hello community, here is the log from the commit of package ghc-cereal for openSUSE:Factory checked in at 2016-07-21 08:03:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-cereal (Old) and /work/SRC/openSUSE:Factory/.ghc-cereal.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-cereal" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-cereal/ghc-cereal.changes 2016-06-02 09:40:06.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-cereal.new/ghc-cereal.changes 2016-07-21 08:03:06.000000000 +0200 @@ -1,0 +2,6 @@ +Sun Jul 10 17:26:36 UTC 2016 - [email protected] + +- Update to version 0.5.2.0 revision 0 with cabal2obs. + This update obsoletes ghc-cereal-rpmlintrc. + +------------------------------------------------------------------- Old: ---- ghc-cereal-rpmlintrc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-cereal.spec ++++++ --- /var/tmp/diff_new_pack.fMQoSR/_old 2016-07-21 08:03:07.000000000 +0200 +++ /var/tmp/diff_new_pack.fMQoSR/_new 2016-07-21 08:03:07.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-cereal # -# 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,25 +17,29 @@ %global pkg_name cereal - -Name: ghc-cereal +%bcond_with tests +Name: ghc-%{pkg_name} Version: 0.5.2.0 Release: 0 Summary: A binary serialization library License: BSD-3-Clause Group: System/Libraries -Url: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: %{name}-rpmlintrc +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 +# Begin cabal-rpm deps: BuildRequires: ghc-array-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel -# fail is needed on ghc 7.x BuildRequires: ghc-fail-devel BuildRequires: ghc-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ghc-rpm-macros +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-quickcheck2-devel +%endif +# End cabal-rpm deps %description A binary serialization library, similar to binary, that introduces an isolate @@ -44,9 +48,10 @@ %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. @@ -54,17 +59,26 @@ %prep %setup -q -n %{pkg_name}-%{version} + %build -%{ghc_lib_build} +%ghc_lib_build + %install -%{ghc_lib_install} +%ghc_lib_install + + +%check +%if %{with tests} +%{cabal} test +%endif + %post devel -%{ghc_pkg_recache} +%ghc_pkg_recache %postun devel -%{ghc_pkg_recache} +%ghc_pkg_recache %files -f %{name}.files %defattr(-,root,root,-) @@ -72,5 +86,6 @@ %files devel -f %{name}-devel.files %defattr(-,root,root,-) +%doc CHANGELOG.md %changelog
