From 39300763c5b64710e1cfde3ffa7d24330bf1786a79f4d521e5254bbd4228ac1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Sat, 16 Jul 2016 23:25:15 +0000 Subject: [PATCH] Accepting request 409893 from devel:languages:haskell:lts:6 See https://lists.opensuse.org/opensuse-haskell/2016-07/msg00000.html for details. OBS-URL: https://build.opensuse.org/request/show/409893 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hinotify?expand=0&rev=5 --- ghc-hinotify.changes | 5 +++++ ghc-hinotify.spec | 25 +++++++++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) 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