Accepting request 430852 from devel:languages:haskell:lts:7

update devel:languages:haskell to LTS 7.x

OBS-URL: https://build.opensuse.org/request/show/430852
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-unix-compat?expand=0&rev=5
This commit is contained in:
Peter Simons 2016-09-28 11:55:07 +00:00 committed by Git OBS Bridge
parent 60d42dbd40
commit 24b50fe675
5 changed files with 10 additions and 85 deletions

73
2.cabal
View File

@ -1,73 +0,0 @@
name: unix-compat
version: 0.4.1.4
x-revision: 2
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/jystic/unix-compat
license: BSD3
license-file: LICENSE
author: Björn Bringert, Duncan Coutts, Jacob Stanley, Bryan O'Sullivan
maintainer: Jacob Stanley <jacob@stanley.io>
category: System
build-type: Simple
cabal-version: >= 1.6
source-repository head
type: git
location: git://github.com/jystic/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.3.0.2
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.7
build-depends: directory >= 1.2 && < 1.2.6
other-modules:
System.PosixCompat.Internal.Time
else
build-depends: unix >= 2.4 && < 2.8
include-dirs: include
includes: HsUnixCompat.h
install-includes: HsUnixCompat.h
c-sources: cbits/HsUnixCompat.c
if os(solaris)
cc-options: -DSOLARIS

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 15 06:38:56 UTC 2016 - psimons@suse.com
- Update to version 0.4.2.0 revision 0 with cabal2obs.
-------------------------------------------------------------------
Sun Jul 10 17:16:42 UTC 2016 - psimons@suse.com

View File

@ -18,20 +18,17 @@
%global pkg_name unix-compat
Name: ghc-%{pkg_name}
Version: 0.4.1.4
Version: 0.4.2.0
Release: 0
Summary: Portable POSIX-compatibility layer
License: BSD-3-Clause
Group: System/Libraries
Group: Development/Languages/Other
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/2.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-unix-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# End cabal-rpm deps
%description
This package provides portable implementations of parts of the unix package.
@ -51,17 +48,13 @@ 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
%install
%ghc_lib_install
%post devel
%ghc_pkg_recache

View File

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

View File

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