osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-fsnotify revision:2, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-fsnotify?expand=0&rev=54
This commit is contained in:
Peter Simons 2024-10-30 22:00:40 +00:00 committed by Git OBS Bridge
commit 68bcdc49a5
6 changed files with 350 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
fsnotify-0.4.1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d130fb4a871a181a3d1485f24da85aa49d6ff9022ce08f8401b4626143eaf7ef
size 22783

117
fsnotify.cabal Normal file
View File

@ -0,0 +1,117 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.35.0.
--
-- see: https://github.com/sol/hpack
name: fsnotify
version: 0.4.1.0
x-revision: 1
synopsis: Cross platform library for file change notification.
description: Cross platform library for file creation, modification, and deletion notification. This library builds upon existing libraries for platform-specific Windows, Mac, and Linux filesystem event notification.
category: Filesystem
homepage: https://github.com/haskell-fswatch/hfsnotify
author: Mark Dittmer <mark.s.dittmer@gmail.com>, Niklas Broberg
maintainer: Tom McLaughlin <tom@codedown.io>
license: BSD3
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
CHANGELOG.md
test/Main.hs
library
exposed-modules:
System.FSNotify
System.FSNotify.Devel
other-modules:
System.FSNotify.Find
System.FSNotify.Listener
System.FSNotify.Path
System.FSNotify.Polling
System.FSNotify.Types
hs-source-dirs:
src
ghc-options: -Wall
build-depends:
async >=2.0.0.0
, base >=4.8 && <5
, bytestring >=0.10.2
, containers >=0.4
, directory >=1.3.0.0
, filepath >=1.3.0.0
, monad-control >=1.0.0.0
, safe-exceptions >=0.1.0.0
, text >=0.11.0 && <2.1.2
, time >=1.1
, unix-compat >=0.2
default-language: Haskell2010
if os(linux)
cpp-options: -DOS_Linux
if os(windows)
cpp-options: -DOS_Win32
if os(darwin)
cpp-options: -DOS_Mac
if os(freebsd) || os(netbsd) || os(openbsd)
cpp-options: -DOS_BSD
if os(linux)
other-modules:
System.FSNotify.Linux
build-depends:
hinotify >=0.3.7
, unix >=2.7.1.0
if os(windows)
other-modules:
System.FSNotify.Win32
System.Win32.FileNotify
System.Win32.Notify
hs-source-dirs:
win-src
build-depends:
Win32
if os(darwin)
other-modules:
System.FSNotify.OSX
build-depends:
hfsevents >=0.1.3
test-suite tests
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
FSNotify.Test.EventTests
FSNotify.Test.Util
Paths_fsnotify
hs-source-dirs:
test
ghc-options: -threaded -Wall
build-depends:
async >=2
, base >=4.3.1.0
, directory
, exceptions
, filepath
, fsnotify
, random
, retry
, safe-exceptions
, temporary
, unix-compat
, unliftio >=0.2.20
default-language: Haskell2010
if os(linux)
cpp-options: -DOS_Linux
if os(windows)
cpp-options: -DOS_Win32
if os(darwin)
cpp-options: -DOS_Mac
if os(freebsd) || os(netbsd) || os(openbsd)
cpp-options: -DOS_BSD
if os(windows)
build-depends:
Win32
, sandwich >=0.1.1.1
else
build-depends:
sandwich

71
ghc-fsnotify.changes Normal file
View File

