From 16253bbdc4f4748555fbb834a7dfc5d3af610e961eeb2f184417aea169d7b90d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 10 Apr 2018 01:12:45 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:lts:11 package:ghc-hinotify revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hinotify?expand=0&rev=17 --- ghc-hinotify.spec | 2 ++ hinotify.cabal | 89 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 hinotify.cabal diff --git a/ghc-hinotify.spec b/ghc-hinotify.spec index 496cf8e..189a793 100644 --- a/ghc-hinotify.spec +++ b/ghc-hinotify.spec @@ -26,6 +26,7 @@ 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-containers-devel @@ -50,6 +51,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 diff --git a/hinotify.cabal b/hinotify.cabal new file mode 100644 index 0000000..9fdef36 --- /dev/null +++ b/hinotify.cabal @@ -0,0 +1,89 @@ +name: hinotify +version: 0.3.9 +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, containers, directory, unix, + async >= 2.0 && < 2.2 + + 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, directory, hinotify + 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, directory, hinotify + 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, directory, hinotify + 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, directory, hinotify + 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, directory, hinotify + 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, directory, hinotify + default-language: Haskell2010 + hs-source-dirs: src tests + main-is: test006-callbackHang.hs + other-modules: Utils + ghc-options: -Wall