Accepting request 410905 from devel:languages:haskell:lts:6
See https://lists.opensuse.org/opensuse-haskell/2016-07/msg00000.html for details. OBS-URL: https://build.opensuse.org/request/show/410905 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-unix-compat?expand=0&rev=3
This commit is contained in:
parent
8fcbc49466
commit
60d42dbd40
73
2.cabal
Normal file
73
2.cabal
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
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
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 10 17:16:42 UTC 2016 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update to version 0.4.1.4 revision 2 with cabal2obs.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 23 20:45:13 UTC 2015 - mimi.vx@gmail.com
|
Thu Apr 23 20:45:13 UTC 2015 - mimi.vx@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghc-unix-compat
|
# spec file for package ghc-unix-compat
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -15,23 +15,22 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
%global pkg_name unix-compat
|
|
||||||
|
|
||||||
|
%global pkg_name unix-compat
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.4.1.4
|
Version: 0.4.1.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Portable POSIX-compatibility layer
|
Summary: Portable POSIX-compatibility layer
|
||||||
Group: System/Libraries
|
|
||||||
|
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
|
Group: System/Libraries
|
||||||
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
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal
|
||||||
|
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
# Begin cabal-rpm deps:
|
# Begin cabal-rpm deps:
|
||||||
BuildRequires: ghc-unix-devel
|
BuildRequires: ghc-unix-devel
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# End cabal-rpm deps
|
# End cabal-rpm deps
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -39,21 +38,20 @@ This package provides portable implementations of parts of the unix package.
|
|||||||
This package re-exports the unix package when available. When it isn't
|
This package re-exports the unix package when available. When it isn't
|
||||||
available, portable implementations are used.
|
available, portable implementations are used.
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Haskell %{pkg_name} library development files
|
Summary: Haskell %{pkg_name} library development files
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: ghc-compiler = %{ghc_version}
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
Requires(post): ghc-compiler = %{ghc_version}
|
Requires(post): ghc-compiler = %{ghc_version}
|
||||||
Requires(postun): ghc-compiler = %{ghc_version}
|
Requires(postun): ghc-compiler = %{ghc_version}
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package provides the Haskell %{pkg_name} library development files.
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pkg_name}-%{version}
|
%setup -q -n %{pkg_name}-%{version}
|
||||||
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -67,18 +65,14 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
%post devel
|
%post devel
|
||||||
%ghc_pkg_recache
|
%ghc_pkg_recache
|
||||||
|
|
||||||
|
|
||||||
%postun devel
|
%postun devel
|
||||||
%ghc_pkg_recache
|
%ghc_pkg_recache
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
|
|
||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%files devel -f %{name}-devel.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user