From c0db0852454ff5d31bbde17a15699c2dfaceca684841050da56c3c55d17b88d3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 15 May 2019 01:01:46 +0000 Subject: [PATCH 1/3] osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-unix-compat revision:5, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-unix-compat?expand=0&rev=35 --- ghc-unix-compat.spec | 2 ++ unix-compat.cabal | 73 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 unix-compat.cabal diff --git a/ghc-unix-compat.spec b/ghc-unix-compat.spec index 2b6efaa..bf18892 100644 --- a/ghc-unix-compat.spec +++ b/ghc-unix-compat.spec @@ -25,6 +25,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-rpm-macros BuildRequires: ghc-unix-devel @@ -47,6 +48,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 diff --git a/unix-compat.cabal b/unix-compat.cabal new file mode 100644 index 0000000..aaa922b --- /dev/null +++ b/unix-compat.cabal @@ -0,0 +1,73 @@ +name: unix-compat +version: 0.5.1 +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.9 + 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 From 9e58177d9a459a8e631a411716fed16a3d67281d1b87edbd67af1bc7294909b4 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 12 Jun 2019 01:01:41 +0000 Subject: [PATCH 2/3] osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-unix-compat revision:6, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-unix-compat?expand=0&rev=36 --- ghc-unix-compat.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghc-unix-compat.changes b/ghc-unix-compat.changes index d8a6e1d..a615b16 100644 --- a/ghc-unix-compat.changes +++ b/ghc-unix-compat.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 11 14:29:20 UTC 2019 - Peter Simons + +- Update Cabal file for more accurate build dependencies. + ------------------------------------------------------------------- Sat Oct 20 11:32:11 UTC 2018 - Peter Simons From e439a8be53789f78882baf4818e0ccaa93d8a2789abb6a512db4d27f321f1a76 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 13 Jun 2019 01:02:00 +0000 Subject: [PATCH 3/3] osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-unix-compat revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-unix-compat?expand=0&rev=37 --- ghc-unix-compat.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc-unix-compat.spec b/ghc-unix-compat.spec index bf18892..e7bdba0 100644 --- a/ghc-unix-compat.spec +++ b/ghc-unix-compat.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-unix-compat # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed