osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-Glob revision:15, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-Glob?expand=0&rev=65
This commit is contained in:
Ondřej Súkup 2021-08-17 09:54:11 +00:00 committed by Git OBS Bridge
parent 14f277fe8b
commit 18f5ed9faf
3 changed files with 107 additions and 1 deletions

98
Glob.cabal Normal file
View File

@ -0,0 +1,98 @@
Cabal-Version: >= 1.10
Name: Glob
Version: 0.10.1
x-revision: 1
Homepage: http://iki.fi/matti.niemenmaa/glob/
Synopsis: Globbing library
Category: System
Stability: provisional
Description:
A library for globbing: matching patterns against file paths.
Author: Matti Niemenmaa
Maintainer: Matti Niemenmaa <matti.niemenmaa+glob@iki.fi>
License: BSD3
License-File: LICENSE.txt
Build-Type: Simple
Extra-Source-Files: CHANGELOG.txt
CREDITS.txt
README.txt
Source-Repository head
Type: git
Location: https://github.com/Deewiant/glob
Library
Build-Depends: base >= 4 && < 5
, containers < 0.7
, directory < 1.4
, dlist >= 0.4 && < 1.1
, filepath >= 1.1 && < 1.5
, transformers >= 0.2 && < 0.6
, transformers-compat >= 0.3 && < 0.8
if impl(ghc < 8.0)
Build-Depends: semigroups >= 0.18 && < 0.20
if os(windows)
Build-Depends: Win32 == 2.*
Default-Language: Haskell98
Exposed-Modules: System.FilePath.Glob
System.FilePath.Glob.Primitive
Other-Modules: System.FilePath.Glob.Base
System.FilePath.Glob.Directory
System.FilePath.Glob.Match
System.FilePath.Glob.Simplify
System.FilePath.Glob.Utils
GHC-Options: -Wall
Test-Suite glob-tests
type: exitcode-stdio-1.0
hs-source-dirs: ., tests
main-is: Main.hs
Build-Depends: base >= 4 && < 5
, containers < 0.7
, directory < 1.4
, dlist >= 0.4 && < 1.1
, filepath >= 1.1 && < 1.5
, transformers >= 0.2 && < 0.6
, transformers-compat >= 0.3 && < 0.8
, HUnit >= 1.2 && < 1.7
, QuickCheck >= 2 && < 3
, test-framework >= 0.2 && < 1
, test-framework-hunit >= 0.2 && < 1
, test-framework-quickcheck2 >= 0.3 && < 1
if impl(ghc < 8.0)
Build-Depends: semigroups >= 0.18 && < 0.20
if os(windows)
Build-Depends: Win32 == 2.*
Default-Language: Haskell98
Other-Modules: System.FilePath.Glob.Base
System.FilePath.Glob.Directory
System.FilePath.Glob.Match
System.FilePath.Glob.Primitive
System.FilePath.Glob.Simplify
System.FilePath.Glob.Utils
Tests.Base
Tests.Compiler
Tests.Directory
Tests.Instances
Tests.Matcher
Tests.Optimizer
Tests.Regression
Tests.Simplifier
Tests.Utils
GHC-Options: -Wall

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jul 27 13:40:58 UTC 2021 - psimons@suse.com
- Update Glob to version 0.10.1 revision 1.
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>

View File

@ -1,7 +1,7 @@
#
# spec file for package ghc-Glob
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -25,6 +25,7 @@ Summary: Globbing library
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-containers-devel
BuildRequires: ghc-directory-devel
@ -57,6 +58,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
chmod -x *.txt # https://github.com/Deewiant/glob/issues/31
%build