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
This commit is contained in:
Peter Simons 2018-04-10 01:12:45 +00:00 committed by Git OBS Bridge
parent f321365903
commit 16253bbdc4
2 changed files with 91 additions and 0 deletions

View File

@ -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

89
hinotify.cabal Normal file
View File

@ -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 <kolmodin@gmail.com>
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