17
0

6 Commits

Author SHA256 Message Date
47c1b32a95 Accepting request 1296445 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1296445
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-postgresql-libpq?expand=0&rev=15
2025-07-31 15:45:37 +00:00
3be9c3b466 osc copypac from project:devel:languages:haskell:ghc-9.12.x package:ghc-postgresql-libpq revision:4, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-postgresql-libpq?expand=0&rev=38
2025-07-29 21:00:54 +00:00
0f44a44aea osc copypac from project:devel:languages:haskell:ghc-9.12.x package:ghc-postgresql-libpq revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-postgresql-libpq?expand=0&rev=37
2025-07-28 20:00:07 +00:00
1e7d11f00b Accepting request 1293497 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1293497
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-postgresql-libpq?expand=0&rev=14
2025-07-16 13:52:14 +00:00
96b99247dd osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-postgresql-libpq revision:4, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-postgresql-libpq?expand=0&rev=35
2025-07-15 17:44:56 +00:00
95202806c5 osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-postgresql-libpq revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-postgresql-libpq?expand=0&rev=34
2025-07-14 21:01:19 +00:00
5 changed files with 41 additions and 34 deletions

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Tue Jul 29 14:04:46 UTC 2025 - Peter Simons <psimons@suse.com>
- Configure build to use pg_config.
-------------------------------------------------------------------
Fri Dec 27 19:45:48 UTC 2024 - Peter Simons <psimons@suse.com>
- Update postgresql-libpq to version 0.11.0.0 revision 1.
0.11
----
- Add pipeline mode API
https://www.postgresql.org/docs/current/libpq-pipeline-mode.html
There are new values in `ExecStatus`, therefore the major version release.
0.10.2.0
--------
- Split the c library dependency into separate packages.
Now the dependencies are either all `build-type: Simple` (`-f +use-pkg-config`)
or `build-type: Configure` (`-f -use-pkg-config`).
-------------------------------------------------------------------
Tue Jul 9 14:17:52 UTC 2024 - Peter Simons <psimons@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package ghc-postgresql-libpq
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.10.1.0
Version: 0.11.0.0
Release: 0
Summary: Low-level binding to libpq
License: BSD-3-Clause
@@ -28,15 +28,16 @@ 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-Cabal-prof
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-postgresql-libpq-configure-devel
BuildRequires: ghc-postgresql-libpq-configure-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-unix-devel
BuildRequires: ghc-unix-prof
BuildRequires: postgresql-server-devel
BuildRequires: postgresql-devel
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-tasty-devel
@@ -55,7 +56,6 @@ these queries.
Summary: Haskell %{pkg_name} library development files
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires: postgresql-server-devel
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
@@ -84,6 +84,7 @@ This package provides the Haskell %{pkg_name} profiling library.
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%define cabal_configure_options -f-use-pkg-config
%ghc_lib_build
%install

View File

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

View File

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

View File

@@ -1,6 +1,6 @@
cabal-version: 2.4
name: postgresql-libpq
version: 0.10.1.0
version: 0.11.0.0
x-revision: 1
synopsis: low-level binding to libpq
description:
@@ -22,7 +22,7 @@ copyright:
(c) 2011 Leon P Smith
category: Database
build-type: Custom
build-type: Simple
extra-source-files: cbits/hs-libpq.h
tested-with:
GHC ==8.6.5
@@ -31,17 +31,13 @@ tested-with:
|| ==9.0.2
|| ==9.2.8
|| ==9.4.8
|| ==9.6.5
|| ==9.8.2
|| ==9.6.6
|| ==9.8.4
|| ==9.10.1
|| ==9.12.1
extra-source-files: CHANGELOG.md
custom-setup
setup-depends:
, base >=4.12.0.0 && <5
, Cabal >=2.4 && <3.13
-- If true, use pkg-config, otherwise use the pg_config based build
-- configuration
flag use-pkg-config
@@ -77,7 +73,7 @@ library
Database.PostgreSQL.LibPQ.Ptr
build-depends:
, base >=4.12.0.0 && <4.21
, base >=4.12.0.0 && <4.22
, bytestring >=0.10.8.2 && <0.13
if !os(windows)
@@ -87,24 +83,10 @@ library
build-depends: Win32 >=2.2.0.2 && <2.15
if flag(use-pkg-config)
pkgconfig-depends: libpq >=10.22
build-depends: postgresql-libpq-pkgconfig ^>=0.11
else
if os(windows)
-- Due to https://sourceware.org/bugzilla/show_bug.cgi?id=22948,
-- if we specify pq instead of libpq, then ld might link against
-- libpq.dll directly, which can lead to segfaults. As a temporary hack,
-- we force ld to link against the libpq.lib import library directly
-- by specifying libpq here.
extra-libraries: libpq
else
extra-libraries: pq
if os(openbsd)
extra-libraries:
crypto
ssl
build-depends: postgresql-libpq-configure ^>=0.11
build-tool-depends: hsc2hs:hsc2hs >=0.68.5