diff --git a/ghc-hinotify.changes b/ghc-hinotify.changes index 885daa1..56190d1 100644 --- a/ghc-hinotify.changes +++ b/ghc-hinotify.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jul 10 17:18:46 UTC 2016 - psimons@suse.com + +- Update to version 0.3.8.1 revision 0 with cabal2obs. + ------------------------------------------------------------------- Sun Aug 9 15:59:00 UTC 2015 - mimi.vx@gmail.com diff --git a/ghc-hinotify.spec b/ghc-hinotify.spec index 431cd57..1001a4f 100644 --- a/ghc-hinotify.spec +++ b/ghc-hinotify.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-hinotify # -# 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,7 +17,8 @@ %global pkg_name hinotify -Name: ghc-hinotify +%bcond_with tests +Name: ghc-%{pkg_name} Version: 0.3.8.1 Release: 0 Summary: Haskell binding to inotify @@ -37,7 +38,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This library provides a wrapper to the Linux Kernel's inotify feature, allowing applications to subscribe to notifications when a file is accessed or modified. -. %package devel Summary: Haskell %{pkg_name} library development files @@ -53,17 +53,26 @@ This package provides the Haskell %{pkg_name} library development files. %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,-) @@ -71,6 +80,6 @@ This package provides the Haskell %{pkg_name} library development files. %files devel -f %{name}-devel.files %defattr(-,root,root,-) -%doc README.md +%doc CHANGELOG.md README.md %changelog