diff --git a/ghc-hinotify.changes b/ghc-hinotify.changes index 60ae1ea..a0f78f7 100644 --- a/ghc-hinotify.changes +++ b/ghc-hinotify.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon May 14 17:02:11 UTC 2018 - psimons@suse.com + +- Update hinotify to version 0.3.10 revision 1. + - Allow async-2.2. + - Use `RawFilePath` (`ByteString`) for filenames, from `unix` package. + Changes the `Event` type and `addWatch` function. + ------------------------------------------------------------------- Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com diff --git a/ghc-hinotify.spec b/ghc-hinotify.spec index 13275a4..5428976 100644 --- a/ghc-hinotify.spec +++ b/ghc-hinotify.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-hinotify # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -19,19 +19,23 @@ %global pkg_name hinotify %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.3.9 +Version: 0.3.10 Release: 0 Summary: Haskell binding to inotify License: BSD-3-Clause Group: Development/Libraries/Haskell URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-async-devel +BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel -BuildRequires: ghc-directory-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-unix-devel +%if %{with tests} +BuildRequires: ghc-directory-devel +%endif %description This library provides a wrapper to the Linux Kernel's inotify feature, allowing @@ -50,6 +54,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -67,7 +72,7 @@ This package provides the Haskell %{pkg_name} library development files. %ghc_pkg_recache %files -f %{name}.files -%doc LICENSE +%license LICENSE %files devel -f %{name}-devel.files %doc CHANGELOG.md README.md diff --git a/hinotify-0.3.10.tar.gz b/hinotify-0.3.10.tar.gz new file mode 100644 index 0000000..0a98ebf --- /dev/null +++ b/hinotify-0.3.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af2b7d5733ab52ca38f0d9aed1ec37304f1d6964caa0fb556b8215858c1d5d9d +size 9193 diff --git a/hinotify-0.3.9.tar.gz b/hinotify-0.3.9.tar.gz deleted file mode 100644 index a68dc84..0000000 --- a/hinotify-0.3.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f2480e4c08a516831c2221eebc6a9d3242e892932d9315c34cbe92a101c5df99 -size 9021 diff --git a/hinotify.cabal b/hinotify.cabal new file mode 100644 index 0000000..d717fbb --- /dev/null +++ b/hinotify.cabal @@ -0,0 +1,89 @@ +name: hinotify +version: 0.3.10 +x-revision: 1 +build-type: Simple +synopsis: Haskell binding to inotify +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. +category: System +homepage: https://github.com/kolmodin/hinotify.git +license: BSD3 +license-file: LICENSE +author: Lennart Kolmodin +maintainer: Lennart Kolmodin +extra-source-files: README.md, CHANGELOG.md +cabal-version: >= 1.10 + +source-repository head + type: git + location: git://github.com/kolmodin/hinotify.git + +library + default-language: Haskell2010 + build-depends: base >= 4.5.0.0 && < 5, bytestring, containers, unix, + async >= 2.0 && < 2.3 + + exposed-modules: + System.INotify + other-modules: + System.INotify.Masks + + ghc-options: -Wall + includes: sys/inotify.h + hs-source-dirs: src + +test-suite test001 + type: exitcode-stdio-1.0 + default-language: Haskell2010 + build-depends: base, bytestring, directory, hinotify, unix + hs-source-dirs: src tests + main-is: test001-list-dir-contents.hs + other-modules: Utils + ghc-options: -Wall + +test-suite test002 + type: exitcode-stdio-1.0 + default-language: Haskell2010 + build-depends: base, bytestring, directory, hinotify, unix + hs-source-dirs: src tests + main-is: test002-writefile.hs + other-modules: Utils + ghc-options: -Wall + +test-suite test003 + type: exitcode-stdio-1.0 + default-language: Haskell2010 + build-depends: base, bytestring, directory, hinotify, unix + hs-source-dirs: src tests + main-is: test003-removefile.hs + other-modules: Utils + ghc-options: -Wall + +test-suite test004 + type: exitcode-stdio-1.0 + default-language: Haskell2010 + build-depends: base, bytestring, directory, hinotify, unix + hs-source-dirs: src tests + main-is: test004-modify-file.hs + other-modules: Utils + ghc-options: -Wall + +test-suite test005 + type: exitcode-stdio-1.0 + build-depends: base, bytestring, directory, hinotify, unix + default-language: Haskell2010 + hs-source-dirs: src tests + main-is: test005-move-file.hs + other-modules: Utils + ghc-options: -Wall + +test-suite test006 + type: exitcode-stdio-1.0 + build-depends: base, bytestring, directory, hinotify, unix + default-language: Haskell2010 + hs-source-dirs: src tests + main-is: test006-callbackHang.hs + other-modules: Utils + ghc-options: -Wall