Hello community,
here is the log from the commit of package ghc-hastache for openSUSE:Factory checked in at 2016-07-21 08:09:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-hastache (Old)
and /work/SRC/openSUSE:Factory/.ghc-hastache.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-hastache"
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-hastache/ghc-hastache.changes 2015-11-26 17:02:30.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-hastache.new/ghc-hastache.changes 2016-07-21 08:09:26.000000000 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 16:58:28 UTC 2016 - psimons@suse.com
+
+- Update to version 0.6.1 revision 4 with cabal2obs.
+
+-------------------------------------------------------------------
New:
----
4.cabal
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-hastache.spec ++++++
--- /var/tmp/diff_new_pack.38hq9l/_old 2016-07-21 08:09:27.000000000 +0200
+++ /var/tmp/diff_new_pack.38hq9l/_new 2016-07-21 08:09:27.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-hastache
#
-# 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
@@ -15,24 +15,21 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-%global pkg_name hastache
-
-Name: ghc-hastache
+%global pkg_name hastache
+%bcond_with tests
+Name: ghc-%{pkg_name}
Version: 0.6.1
Release: 0
Summary: Haskell implementation of Mustache templates
-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
+Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/4.cabal
# Begin cabal-rpm deps:
BuildRequires: chrpath
+BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-blaze-builder-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
@@ -41,9 +38,14 @@
BuildRequires: ghc-ieee754-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-process-devel
+BuildRequires: ghc-rpm-macros
BuildRequires: ghc-syb-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-transformers-devel
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+%if %{with tests}
+BuildRequires: ghc-HUnit-devel
+%endif
# End cabal-rpm deps
%description
@@ -51,21 +53,20 @@
See homepage for examples of usage: http://github.com/lymar/hastache.
-
%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}
+cp -p %{SOURCE1} %{pkg_name}.cabal
%build
@@ -78,23 +79,25 @@
%ghc_fix_dynamic_rpath mkReadme
+%check
+%if %{with tests}
+%{cabal} test
+%endif
+
+
%post devel
%ghc_pkg_recache
-
%postun devel
%ghc_pkg_recache
-
%files -f %{name}.files
%defattr(-,root,root,-)
%doc LICENSE
-
+%{_bindir}/mkReadme
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
-%doc README.md
-%{_bindir}/mkReadme
-
+%doc ChangeLog README.md
%changelog
++++++ 4.cabal ++++++
name: hastache
version: 0.6.1
x-revision: 4
license: BSD3
license-file: LICENSE
category: Text
copyright: Sergey S Lymar (c) 2011-2014
author: Sergey S Lymar