commit ghc-postgresql-libpq for openSUSE:Factory

2020-09-07 Thread root
Hello community,

here is the log from the commit of package ghc-postgresql-libpq for 
openSUSE:Factory checked in at 2020-09-07 22:03:22

Comparing /work/SRC/openSUSE:Factory/ghc-postgresql-libpq (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new.3399 (New)


Package is "ghc-postgresql-libpq"

Mon Sep  7 22:03:22 2020 rev:3 rq:832305 version:0.9.4.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-postgresql-libpq/ghc-postgresql-libpq.changes
2020-08-28 21:36:17.984750001 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new.3399/ghc-postgresql-libpq.changes
  2020-09-07 22:03:25.138101008 +0200
@@ -1,0 +2,6 @@
+Mon Aug 31 09:34:30 UTC 2020 - psim...@suse.com
+
+- Update postgresql-libpq to version 0.9.4.2 revision 2.
+  Upstream has revised the Cabal build instructions on Hackage.
+
+---



Other differences:
--



commit ghc-postgresql-libpq for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-postgresql-libpq for 
openSUSE:Factory checked in at 2020-08-28 21:36:17

Comparing /work/SRC/openSUSE:Factory/ghc-postgresql-libpq (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new.3399 (New)


Package is "ghc-postgresql-libpq"

Fri Aug 28 21:36:17 2020 rev:2 rq:829384 version:0.9.4.2

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-postgresql-libpq/ghc-postgresql-libpq.changes
2020-06-19 17:03:26.372523845 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new.3399/ghc-postgresql-libpq.changes
  2020-08-28 21:36:17.984750001 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:45:44 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-postgresql-libpq.spec ++
--- /var/tmp/diff_new_pack.eOEu7f/_old  2020-08-28 21:36:18.544750266 +0200
+++ /var/tmp/diff_new_pack.eOEu7f/_new  2020-08-28 21:36:18.548750268 +0200
@@ -51,7 +51,7 @@
 files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build




commit ghc-postgresql-libpq for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-postgresql-libpq for 
openSUSE:Factory checked in at 2017-09-15 22:06:04

Comparing /work/SRC/openSUSE:Factory/ghc-postgresql-libpq (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new (New)


Package is "ghc-postgresql-libpq"

Fri Sep 15 22:06:04 2017 rev:5 rq:525202 version:0.9.3.1

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-postgresql-libpq/ghc-postgresql-libpq.changes
2017-06-04 01:58:29.895480651 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new/ghc-postgresql-libpq.changes
   2017-09-15 22:06:04.520771597 +0200
@@ -1,0 +2,5 @@
+Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
+
+- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
+
+---



Other differences:
--
++ ghc-postgresql-libpq.spec ++
--- /var/tmp/diff_new_pack.IcYO2P/_old  2017-09-15 22:06:05.240670166 +0200
+++ /var/tmp/diff_new_pack.IcYO2P/_new  2017-09-15 22:06:05.244669602 +0200
@@ -22,14 +22,13 @@
 Release:0
 Summary:Low-level binding to libpq
 License:BSD-3-Clause
-Group:  Development/Languages/Other
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-rpm-macros
-BuildRequires:  postgresql94-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  postgresql-devel
 
 %description
 This is a binding to libpq: the C application programmer's interface to
@@ -39,10 +38,10 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
-Requires:   postgresql94-devel
+Requires:   postgresql-devel
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
 
@@ -66,10 +65,8 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 
 %changelog




commit ghc-postgresql-libpq for openSUSE:Factory

2017-06-03 Thread root
Hello community,

here is the log from the commit of package ghc-postgresql-libpq for 
openSUSE:Factory checked in at 2017-06-04 01:58:29

Comparing /work/SRC/openSUSE:Factory/ghc-postgresql-libpq (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new (New)


Package is "ghc-postgresql-libpq"

Sun Jun  4 01:58:29 2017 rev:4 rq:499721 version:0.9.3.1

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-postgresql-libpq/ghc-postgresql-libpq.changes
2017-02-03 17:39:41.899740080 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new/ghc-postgresql-libpq.changes
   2017-06-04 01:58:29.895480651 +0200
@@ -1,0 +2,5 @@
+Thu May 18 09:52:18 UTC 2017 - psim...@suse.com
+
+- Update to version 0.9.3.1 with cabal2obs.
+
+---

Old:

  postgresql-libpq-0.9.3.0.tar.gz

New:

  postgresql-libpq-0.9.3.1.tar.gz



Other differences:
--
++ ghc-postgresql-libpq.spec ++
--- /var/tmp/diff_new_pack.AfnqMy/_old  2017-06-04 01:58:30.551387988 +0200
+++ /var/tmp/diff_new_pack.AfnqMy/_new  2017-06-04 01:58:30.555387423 +0200
@@ -18,7 +18,7 @@
 
 %global pkg_name postgresql-libpq
 Name:   ghc-%{pkg_name}
-Version:0.9.3.0
+Version:0.9.3.1
 Release:0
 Summary:Low-level binding to libpq
 License:BSD-3-Clause

++ postgresql-libpq-0.9.3.0.tar.gz -> postgresql-libpq-0.9.3.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/postgresql-libpq-0.9.3.0/Setup.hs 
new/postgresql-libpq-0.9.3.1/Setup.hs
--- old/postgresql-libpq-0.9.3.0/Setup.hs   2017-01-09 19:16:45.0 
+0100
+++ new/postgresql-libpq-0.9.3.1/Setup.hs   2017-05-15 07:45:38.0 
+0200
@@ -1,4 +1,8 @@
-#!/usr/bin/env runhaskell
+{-# LANGUAGE CPP #-}
+
+#ifndef MIN_VERSION_Cabal
+#define MIN_VERSION_Cabal(x,y,z) 0
+#endif
 
 import Distribution.Simple
 import Distribution.Simple.Setup
@@ -12,9 +16,28 @@
 import Data.Char (isSpace)
 import Data.List (dropWhile,reverse)
 
+#if MIN_VERSION_Cabal(2,0,0)
+import Distribution.Types.UnqualComponentName
+#endif
+
+flag :: String -> FlagName
+#if MIN_VERSION_Cabal(2,0,0)
+flag = mkFlagName
+#else
+flag = FlagName
+#endif
+
+#if MIN_VERSION_Cabal(2,0,0)
+unqualComponentName :: String -> UnqualComponentName
+unqualComponentName = mkUnqualComponentName
+#else
+unqualComponentName :: String -> String
+unqualComponentName = id
+#endif
+
 main = defaultMainWithHooks simpleUserHooks {
   confHook = \pkg flags -> do
-if lookup (FlagName "use-pkg-config") 
+if lookup (flag "use-pkg-config")
   (configConfigurationsFlags flags) == Just True
 then do
   confHook simpleUserHooks pkg flags
@@ -24,7 +47,7 @@
 
   return lbi {
 localPkgDescr = updatePackageDescription
-  (Just bi, [("runtests", bi)]) (localPkgDescr lbi)
+  (Just bi, [(unqualComponentName "runtests", bi)]) 
(localPkgDescr lbi)
   }
 }
 
@@ -32,7 +55,7 @@
 psqlBuildInfo lbi = do
   (pgconfigProg, _) <- requireProgram verbosity
  (simpleProgram "pg_config") (withPrograms lbi)
-  let pgconfig = rawSystemProgramStdout verbosity pgconfigProg
+  let pgconfig = getProgramOutput verbosity pgconfigProg
 
   incDir <- pgconfig ["--includedir"]
   libDir <- pgconfig ["--libdir"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/postgresql-libpq-0.9.3.0/postgresql-libpq.cabal 
new/postgresql-libpq-0.9.3.1/postgresql-libpq.cabal
--- old/postgresql-libpq-0.9.3.0/postgresql-libpq.cabal 2017-01-09 
19:16:45.0 +0100
+++ new/postgresql-libpq-0.9.3.1/postgresql-libpq.cabal 2017-05-15 
07:45:38.0 +0200
@@ -1,5 +1,5 @@
 Name:postgresql-libpq
-Version: 0.9.3.0
+Version: 0.9.3.1
 Synopsis:low-level binding to libpq
 
 Description: This is a binding to libpq: the C application
@@ -54,4 +54,4 @@
 source-repository this
   type: git
   location: http://github.com/lpsmith/postgresql-libpq
-  tag:  v0.9.3.0
+  tag:  v0.9.3.1




commit ghc-postgresql-libpq for openSUSE:Factory

2017-02-03 Thread root
Hello community,

here is the log from the commit of package ghc-postgresql-libpq for 
openSUSE:Factory checked in at 2017-01-31 12:44:55

Comparing /work/SRC/openSUSE:Factory/ghc-postgresql-libpq (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new (New)


Package is "ghc-postgresql-libpq"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-postgresql-libpq/ghc-postgresql-libpq.changes
2016-11-02 12:47:18.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new/ghc-postgresql-libpq.changes
   2017-02-03 17:39:41.899740080 +0100
@@ -1,0 +2,5 @@
+Wed Jan 18 09:00:27 UTC 2017 - psim...@suse.com
+
+- Update to version 0.9.3.0 with cabal2obs.
+
+---

Old:

  postgresql-libpq-0.9.2.0.tar.gz

New:

  postgresql-libpq-0.9.3.0.tar.gz



Other differences:
--
++ ghc-postgresql-libpq.spec ++
--- /var/tmp/diff_new_pack.2oJxL4/_old  2017-02-03 17:39:42.431664791 +0100
+++ /var/tmp/diff_new_pack.2oJxL4/_new  2017-02-03 17:39:42.431664791 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-postgresql-libpq
 #
-# 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
@@ -18,7 +18,7 @@
 
 %global pkg_name postgresql-libpq
 Name:   ghc-%{pkg_name}
-Version:0.9.2.0
+Version:0.9.3.0
 Release:0
 Summary:Low-level binding to libpq
 License:BSD-3-Clause

++ postgresql-libpq-0.9.2.0.tar.gz -> postgresql-libpq-0.9.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/postgresql-libpq-0.9.2.0/postgresql-libpq.cabal 
new/postgresql-libpq-0.9.3.0/postgresql-libpq.cabal
--- old/postgresql-libpq-0.9.2.0/postgresql-libpq.cabal 2016-08-25 
22:35:33.0 +0200
+++ new/postgresql-libpq-0.9.3.0/postgresql-libpq.cabal 2017-01-09 
19:16:45.0 +0100
@@ -1,5 +1,5 @@
 Name:postgresql-libpq
-Version: 0.9.2.0
+Version: 0.9.3.0
 Synopsis:low-level binding to libpq
 
 Description: This is a binding to libpq: the C application
@@ -54,4 +54,4 @@
 source-repository this
   type: git
   location: http://github.com/lpsmith/postgresql-libpq
-  tag:  v0.9.2.0
+  tag:  v0.9.3.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/postgresql-libpq-0.9.2.0/src/Database/PostgreSQL/LibPQ.hsc 
new/postgresql-libpq-0.9.3.0/src/Database/PostgreSQL/LibPQ.hsc
--- old/postgresql-libpq-0.9.2.0/src/Database/PostgreSQL/LibPQ.hsc  
2016-08-25 22:35:33.0 +0200
+++ new/postgresql-libpq-0.9.3.0/src/Database/PostgreSQL/LibPQ.hsc  
2017-01-09 19:16:45.0 +0100
@@ -961,6 +961,7 @@
 -- transfer started.
 | CopyIn-- ^ Copy In (to server) data transfer
 -- started.
+| CopyBoth  -- ^ Copy In/Out data transfer started.
 | BadResponse   -- ^ The server's response was not understood.
 | NonfatalError -- ^ A nonfatal error (a notice or
 -- warning) occurred.
@@ -977,6 +978,7 @@
 toEnum (#const PGRES_TUPLES_OK)  = TuplesOk
 toEnum (#const PGRES_COPY_OUT)   = CopyOut
 toEnum (#const PGRES_COPY_IN)= CopyIn
+toEnum (#const PGRES_COPY_BOTH)  = CopyBoth
 toEnum (#const PGRES_BAD_RESPONSE)   = BadResponse
 toEnum (#const PGRES_NONFATAL_ERROR) = NonfatalError
 toEnum (#const PGRES_FATAL_ERROR)= FatalError
@@ -988,6 +990,7 @@
 fromEnum TuplesOk  = (#const PGRES_TUPLES_OK)
 fromEnum CopyOut   = (#const PGRES_COPY_OUT)
 fromEnum CopyIn= (#const PGRES_COPY_IN)
+fromEnum CopyBoth  = (#const PGRES_COPY_BOTH)
 fromEnum BadResponse   = (#const PGRES_BAD_RESPONSE)
 fromEnum NonfatalError = (#const PGRES_NONFATAL_ERROR)
 fromEnum FatalError= (#const PGRES_FATAL_ERROR)
@@ -2113,10 +2116,13 @@
 --   later call 'disableNoticeReporting' after calling this function.
 enableNoticeReporting :: Connection -> IO ()
 enableNoticeReporting conn@(Conn _ nbRef) = do
-nb' <- c_malloc_noticebuffer
-_ <- withConn conn $ \c -> c_PQsetNoticeReceiver c p_store_notices nb'
-nb  <- swapMVar nbRef nb'
-c_free_noticebuffer nb
+  if isNullConnection conn
+then return ()
+else do
+  nb' <- c_malloc_noticebuffer
+  _ <- withConn conn $ \c -> c_PQsetNoticeReceiver c p_store_notices nb'
+  nb  <- swapMVar 

commit ghc-postgresql-libpq for openSUSE:Factory

2016-11-02 Thread h_root
Hello community,

here is the log from the commit of package ghc-postgresql-libpq for 
openSUSE:Factory checked in at 2016-11-02 12:47:16

Comparing /work/SRC/openSUSE:Factory/ghc-postgresql-libpq (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new (New)


Package is "ghc-postgresql-libpq"

Changes:

--- 
/work/SRC/openSUSE:Factory/ghc-postgresql-libpq/ghc-postgresql-libpq.changes
2016-10-22 13:17:48.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new/ghc-postgresql-libpq.changes
   2016-11-02 12:47:18.0 +0100
@@ -1,0 +2,5 @@
+Thu Sep 15 06:57:49 UTC 2016 - psim...@suse.com
+
+- Update to version 0.9.2.0 revision 0 with cabal2obs.
+
+---

Old:

  postgresql-libpq-0.9.1.1.tar.gz

New:

  postgresql-libpq-0.9.2.0.tar.gz



Other differences:
--
++ ghc-postgresql-libpq.spec ++
--- /var/tmp/diff_new_pack.pyqfIS/_old  2016-11-02 12:47:19.0 +0100
+++ /var/tmp/diff_new_pack.pyqfIS/_new  2016-11-02 12:47:19.0 +0100
@@ -18,20 +18,18 @@
 
 %global pkg_name postgresql-libpq
 Name:   ghc-%{pkg_name}
-Version:0.9.1.1
+Version:0.9.2.0
 Release:0
 Summary:Low-level binding to libpq
 License:BSD-3-Clause
-Group:  System/Libraries
+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
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  postgresql94-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-# End cabal-rpm deps
 
 %description
 This is a binding to libpq: the C application programmer's interface to
@@ -44,11 +42,9 @@
 Group:  Development/Libraries/Other
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
-# Begin cabal-rpm deps:
 Requires:   postgresql94-devel
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
-# End cabal-rpm deps
 
 %description devel
 This package provides the Haskell %{pkg_name} library development
@@ -57,15 +53,12 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %post devel
 %ghc_pkg_recache
 

++ postgresql-libpq-0.9.1.1.tar.gz -> postgresql-libpq-0.9.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/postgresql-libpq-0.9.1.1/cbits/noticehandlers.c 
new/postgresql-libpq-0.9.2.0/cbits/noticehandlers.c
--- old/postgresql-libpq-0.9.1.1/cbits/noticehandlers.c 2015-07-27 
22:36:52.0 +0200
+++ new/postgresql-libpq-0.9.2.0/cbits/noticehandlers.c 2016-08-25 
22:35:33.0 +0200
@@ -56,4 +56,5 @@
 free(x);
 x = nx;
   }
+  free(arg);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/postgresql-libpq-0.9.1.1/postgresql-libpq.cabal 
new/postgresql-libpq-0.9.2.0/postgresql-libpq.cabal
--- old/postgresql-libpq-0.9.1.1/postgresql-libpq.cabal 2015-07-27 
22:36:52.0 +0200
+++ new/postgresql-libpq-0.9.2.0/postgresql-libpq.cabal 2016-08-25 
22:35:33.0 +0200
@@ -1,5 +1,5 @@
 Name:postgresql-libpq
-Version: 0.9.1.1
+Version: 0.9.2.0
 Synopsis:low-level binding to libpq
 
 Description: This is a binding to libpq: the C application
@@ -32,7 +32,7 @@
   c-sources:   cbits/noticehandlers.c
   include-dirs:cbits
   Exposed-modules: Database.PostgreSQL.LibPQ
-
+   Database.PostgreSQL.LibPQ.Internal
   Build-depends:   base >= 4 && < 5
  , bytestring
 
@@ -54,4 +54,4 @@
 source-repository this
   type: git
   location: http://github.com/lpsmith/postgresql-libpq
-  tag:  v0.9.1.1
+  tag:  v0.9.2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/postgresql-libpq-0.9.1.1/src/Database/PostgreSQL/LibPQ/Internal.hs 
new/postgresql-libpq-0.9.2.0/src/Database/PostgreSQL/LibPQ/Internal.hs
--- old/postgresql-libpq-0.9.1.1/src/Database/PostgreSQL/LibPQ/Internal.hs  
1970-01-01 01:00:00.0 +0100
+++ new/postgresql-libpq-0.9.2.0/src/Database/PostgreSQL/LibPQ/Internal.hs  
2016-08-25 22:35:33.0 +0200
@@ -0,0 +1,39 @@
+-
+-- |
+-- Module  :  Database.PostgreSQL.LibPQ.Internal
+-- Copyright   :  (c) 2010 Grant Monroe,
+--(c) 2011 

commit ghc-postgresql-libpq for openSUSE:Factory

2016-10-22 Thread h_root
Hello community,

here is the log from the commit of package ghc-postgresql-libpq for 
openSUSE:Factory checked in at 2016-10-22 13:17:48

Comparing /work/SRC/openSUSE:Factory/ghc-postgresql-libpq (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new (New)


Package is "ghc-postgresql-libpq"

Changes:

New Changes file:

--- /dev/null   2016-09-15 12:42:18.240042505 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-postgresql-libpq.new/ghc-postgresql-libpq.changes
   2016-10-22 13:17:48.0 +0200
@@ -0,0 +1,5 @@
+---
+Sun Jul 10 17:05:47 UTC 2016 - psim...@suse.com
+
+- Update to version 0.9.1.1 revision 0 with cabal2obs.
+

New:

  ghc-postgresql-libpq.changes
  ghc-postgresql-libpq.spec
  postgresql-libpq-0.9.1.1.tar.gz



Other differences:
--
++ ghc-postgresql-libpq.spec ++
#
# spec file for package ghc-postgresql-libpq
#
# Copyright (c) 2016 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
# 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 http://bugs.opensuse.org/
#


%global pkg_name postgresql-libpq
Name:   ghc-%{pkg_name}
Version:0.9.1.1
Release:0
Summary:Low-level binding to libpq
License:BSD-3-Clause
Group:  System/Libraries
Url:https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-Cabal-devel
# Begin cabal-rpm deps:
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-rpm-macros
BuildRequires:  postgresql94-devel
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
# End cabal-rpm deps

%description
This is a binding to libpq: the C application programmer's interface to
PostgreSQL. libpq is a set of library functions that allow client programs to
pass queries to the PostgreSQL backend server and to receive the results of
these queries.

%package devel
Summary:Haskell %{pkg_name} library development files
Group:  Development/Libraries/Other
Requires:   %{name} = %{version}-%{release}
Requires:   ghc-compiler = %{ghc_version}
# Begin cabal-rpm deps:
Requires:   postgresql94-devel
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
# End cabal-rpm deps

%description devel
This package provides the Haskell %{pkg_name} library development
files.

%prep
%setup -q -n %{pkg_name}-%{version}


%build
%ghc_lib_build


%install
%ghc_lib_install


%post devel
%ghc_pkg_recache

%postun devel
%ghc_pkg_recache

%files -f %{name}.files
%defattr(-,root,root,-)
%doc LICENSE

%files devel -f %{name}-devel.files
%defattr(-,root,root,-)

%changelog