@ -0,0 +1,71 @@
-------------------------------------------------------------------
Tue Oct 29 12:52:15 UTC 2024 - Peter Simons <psimons@suse.com>
- Update fsnotify to version 0.4.1.0 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Mar 30 17:06:49 UTC 2023 - Peter Simons <psimons@suse.com>
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
-------------------------------------------------------------------
Mon Oct 17 02:03:57 UTC 2022 - Peter Simons <psimons@suse.com>
- Update fsnotify to version 0.4.1.0.
Version 0.4.1.0
---------------
* Add `unliftio` lower bound (#106)
* Change the tests back to a test-suite to avoid building for library users. (#107)
* Fix up Windows compatibility.
* Export `WatchConfig` type (#108)
Version 0.4.0.1
---------------
* Fix compatibility with *BSD.
Version 0.4.0.0
---------------
API breaking update.
* New options for threading control (single-threaded, thread-per-watch, and thread-per-manager)
* Revamp `WatchConfig` options to be less confusing and reduce boolean blindness.
* Pull out debouncing stuff, since it was never correct as it simply took the last event affecting a given file in the debounce period. Debouncing is currently not included, and should be handled as an orthogonal concern. I'd like to include some debouncing logic, but didn't want to delay this release any longer.
* We now expose `type DebounceFn = Action -> IO Action`, which represents an arbitrary debouncer. All debouncers should be in the form of one of these functions.
* A robust state machine debouncer is in progress but not fully implemented yet; see the `state-machine` branch.
* Contributions are welcome! We can potentially add multiple debouncers of different complexity as modules under `System.FSNotify.Debounce.*`.
* Don't silently fall back to polling on failure of native watcher.
Instead, throw an exception which the user can recover from by switching to polling.
* Add ModifiedAttributes event type + Linux support
* Add confOnHandlerException to be able to control what happens when a handler throws an exception.
* WatchConfig constructor is no longer exposed. Instead use `defaultConfig {...}` with the accessors.
-------------------------------------------------------------------
Sat Apr 16 17:31:00 UTC 2022 - Peter Simons <psimons@suse.com>
- Update fsnotify to version 0.3.0.1 revision 2.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- disable %{ix86} build
-------------------------------------------------------------------
Mon Aug 31 09:34:36 UTC 2020 - psimons@suse.com
- Update fsnotify to version 0.3.0.1 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Tue Aug 18 10:44:54 UTC 2020 - Peter Simons <psimons@suse.com>
- Replace %setup -q with the more modern %autosetup macro.
-------------------------------------------------------------------
Tue Jun 9 09:47:49 UTC 2020 - psimons@suse.com
- Add fsnotify at version 0.3.0.1.

135
ghc-fsnotify.spec Normal file
View File

@ -0,0 +1,135 @@
#
# spec file for package ghc-fsnotify
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global pkg_name fsnotify
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.4.1.0
Release: 0
Summary: Cross platform library for file change notification
License: BSD-3-Clause
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-async-prof
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-containers-devel
BuildRequires: ghc-containers-prof
BuildRequires: ghc-directory-devel
BuildRequires: ghc-directory-prof
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-hinotify-devel
BuildRequires: ghc-hinotify-prof
BuildRequires: ghc-monad-control-devel
BuildRequires: ghc-monad-control-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-safe-exceptions-devel
BuildRequires: ghc-safe-exceptions-prof
BuildRequires: ghc-text-devel
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-devel
BuildRequires: ghc-time-prof
BuildRequires: ghc-unix-compat-devel
BuildRequires: ghc-unix-compat-prof
BuildRequires: ghc-unix-devel
BuildRequires: ghc-unix-prof
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-exceptions-prof
BuildRequires: ghc-random-devel
BuildRequires: ghc-random-prof
BuildRequires: ghc-retry-devel
BuildRequires: ghc-retry-prof
BuildRequires: ghc-sandwich-devel
BuildRequires: ghc-sandwich-prof
BuildRequires: ghc-temporary-devel
BuildRequires: ghc-temporary-prof
BuildRequires: ghc-unliftio-devel
BuildRequires: ghc-unliftio-prof
%endif
%description
Cross platform library for file creation, modification, and deletion
notification. This library builds upon existing libraries for platform-specific
Windows, Mac, and Linux filesystem event notification.
%package devel
Summary: Haskell %{pkg_name} library development files
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%package -n ghc-%{pkg_name}-doc
Summary: Haskell %{pkg_name} library documentation
Requires: ghc-filesystem
BuildArch: noarch
%description -n ghc-%{pkg_name}-doc
This package provides the Haskell %{pkg_name} library documentation.
%package -n ghc-%{pkg_name}-prof
Summary: Haskell %{pkg_name} profiling library
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
%description -n ghc-%{pkg_name}-prof
This package provides the Haskell %{pkg_name} profiling library.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
%install
%ghc_lib_install
%check
%cabal_test
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
%doc CHANGELOG.md README.md
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
%changelog