Accepting request 1104411 from devel:languages:haskell

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1104411
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-network-bsd?expand=0&rev=8
This commit is contained in:
Ana Guerrero 2023-08-18 17:28:05 +00:00 committed by Git OBS Bridge
commit 9f07bfa283
3 changed files with 106 additions and 91 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Aug 6 09:54:49 UTC 2023 - Peter Simons <psimons@suse.com>
- Update network-bsd to version 2.8.1.0 revision 5.
Upstream has revised the Cabal build instructions on Hackage.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 30 17:07:40 UTC 2023 - Peter Simons <psimons@suse.com> Thu Mar 30 17:07:40 UTC 2023 - Peter Simons <psimons@suse.com>

View File

@ -25,7 +25,7 @@ Summary: POSIX network database (<netdb.h>) API
License: BSD-3-Clause License: BSD-3-Clause
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
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/4.cabal#/%{pkg_name}.cabal Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/5.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof BuildRequires: ghc-base-prof

View File

@ -1,90 +1,99 @@
cabal-version: 1.12 cabal-version: 1.12
name: network-bsd name: network-bsd
version: 2.8.1.0 version: 2.8.1.0
x-revision: 4 x-revision: 5
license: BSD3 license: BSD3
license-file: LICENSE license-file: LICENSE
maintainer: Kazu Yamamoto, Herbert Valerio Riedel maintainer: Kazu Yamamoto, Herbert Valerio Riedel
synopsis: POSIX network database (<netdb.h>) API synopsis: POSIX network database (<netdb.h>) API
description: description:
This package provides Haskell bindings to the This package provides Haskell bindings to the
the [POSIX network database (netdb.h) API](http://pubs.opengroup.org/onlinepubs/009696699/basedefs/netdb.h.html). the [POSIX network database (netdb.h) API](http://pubs.opengroup.org/onlinepubs/009696699/basedefs/netdb.h.html).
. .
=== Relationship to the @network@ package === Relationship to the @network@ package
. .
The @network@ package version 2.* series provides "Network.BSD" but The @network@ package version 2.* series provides "Network.BSD" but
it is removed starting with @network@ version 3.0. it is removed starting with @network@ version 3.0.
. .
This package provides the "Network.BSD" module split off from the This package provides the "Network.BSD" module split off from the
<https://hackage.haskell.org/package/network network package>. <https://hackage.haskell.org/package/network network package>.
. .
If in addition to the @network@'s modules also "Network.BSD" is If in addition to the @network@'s modules also "Network.BSD" is
necessary, add @network-bsd@ to your dependencies like so: necessary, add @network-bsd@ to your dependencies like so:
. .
> library > library
> build-depends: network >= 2.7 && < 3.2 > build-depends: network >= 2.7 && < 3.2
> , network-bsd >= 2.7 && < 2.9 > , network-bsd >= 2.7 && < 2.9
. .
I.e. you can control the version of the @network@ package I.e. you can control the version of the @network@ package
independently. independently.
. .
__NOTE__: Starting with @network-bsd-2.8.1.0@ the APIs of @network@ __NOTE__: Starting with @network-bsd-2.8.1.0@ the APIs of @network@
and @network-bsd@ evolve differently, and consequently the and @network-bsd@ evolve differently, and consequently the
versioning doesn't match up anymore! Moreover, also starting with versioning doesn't match up anymore! Moreover, also starting with
version @network-bsd-2.8.1.0@ this package requires @network >= 3@ version @network-bsd-2.8.1.0@ this package requires @network >= 3@
in order to avoid module name clashes with @network < 3@'s in order to avoid module name clashes with @network < 3@'s
"Network.BSD" module. "Network.BSD" module.
. .
However, @network-bsd-2.7.0.0@ and @network-bsd-2.8.0.0@ passes thru 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.*@ the "Network.BSD" module from @network-2.7.*@ and @network-2.8.*@
respectively in a non-clashing way via Cabal's 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> <https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-field-library-reexported-modules reexported-modules>
feature while ensuring a well-defined feature while ensuring a well-defined
<https://pvp.haskell.org/ API versioning> of the observable API of <https://pvp.haskell.org/ API versioning> of the observable API of
@network-bsd@. This is why the example above supporting a wide range @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 of @network@ versions works by including version 2.7.0.0 in the
required version range of @network-bsd@. required version range of @network-bsd@.
category: Network category: Network
build-type: Simple build-type: Simple
homepage: https://github.com/haskell/network-bsd homepage: https://github.com/haskell/network-bsd
bug-reports: https://github.com/haskell/network-bsd/issues bug-reports: https://github.com/haskell/network-bsd/issues
tested-with: GHC == 7.8.4
, GHC == 7.10.3 tested-with:
, GHC == 8.0.2 GHC == 9.6.2
, GHC == 8.2.2 GHC == 9.4.5
, GHC == 8.4.4 GHC == 9.2.8
, GHC == 8.6.3 GHC == 9.0.2
extra-source-files: CHANGELOG.md GHC == 8.10.7
GHC == 8.8.4
library GHC == 8.6.5
default-language: Haskell2010 GHC == 8.4.4
other-extensions: CPP, NondecreasingIndentation GHC == 8.2.2
exposed-modules: Network.BSD GHC == 8.0.2
build-depends: base >= 4.7 && < 5 GHC == 7.10.3
, deepseq >= 1.3.0.0 && < 1.5 GHC == 7.8.4
-- NOTES on `network` depdendency
-- extra-source-files: CHANGELOG.md
-- `network-bsd` heavily relies on `network`'s
-- exported CPP headers! make sure that `network` library
-- doesn't inadvertently break/change its CPP default-language: Haskell2010
-- headers before advertising support for new other-extensions: CPP, NondecreasingIndentation
-- versions of `network`. exposed-modules: Network.BSD
-- build-depends: base >= 4.7 && < 5
-- Moreover, `network-bsd` reexports entities from , deepseq >= 1.3.0.0 && < 1.6
-- `network` so we need to be very conservative -- NOTES on `network` depdendency
-- with the bounds to avoid leaking through API --
-- changes that aren't reflected in `network-bsd`'s -- `network-bsd` heavily relies on `network`'s
-- API version. -- exported CPP headers! make sure that `network`
, network (>= 3.0.0.0 && < 3.0.2) -- doesn't inadvertently break/change its CPP
|| (>= 3.1.0.0 && < 3.2) -- headers before advertising support for new
build-tools: hsc2hs >= 0.67 && < 0.69 -- versions of `network`.
ghc-options: -Wall --
-- Moreover, `network-bsd` reexports entities from
if os(windows) && impl(ghc >= 7.10) -- `network` so we need to be very conservative
-- See https://github.com/haskell/network/pull/362 -- with the bounds to avoid leaking through API
cpp-options: -D_WIN32_WINNT=0x0600 -- changes that aren't reflected in `network-bsd`'s
-- API version.
source-repository head , network (>= 3.0.0.0 && < 3.0.2)
type: git || (>= 3.1.0.0 && < 3.2)
location: git://github.com/haskell/network-bsd.git 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: https://github.com/haskell/network-bsd.git