osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-network-bsd revision:2, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-network-bsd?expand=0&rev=1
This commit is contained in:
commit
719104f3fd
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
5
ghc-network-bsd.changes
Normal file
5
ghc-network-bsd.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 9 09:26:36 UTC 2020 - psimons@suse.com
|
||||
|
||||
- Add network-bsd at version 2.8.1.0.
|
||||
|
102
ghc-network-bsd.spec
Normal file
102
ghc-network-bsd.spec
Normal file
@ -0,0 +1,102 @@
|
||||
#
|
||||
# spec file for package ghc-network-bsd
|
||||
#
|
||||
# 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global pkg_name network-bsd
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 2.8.1.0
|
||||
Release: 0
|
||||
Summary: POSIX network database (<netdb.h>) API
|
||||
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/3.cabal#/%{pkg_name}.cabal
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-deepseq-devel
|
||||
BuildRequires: ghc-network-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
|
||||
%description
|
||||
This package provides Haskell bindings to the the [POSIX network database
|
||||
(<netdb.h>)
|
||||
API](http://pubs.opengroup.org/onlinepubs/009696699/basedefs/netdb.h.html).
|
||||
|
||||
=== Relationship to the 'network' package
|
||||
|
||||
The 'network' package version 2.* series provides "Network.BSD" but it is
|
||||
removed starting with 'network' version 3.0.
|
||||
|
||||
This package provides the "Network.BSD" module split off from the
|
||||
<https://hackage.haskell.org/package/network network package>.
|
||||
|
||||
If in addition to the 'network''s modules also "Network.BSD" is necessary, add
|
||||
'network-bsd' to your dependencies like so:
|
||||
|
||||
> library > build-depends: network >= 2.7 && < 3.1 > , network-bsd >= 2.7 && <
|
||||
2.9
|
||||
|
||||
I.e. you can control the version of the 'network' package independently.
|
||||
|
||||
__NOTE__: Starting with 'network-bsd-2.8.1.0' the APIs of 'network' and
|
||||
'network-bsd' evolve differently, and consequently the versioning doesn't match
|
||||
up anymore! Moreover, also starting with version 'network-bsd-2.8.1.0' this
|
||||
package requires 'network >= 3' in order to avoid module name clashes with
|
||||
'network < 3''s "Network.BSD" module.
|
||||
|
||||
However, 'network-bsd-2.7.0.0' and 'network-bsd-2.8.0.0' passes thru the
|
||||
"Network.BSD" module from 'network-2.7.*' and 'network-2.8.*' respectively in a
|
||||
non-clashing way via Cabal's
|
||||
<https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-field-library-reexported-modules
|
||||
reexported-modules> feature while ensuring a well-defined
|
||||
<https://pvp.haskell.org/ API versioning> of the observable API of
|
||||
'network-bsd'. This is why the example above supporting a wide range of
|
||||
'network' versions works by including version 2.7.0.0 in the required version
|
||||
range of 'network-bsd'.
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
Requires(post): ghc-compiler = %{ghc_version}
|
||||
Requires(postun): ghc-compiler = %{ghc_version}
|
||||
|
||||
%description devel
|
||||
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
|
||||
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
%files -f %{name}.files
|
||||
%license LICENSE
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
%doc CHANGELOG.md
|
||||
|
||||
%changelog
|
3
network-bsd-2.8.1.0.tar.gz
Normal file
3
network-bsd-2.8.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d94961ca15c42c798d19cde540ec12b25cc43435fb95e682399d6c1a02022d4e
|
||||
size 8584
|
90
network-bsd.cabal
Normal file
90
network-bsd.cabal
Normal file
@ -0,0 +1,90 @@
|
||||
cabal-version: 1.12
|
||||
name: network-bsd
|
||||
version: 2.8.1.0
|
||||
x-revision: 3
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
maintainer: Kazu Yamamoto, Herbert Valerio Riedel
|
||||
synopsis: POSIX network database (<netdb.h>) API
|
||||
description:
|
||||
This package provides Haskell bindings to the
|
||||
the [POSIX network database (<netdb.h>) API](http://pubs.opengroup.org/onlinepubs/009696699/basedefs/netdb.h.html).
|
||||
.
|
||||
=== Relationship to the @network@ package
|
||||
.
|
||||
The @network@ package version 2.* series provides "Network.BSD" but
|
||||
it is removed starting with @network@ version 3.0.
|
||||
.
|
||||
This package provides the "Network.BSD" module split off from the
|
||||
<https://hackage.haskell.org/package/network network package>.
|
||||
.
|
||||
If in addition to the @network@'s modules also "Network.BSD" is
|
||||
necessary, add @network-bsd@ to your dependencies like so:
|
||||
.
|
||||
> library
|
||||
> build-depends: network >= 2.7 && < 3.1
|
||||
> , network-bsd >= 2.7 && < 2.9
|
||||
.
|
||||
I.e. you can control the version of the @network@ package
|
||||
independently.
|
||||
.
|
||||
__NOTE__: Starting with @network-bsd-2.8.1.0@ the APIs of @network@
|
||||
and @network-bsd@ evolve differently, and consequently the
|
||||
versioning doesn't match up anymore! Moreover, also starting with
|
||||
version @network-bsd-2.8.1.0@ this package requires @network >= 3@
|
||||
in order to avoid module name clashes with @network < 3@'s
|
||||
"Network.BSD" module.
|
||||
.
|
||||
However, @network-bsd-2.7.0.0@ and @network-bsd-2.8.0.0@ passes thru
|
||||
the "Network.BSD" module from @network-2.7.*@ and @network-2.8.*@
|
||||
respectively in a non-clashing way via Cabal's
|
||||
<https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-field-library-reexported-modules reexported-modules>
|
||||
feature while ensuring a well-defined
|
||||
<https://pvp.haskell.org/ API versioning> of the observable API of
|
||||
@network-bsd@. This is why the example above supporting a wide range
|
||||
of @network@ versions works by including version 2.7.0.0 in the
|
||||
required version range of @network-bsd@.
|
||||
|
||||
category: Network
|
||||
build-type: Simple
|
||||
homepage: https://github.com/haskell/network-bsd
|
||||
bug-reports: https://github.com/haskell/network-bsd/issues
|
||||
tested-with: GHC == 7.8.4
|
||||
, GHC == 7.10.3
|
||||
, GHC == 8.0.2
|
||||
, GHC == 8.2.2
|
||||
, GHC == 8.4.4
|
||||
, GHC == 8.6.3
|
||||
extra-source-files: CHANGELOG.md
|
||||
|
||||
library
|
||||
default-language: Haskell2010
|
||||
other-extensions: CPP, NondecreasingIndentation
|
||||
exposed-modules: Network.BSD
|
||||
build-depends: base >= 4.7 && < 5
|
||||
, deepseq >= 1.3.0.0 && < 1.5
|
||||
-- NOTES on `network` depdendency
|
||||
--
|
||||
-- `network-bsd` heavily relies on `network`'s
|
||||
-- exported CPP headers! make sure that `network`
|
||||
-- doesn't inadvertently break/change its CPP
|
||||
-- headers before advertising support for new
|
||||
-- versions of `network`.
|
||||
--
|
||||
-- Moreover, `network-bsd` reexports entities from
|
||||
-- `network` so we need to be very conservative
|
||||
-- with the bounds to avoid leaking through API
|
||||
-- changes that aren't reflected in `network-bsd`'s
|
||||
-- API version.
|
||||
, network (>= 3.0.0.0 && < 3.0.2)
|
||||
|| (>= 3.1.0.0 && < 3.1.2)
|
||||
build-tools: hsc2hs >= 0.67 && < 0.69
|
||||
ghc-options: -Wall
|
||||
|
||||
if os(windows) && impl(ghc >= 7.10)
|
||||
-- See https://github.com/haskell/network/pull/362
|
||||
cpp-options: -D_WIN32_WINNT=0x0600
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: git://github.com/haskell/network-bsd.git
|
Loading…
Reference in New Issue
Block a user