Hello community,

here is the log from the commit of package ghc-unix-compat for openSUSE:Factory 
checked in at 2017-01-31 12:45:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-unix-compat (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-unix-compat.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-unix-compat"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-unix-compat/ghc-unix-compat.changes  
2017-01-12 15:52:47.573289568 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-unix-compat.new/ghc-unix-compat.changes     
2017-02-03 17:40:24.169757157 +0100
@@ -1,0 +2,5 @@
+Mon Jan 16 09:44:51 UTC 2017 - [email protected]
+
+- Update to version 0.4.3.1 revision 1 with cabal2obs.
+
+-------------------------------------------------------------------

New:
----
  unix-compat.cabal

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-unix-compat.spec ++++++
--- /var/tmp/diff_new_pack.2RoUla/_old  2017-02-03 17:40:24.633691491 +0100
+++ /var/tmp/diff_new_pack.2RoUla/_new  2017-02-03 17:40:24.637690925 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-unix-compat
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -25,6 +25,7 @@
 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/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-unix-devel
@@ -48,6 +49,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ unix-compat.cabal ++++++
name:           unix-compat
version:        0.4.3.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/jystic/unix-compat
license:        BSD3
license-file:   LICENSE
author:         Björn Bringert, Duncan Coutts, Jacob Stanley, Bryan O'Sullivan
maintainer:     Jacob Stanley <[email protected]>
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.4

    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

Reply via email to