From 5e6bd67a41a451ff173702f0bbced882b6dca25d64d4a93a59bee6761a9f676c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 4 Sep 2020 15:11:54 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-unix-compat revision:10, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-unix-compat?expand=0&rev=57 --- ghc-unix-compat.changes | 21 ++++++++++++ ghc-unix-compat.spec | 6 ++-- unix-compat.cabal | 73 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 unix-compat.cabal diff --git a/ghc-unix-compat.changes b/ghc-unix-compat.changes index ff49c15..8209d2a 100644 --- a/ghc-unix-compat.changes +++ b/ghc-unix-compat.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Mon Aug 31 09:34:31 UTC 2020 - psimons@suse.com + +- Update unix-compat to version 0.5.2 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Tue Aug 18 10:46:26 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +------------------------------------------------------------------- +Tue Jun 16 11:14:46 UTC 2020 - Peter Simons + +- Re-generate file with latest version of spec-cleaner. + +------------------------------------------------------------------- +Thu May 7 08:08:26 UTC 2020 - Peter Simons + +- Update Cabal file to get more accurate dependency information. + ------------------------------------------------------------------- Fri Nov 8 16:15:06 UTC 2019 - Peter Simons diff --git a/ghc-unix-compat.spec b/ghc-unix-compat.spec index 80d14b6..008642a 100644 --- a/ghc-unix-compat.spec +++ b/ghc-unix-compat.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-unix-compat # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,7 @@ Summary: Portable POSIX-compatibility layer 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-rpm-macros BuildRequires: ghc-unix-devel @@ -44,7 +45,8 @@ Requires(postun): ghc-compiler = %{ghc_version} This package provides the Haskell %{pkg_name} library development files. %prep -%setup -q -n %{pkg_name}-%{version} +%autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/unix-compat.cabal b/unix-compat.cabal new file mode 100644 index 0000000..06eec20 --- /dev/null +++ b/unix-compat.cabal @@ -0,0 +1,73 @@ +name: unix-compat +version: 0.5.2 +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: http://github.com/jacobstanley/unix-compat +license: BSD3 +license-file: LICENSE +author: Björn Bringert, Duncan Coutts, Jacob Stanley, Bryan O'Sullivan +maintainer: Jacob Stanley +category: System +build-type: Simple +cabal-version: >= 1.6 + +source-repository head + type: git + location: git://github.com/jacobstanley/unix-compat.git + +flag old-time + description: build against old-time package + default: False + +Library + hs-source-dirs: src + ghc-options: -Wall + build-depends: base == 4.* + + exposed-modules: + System.PosixCompat + System.PosixCompat.Extensions + System.PosixCompat.Files + System.PosixCompat.Temp + System.PosixCompat.Time + System.PosixCompat.Types + System.PosixCompat.Unistd + System.PosixCompat.User + + if os(windows) + c-sources: + cbits/HsUname.c + cbits/mktemp.c + + extra-libraries: msvcrt + build-depends: Win32 >= 2.5.0.0 + + if flag(old-time) + build-depends: old-time >= 1.0.0.0 && < 1.2.0.0 + cpp-options: -DOLD_TIME + + if impl(ghc < 7) + build-depends: directory == 1.0.* + cpp-options: -DDIRECTORY_1_0 + else + build-depends: directory == 1.1.* + else + build-depends: time >= 1.0 && < 1.10 + build-depends: directory >= 1.2 && < 1.4 + + 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