Accepting request 1240785 from devel:languages:haskell
version update OBS-URL: https://build.opensuse.org/request/show/1240785 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-unix-compat?expand=0&rev=30
This commit is contained in:
commit
532e5dc1c1
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 17 15:02:57 UTC 2025 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Update unix-compat to version 0.7.3 revision 1.
|
||||||
|
Upstream has revised the Cabal build instructions on Hackage.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 11 16:49:31 UTC 2024 - Peter Simons <psimons@suse.com>
|
Fri Oct 11 16:49:31 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghc-unix-compat
|
# spec file for package ghc-unix-compat
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -26,6 +26,7 @@ Summary: Portable POSIX-compatibility layer
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://hackage.haskell.org/package/%{pkg_name}
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
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-Cabal-devel
|
||||||
BuildRequires: ghc-base-devel
|
BuildRequires: ghc-base-devel
|
||||||
BuildRequires: ghc-base-prof
|
BuildRequires: ghc-base-prof
|
||||||
@ -81,6 +82,7 @@ This package provides the Haskell %{pkg_name} profiling library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pkg_name}-%{version}
|
%autosetup -n %{pkg_name}-%{version}
|
||||||
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
145
unix-compat.cabal
Normal file
145
unix-compat.cabal
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
cabal-version: >= 1.10
|
||||||
|
name: unix-compat
|
||||||
|
version: 0.7.3
|
||||||
|
x-revision: 1
|
||||||
|
synopsis: Portable POSIX-compatibility layer.
|
||||||
|
description: This package provides portable implementations of parts
|
||||||
|
of the unix package. This package re-exports the unix
|
||||||
|
package when available. When it isn't available,
|
||||||
|
portable implementations are used.
|
||||||
|
|
||||||
|
homepage: https://github.com/haskell-pkg-janitors/unix-compat
|
||||||
|
license: BSD3
|
||||||
|
license-file: LICENSE
|
||||||
|
author: Björn Bringert, Duncan Coutts, Jacob Stanley, Bryan O'Sullivan
|
||||||
|
maintainer: https://github.com/haskell-pkg-janitors
|
||||||
|
category: System
|
||||||
|
build-type: Simple
|
||||||
|
|
||||||
|
tested-with:
|
||||||
|
GHC == 9.12.1
|
||||||
|
GHC == 9.10.1
|
||||||
|
GHC == 9.8.4
|
||||||
|
GHC == 9.6.6
|
||||||
|
GHC == 9.4.8
|
||||||
|
GHC == 9.2.8
|
||||||
|
GHC == 9.0.2
|
||||||
|
GHC == 8.10.7
|
||||||
|
GHC == 8.8.4
|
||||||
|
GHC == 8.6.5
|
||||||
|
GHC == 8.4.4
|
||||||
|
GHC == 8.2.2
|
||||||
|
GHC == 8.0.2
|
||||||
|
|
||||||
|
extra-source-files:
|
||||||
|
CHANGELOG.md
|
||||||
|
|
||||||
|
source-repository head
|
||||||
|
type: git
|
||||||
|
location: https://github.com/haskell-pkg-janitors/unix-compat.git
|
||||||
|
|
||||||
|
Library
|
||||||
|
hs-source-dirs: src
|
||||||
|
|
||||||
|
exposed-modules:
|
||||||
|
System.PosixCompat
|
||||||
|
System.PosixCompat.Extensions
|
||||||
|
System.PosixCompat.Files
|
||||||
|
System.PosixCompat.Process
|
||||||
|
System.PosixCompat.Temp
|
||||||
|
System.PosixCompat.Time
|
||||||
|
System.PosixCompat.Types
|
||||||
|
System.PosixCompat.Unistd
|
||||||
|
|
||||||
|
build-depends: base >= 4.9 && < 5
|
||||||
|
|
||||||
|
if os(windows)
|
||||||
|
c-sources:
|
||||||
|
cbits/HsUname.c
|
||||||
|
cbits/mktemp.c
|
||||||
|
|
||||||
|
extra-libraries: msvcrt
|
||||||
|
build-depends: Win32 >= 2.5.0.0 && < 3
|
||||||
|
build-depends: directory >= 1.3.1 && < 1.4
|
||||||
|
build-depends: filepath >= 1.4.1.0 && < 1.6
|
||||||
|
build-depends: time >= 1.6.0.1 && < 1.15
|
||||||
|
|
||||||
|
other-modules:
|
||||||
|
System.PosixCompat.Internal.Time
|
||||||
|
|
||||||
|
else
|
||||||
|
build-depends: unix >= 2.7.2.0 && < 2.9
|
||||||
|
include-dirs: include
|
||||||
|
includes: HsUnixCompat.h
|
||||||
|
install-includes: HsUnixCompat.h
|
||||||
|
c-sources: cbits/HsUnixCompat.c
|
||||||
|
if os(solaris)
|
||||||
|
cc-options: -DSOLARIS
|
||||||
|
|
||||||
|
default-language: Haskell2010
|
||||||
|
ghc-options:
|
||||||
|
-Wall
|
||||||
|
-Wcompat
|
||||||
|
|
||||||
|
Test-Suite unix-compat-testsuite
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
hs-source-dirs: tests
|
||||||
|
main-is: main.hs
|
||||||
|
|
||||||
|
other-modules:
|
||||||
|
MkstempSpec
|
||||||
|
LinksSpec
|
||||||
|
ProcessSpec
|
||||||
|
|
||||||
|
-- ghc-options:
|
||||||
|
-- -Wall
|
||||||
|
-- -fwarn-tabs
|
||||||
|
-- -funbox-strict-fields
|
||||||
|
-- -threaded
|
||||||
|
-- -fno-warn-unused-do-bind
|
||||||
|
-- -fno-warn-type-defaults
|
||||||
|
|
||||||
|
-- extensions:
|
||||||
|
-- OverloadedStrings
|
||||||
|
-- ExtendedDefaultRules
|
||||||
|
|
||||||
|
-- if flag(lifted)
|
||||||
|
-- cpp-options: -DLIFTED
|
||||||
|
|
||||||
|
build-depends:
|
||||||
|
unix-compat
|
||||||
|
, base
|
||||||
|
, monad-parallel
|
||||||
|
, hspec >= 2.5.5
|
||||||
|
, HUnit
|
||||||
|
, directory >= 1.3.1.0
|
||||||
|
-- directory-1.3.1.0 adds createFileLink
|
||||||
|
, extra
|
||||||
|
, temporary
|
||||||
|
|
||||||
|
if os(windows)
|
||||||
|
-- c-sources:
|
||||||
|
-- cbits/HsUname.c
|
||||||
|
-- cbits/mktemp.c
|
||||||
|
|
||||||
|
-- extra-libraries: msvcrt
|
||||||
|
-- build-depends: Win32 >= 2.5.0.0
|
||||||
|
build-depends: time
|
||||||
|
build-depends: directory
|
||||||
|
|
||||||
|
-- other-modules:
|
||||||
|
-- System.PosixCompat.Internal.Time
|
||||||
|
|
||||||
|
else
|
||||||
|
-- build-depends: unix >= 2.4 && < 2.9
|
||||||
|
-- include-dirs: include
|
||||||
|
-- includes: HsUnixCompat.h
|
||||||
|
-- install-includes: HsUnixCompat.h
|
||||||
|
-- c-sources: cbits/HsUnixCompat.c
|
||||||
|
if os(solaris)
|
||||||
|
cc-options: -DSOLARIS
|
||||||
|
|
||||||
|
default-language: Haskell2010
|
||||||
|
ghc-options:
|
||||||
|
-Wall
|
||||||
|
-Wcompat
|
Loading…
Reference in New Issue
Block a user