From 14b3171c67e1451a3677dc8b1d7dcf1c2a8e5f5de98c434f413562c28aa55ad2 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 10 Sep 2019 12:50:29 +0000 Subject: [PATCH 1/9] Accepting request 729696 from home:jengelh:branches:server:database:postgresql - Trim filler wording from description and convert the long feature description to a bulleted list. OBS-URL: https://build.opensuse.org/request/show/729696 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/libpqxx?expand=0&rev=34 --- .gitattributes | 23 ++++ .gitignore | 1 + libpqxx-6.4.5.tar.gz | 3 + libpqxx-7.9.2.tar.gz | 3 + libpqxx.changes | 244 +++++++++++++++++++++++++++++++++++++++++++ libpqxx.spec | 107 +++++++++++++++++++ 6 files changed, 381 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libpqxx-6.4.5.tar.gz create mode 100644 libpqxx-7.9.2.tar.gz create mode 100644 libpqxx.changes create mode 100644 libpqxx.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libpqxx-6.4.5.tar.gz b/libpqxx-6.4.5.tar.gz new file mode 100644 index 0000000..c4fb204 --- /dev/null +++ b/libpqxx-6.4.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86921fdb0fe54495a79d5af2c96f2c771098c31e9b352d0834230fd2799ad362 +size 715081 diff --git a/libpqxx-7.9.2.tar.gz b/libpqxx-7.9.2.tar.gz new file mode 100644 index 0000000..243c4e9 --- /dev/null +++ b/libpqxx-7.9.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e37d5774c39f6c802e32d7f418e88b8e530404fb54758516e884fc0ebdee6da4 +size 774422 diff --git a/libpqxx.changes b/libpqxx.changes new file mode 100644 index 0000000..59c6c2a --- /dev/null +++ b/libpqxx.changes @@ -0,0 +1,244 @@ +------------------------------------------------------------------- +Tue Sep 10 07:50:10 UTC 2019 - Jan Engelhardt + +- Trim filler wording from description and convert the long + feature description to a bulleted list. + +------------------------------------------------------------------- +Mon Sep 9 08:19:23 UTC 2019 - Martin Pluskal + +- Update to version 6.4.5: + * For a full list of changes see provided NEWS +- Drop no longer needed patches: + * libpqxx-add-pkg-config-support.patch + * libpqxx-add-python3-support.patch + * libpqxx-sed-4.3.patch +- Drop doc subpackage as no html documentation is provided anymore +- Small packaging cleanups + +------------------------------------------------------------------- +Tue Apr 16 07:02:02 UTC 2019 - josef.moellers@suse.com + +- Added support for pkg-config, keeping support for pg_config + [libpqxx-add-pkg-config-support.patch] + +------------------------------------------------------------------- +Tue Apr 16 07:01:40 UTC 2019 - josef.moellers@suse.com + +- Added support for python3. + [libpqxx-add-python3-support.patch] + +------------------------------------------------------------------- +Fri Dec 1 14:08:10 UTC 2017 - josef.moellers@suse.com + +- Changed build reuirements for python to "%{pythons}" + as suggested by "openSUSE:Packaging Python Singlespec" + +------------------------------------------------------------------- +Sun Apr 23 08:43:47 UTC 2017 - jengelh@inai.de + +- Select better RPM groups + +------------------------------------------------------------------- +Mon Apr 17 18:06:38 UTC 2017 - adam@mizerski.pl + +- update to 5.0.1 + * See NEWS or https://github.com/jtv/libpqxx/blob/5.0.1/NEWS + for details +- rebased libpqxx-sed-4.3.patch +- split doc subpackage + +------------------------------------------------------------------- +Tue Mar 14 15:42:31 UTC 2017 - dimstar@opensuse.org + +- Add libpqxx-sed-4.3.patch: Fix build with sed 4.3, which is + stricter regarding [[:space:]] vs [:space:]. configure.ac needs + this to be represented as [[[:space:]]], as autoFOO itself + swallows one pair of []. +- Add libtool BuildRequires and call to autoreconf, as above patch + touches the build system. + +------------------------------------------------------------------- +Mon Apr 25 15:15:14 UTC 2016 - mrueckert@suse.de + +- add back buildroot to fix build on sle 11 + +------------------------------------------------------------------- +Tue Apr 9 23:37:54 UTC 2013 - adam@mizerski.pl + +- update to 4.0.1 + * See NEWS or http://pqxx.org/development/libpqxx/browser/tags/4.0.1/NEWS + for details. +- spec cleanup + * Provide library in subpackage, which name follows + shared library naming policy. +- removed libpqxx-rpmlintrc + * it contained only addFilter("shlib-policy-name-error") +- removed patches libpqxx-gcc46.patch libpqxx-gcc47.patch - + merged upstream. + +------------------------------------------------------------------- +Mon Mar 19 11:59:02 UTC 2012 - dimstar@opensuse.org + +- Add libpqxx-gcc47.patch: Fix build with gcc 4.7. + +------------------------------------------------------------------- +Sat Dec 3 09:47:09 UTC 2011 - aj@suse.de + +- Add require on pkg-config to provide pkg-config provides. +- Don't package libpqxx-3.1.so twice. + +------------------------------------------------------------------- +Wed May 25 10:10:37 UTC 2011 - max@novell.com + +- Rename libpqxx-3.1-gcc46.patch to libpqxx-gcc46.patch. + +------------------------------------------------------------------- +Tue May 24 15:18:43 UTC 2011 - idonmez@novell.com + +- Add libpqxx-3.1-gcc46.patch, add missing cstddef include to + fix compilation with gcc 4.6, upstream revision 1722 + +------------------------------------------------------------------- +Thu Apr 14 19:23:12 UTC 2011 - mrueckert@suse.de + +- only use fdupes on 11.1 or newer + +------------------------------------------------------------------- +Fri Feb 19 19:39:54 CET 2010 - max@suse.de + +- New version: 3.1: +- Shared libraries are now versioned by ABI: 3.1 instead of 3.1.0. +- Threading behaviour is now documented, and can be queried. +- Version information available at compile time. +- Supports parameterized statements. +- Result tuples now support slicing. +- Configure with --with-tr1=boost to use BOOST shared_ptr. +- String conversion now has its own header file. +- Supports read-only transactions. +- Uses shared_ptr if available. +- binarystring::str() is no longer cached; no longer returns + reference. +- Lets you check whether a prepared statement has been defined. +- "Varargs" prepared statements. +- Unnamed prepared statements now supported. +- Results have iterator as well as const_iterator. +- Rewrite of robusttransaction logic; may actually do its job now. +- Connections support async query cancel from signal handler or + thread. +- More documentation for performance features. + +------------------------------------------------------------------- +Mon Aug 3 12:08:13 CEST 2009 - max@suse.de + +- New version: 3.0.1: +- All items marked as deprecated in the 2.x API have been removed. +- Fixed various problems in Visual C++ makefile for test suite. +- Fixed some problems with RPM packaging. +- Completely replaced cursor classes +- More helpful error messages on failed connections +- More detailed hierarchy of constraint-violation exception classes +- trigger is now called notify_listener, trigger header is now + notify-listen +- New mixin base class pqxx_exception distinguishes libpqxx exception + types +- Quoting is back! transaction_base::quote() & + connection_base::quote() +- Several build & documentation problems with Visual C++ fixed +- Compile fixes for gcc 4.2, 4.3 +- Uses strlcpy() where available, instead of strncpy() +- Keeps better track of applicable text encodings +- Fixed bug with prepared statement parameters in separate C++ + statements +- robusttransaction now works for multiple users +- Pipeline lets you cancel ongoing queries, e.g. because they run for + too long +- Fixed broken escaping of binary values in tablewriter +- Floating-point types now represented with full precision +- Proper unit tests for new functionality +- New traits-based system for adding data types +- Floating-point infinities now supported +- Flushing/completing a pipeline now frees up the transaction for + other use +- Completely reworked test suite, builds and runs much faster +- tablewriter supports writing of raw lines + +------------------------------------------------------------------- +Fri Mar 13 20:57:35 CET 2009 - crrodriguez@suse.de + +- remove static libraries + +------------------------------------------------------------------- +Fri Jun 27 17:52:23 CEST 2008 - schwab@suse.de + +- Use autoreconf. + +------------------------------------------------------------------- +Mon Jan 14 19:20:29 CET 2008 - dmueller@suse.de + +- fix last change + +------------------------------------------------------------------- +Mon Jan 14 09:54:55 CET 2008 - aj@suse.de + +- Fix build with g++. + +------------------------------------------------------------------- +Mon Jul 30 15:14:03 CEST 2007 - max@suse.de + +- New version: 2.6.9 (#280593). Changes include: + * Removed old 1.x API + * Greatly reduced memory usage while escaping strings + * Useful error messages when preparing statements + * New cursor class, absolute_cursor + * New, encoding-safe string-escaping functions + * Radical rework of prepared statements; + INCOMPATIBLE INTERFACE CHANGE! + * Support for subtransactions + * Detect more connection capabilities + * Greatly improved cursor support + * ... and many many mire bug fixes and improvements. +- Tell rpmlint to shut up. + +------------------------------------------------------------------- +Wed Jan 25 21:37:40 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Jan 9 16:48:42 CET 2006 - max@suse.de + +- New version 2.5.5 + +------------------------------------------------------------------- +Thu Nov 18 15:48:05 CET 2004 - ro@suse.de + +- use kerberos-devel-packages + +------------------------------------------------------------------- +Thu Aug 19 14:58:32 CEST 2004 - max@suse.de + +- New version: 2.2.7 + +------------------------------------------------------------------- +Tue Nov 18 10:50:07 CET 2003 - max@suse.de + +- New version: 2.1.1 + +- Split off a libpqxx-devel package + +- Added heimdal-lib to neededforbuild + +- Enabled building as non-root user + +------------------------------------------------------------------- +Mon Jan 27 16:22:18 CET 2003 - max@suse.de + +- Quote $RPM_OPT_FLAGS + +------------------------------------------------------------------- +Mon Jan 27 13:27:03 CET 2003 - max@suse.de + +- New Package libpqxx: A C++ client library for PostgreSQL + +- Version 1.3.3 diff --git a/libpqxx.spec b/libpqxx.spec new file mode 100644 index 0000000..5351dde --- /dev/null +++ b/libpqxx.spec @@ -0,0 +1,107 @@ +# +# spec file for package libpqxx +# +# Copyright (c) 2019 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 https://bugs.opensuse.org/ +# + + +%define abi_ver_major 6 +%define abi_ver_minor 4 +Name: libpqxx +Version: 6.4.5 +Release: 0 +Summary: C++ Client Library for PostgreSQL +License: BSD-3-Clause +Group: Development/Libraries/C and C++ +URL: http://pqxx.org/development/libpqxx/ +Source: https://github.com/jtv/libpqxx/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: postgresql-server-devel +BuildRequires: python3 +BuildRequires: pkgconfig(libpq) + +%description +This is the official C++ client API for postgres. libpqxx brings + + * Templates to reduce the inconvenience of dealing with type + conversions + * Standard C++ strings to keep from having to worry about buffer + allocation and overflow attacks + * Exceptions to take the tedious and error-prone plumbing around + error handling out of one's hands + * Constructors and destructors to bring resource management under + control + * Basic object-orientation to give extra reliability features that + would be hard to get with most other database interfaces + +%package %{abi_ver_major}_%{abi_ver_minor} +Summary: C++ Client Library for PostgreSQL +Group: System/Libraries + +%description %{abi_ver_major}_%{abi_ver_minor} +This is the official C++ client API for postgres. libpqxx brings + + * Templates to reduce the inconvenience of dealing with type + conversions + * Standard C++ strings to keep from having to worry about buffer + allocation and overflow attacks + * Exceptions to take the tedious and error-prone plumbing around + error handling out of one's hands + * Constructors and destructors to bring resource management under + control + * Basic object-orientation to give extra reliability features that + would be hard to get with most other database interfaces + +%package devel +Summary: C++ Client Library for PostgreSQL +Group: Development/Libraries/C and C++ +Requires: %{name}-%{abi_ver_major}_%{abi_ver_minor} = %{version} + +%description devel +This package contains header files needed for writing +C++ programs that connect to a PostgreSQL database. + +%prep +%autosetup + +%build +chmod 0644 COPYING +sed -i "s|env python|python3|g" tools/splitconfig +sed -i "s|env python|python3|g" tools/template2mak.py +%configure \ + --enable-shared \ + --disable-static \ + --disable-documentation +%make_build + +%install +%make_install +rm %{buildroot}%{_libdir}/%{name}.la + +%post %{abi_ver_major}_%{abi_ver_minor} -p /sbin/ldconfig +%postun %{abi_ver_major}_%{abi_ver_minor} -p /sbin/ldconfig + +%files %{abi_ver_major}_%{abi_ver_minor} +%license COPYING +%doc AUTHORS NEWS README.md README-UPGRADE +%{_libdir}/%{name}-%{abi_ver_major}.%{abi_ver_minor}.so + +%files devel +%{_libdir}/pkgconfig/libpqxx.pc +%{_libdir}/%{name}.so +%{_includedir}/pqxx/ + +%changelog -- 2.51.1 From 64e8b8205d32cae3a5a093be3ec7f692165a1f30d7b4bf8606c343c448195ae7 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 11 Sep 2019 11:09:59 +0000 Subject: [PATCH 2/9] OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/libpqxx?expand=0&rev=35 --- libpqxx.changes | 6 ------ libpqxx.spec | 40 ++++++++++++++++------------------------ 2 files changed, 16 insertions(+), 30 deletions(-) diff --git a/libpqxx.changes b/libpqxx.changes index 59c6c2a..14d8293 100644 --- a/libpqxx.changes +++ b/libpqxx.changes @@ -1,9 +1,3 @@ -------------------------------------------------------------------- -Tue Sep 10 07:50:10 UTC 2019 - Jan Engelhardt - -- Trim filler wording from description and convert the long - feature description to a bulleted list. - ------------------------------------------------------------------- Mon Sep 9 08:19:23 UTC 2019 - Martin Pluskal diff --git a/libpqxx.spec b/libpqxx.spec index 5351dde..d57f7af 100644 --- a/libpqxx.spec +++ b/libpqxx.spec @@ -34,36 +34,28 @@ BuildRequires: python3 BuildRequires: pkgconfig(libpq) %description -This is the official C++ client API for postgres. libpqxx brings - - * Templates to reduce the inconvenience of dealing with type - conversions - * Standard C++ strings to keep from having to worry about buffer - allocation and overflow attacks - * Exceptions to take the tedious and error-prone plumbing around - error handling out of one's hands - * Constructors and destructors to bring resource management under - control - * Basic object-orientation to give extra reliability features that - would be hard to get with most other database interfaces +This is the official C++ client API for postgres. What libpqxx brings you is +effective use of templates to reduce the inconvenience of dealing with type +conversions; of standard C++ strings to keep you from having to worry about +buffer allocation and overflow attacks; of exceptions to take the tedious and +error-prone plumbing around error handling out of your hands; of constructors +and destructors to bring resource management under control; and even basic +object-orientation to give you some extra reliability features that would be +hard to get with most other database interfaces. %package %{abi_ver_major}_%{abi_ver_minor} Summary: C++ Client Library for PostgreSQL Group: System/Libraries %description %{abi_ver_major}_%{abi_ver_minor} -This is the official C++ client API for postgres. libpqxx brings - - * Templates to reduce the inconvenience of dealing with type - conversions - * Standard C++ strings to keep from having to worry about buffer - allocation and overflow attacks - * Exceptions to take the tedious and error-prone plumbing around - error handling out of one's hands - * Constructors and destructors to bring resource management under - control - * Basic object-orientation to give extra reliability features that - would be hard to get with most other database interfaces +This is the official C++ client API for postgres. What libpqxx brings you is +effective use of templates to reduce the inconvenience of dealing with type +conversions; of standard C++ strings to keep you from having to worry about +buffer allocation and overflow attacks; of exceptions to take the tedious and +error-prone plumbing around error handling out of your hands; of constructors +and destructors to bring resource management under control; and even basic +object-orientation to give you some extra reliability features that would be +hard to get with most other database interfaces. %package devel Summary: C++ Client Library for PostgreSQL -- 2.51.1 From 88096df7ba90cf9583c54db228ec30f912f718c1a445aff029cd71310bff2ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20M=C3=B6llers?= Date: Wed, 17 Jun 2020 09:23:24 +0000 Subject: [PATCH 3/9] Accepting request 815427 from home:rmax:branches:server:database:postgresql - Fix the handling of `pkg-config --libs` in configure and drop the build-dependency on postgresql-server-devel. OBS-URL: https://build.opensuse.org/request/show/815427 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/libpqxx?expand=0&rev=36 --- libpqxx-pkgconfig.patch | 22 ++++++++++++++++++++++ libpqxx.changes | 6 ++++++ libpqxx.spec | 4 ++-- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 libpqxx-pkgconfig.patch diff --git a/libpqxx-pkgconfig.patch b/libpqxx-pkgconfig.patch new file mode 100644 index 0000000..4f9dbd1 --- /dev/null +++ b/libpqxx-pkgconfig.patch @@ -0,0 +1,22 @@ +--- configure.orig ++++ configure +@@ -17989,7 +17989,7 @@ POSTGRES_INCLUDE="-I${with_postgres_incl + + elif test -n "$PKG_CONFIG" && test -r "$PKG_CONFIG"; then + if test -z "$with_postgres_include"; then : +- with_postgres_include=$($PKG_CONFIG libpq --cflags | sed 's/^-I//') ++ with_postgres_include=$($PKG_CONFIG libpq --cflags | sed 's/^-I//;s/ \+$//') + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: using PostgreSQL headers at $with_postgres_include" >&5 + $as_echo "$as_me: using PostgreSQL headers at $with_postgres_include" >&6;} +--- configure.ac.orig ++++ configure.ac +@@ -403,7 +403,7 @@ AC_SUBST(POSTGRES_INCLUDE) + elif test -n "$PKG_CONFIG" && test -r "$PKG_CONFIG"; then + AS_IF( + [test -z "$with_postgres_include"], +- [with_postgres_include=$($PKG_CONFIG libpq --cflags | sed 's/^-I//')]) ++ [with_postgres_include=$($PKG_CONFIG libpq --cflags | sed 's/^-I//;s/ \+$//')]) + AC_MSG_NOTICE([using PostgreSQL headers at $with_postgres_include]) + AC_SUBST(with_postgres_include) + POSTGRES_INCLUDE="-I${with_postgres_include}" diff --git a/libpqxx.changes b/libpqxx.changes index 14d8293..b625d18 100644 --- a/libpqxx.changes +++ b/libpqxx.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 17 08:25:40 UTC 2020 - Reinhard Max + +- Fix the handling of `pkg-config --libs` in configure and drop + the build-dependency on postgresql-server-devel. + ------------------------------------------------------------------- Mon Sep 9 08:19:23 UTC 2019 - Martin Pluskal diff --git a/libpqxx.spec b/libpqxx.spec index d57f7af..1f9a419 100644 --- a/libpqxx.spec +++ b/libpqxx.spec @@ -1,7 +1,7 @@ # # spec file for package libpqxx # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -26,10 +26,10 @@ License: BSD-3-Clause Group: Development/Libraries/C and C++ URL: http://pqxx.org/development/libpqxx/ Source: https://github.com/jtv/libpqxx/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch1: libpqxx-pkgconfig.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig -BuildRequires: postgresql-server-devel BuildRequires: python3 BuildRequires: pkgconfig(libpq) -- 2.51.1 From 71f4b6ea4278a58c222774b68e9f004d4b95989ed7e1182f921e3d3c32f12f39 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Tue, 30 Nov 2021 19:51:22 +0000 Subject: [PATCH 4/9] - Update to version 7.6.0 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/libpqxx?expand=0&rev=37 --- libpqxx-6.4.5.tar.gz | 3 --- libpqxx-7.6.0.tar.gz | 3 +++ libpqxx-pkgconfig.patch | 22 ---------------------- libpqxx.changes | 28 ++++++++++++++++++++++++++++ libpqxx.spec | 11 ++++------- 5 files changed, 35 insertions(+), 32 deletions(-) delete mode 100644 libpqxx-6.4.5.tar.gz create mode 100644 libpqxx-7.6.0.tar.gz delete mode 100644 libpqxx-pkgconfig.patch diff --git a/libpqxx-6.4.5.tar.gz b/libpqxx-6.4.5.tar.gz deleted file mode 100644 index c4fb204..0000000 --- a/libpqxx-6.4.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:86921fdb0fe54495a79d5af2c96f2c771098c31e9b352d0834230fd2799ad362 -size 715081 diff --git a/libpqxx-7.6.0.tar.gz b/libpqxx-7.6.0.tar.gz new file mode 100644 index 0000000..19b1351 --- /dev/null +++ b/libpqxx-7.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8194ce4eff3fee5325963ccc28d3542cfaa54ba1400833d0df6948de3573c118 +size 718304 diff --git a/libpqxx-pkgconfig.patch b/libpqxx-pkgconfig.patch deleted file mode 100644 index 4f9dbd1..0000000 --- a/libpqxx-pkgconfig.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- configure.orig -+++ configure -@@ -17989,7 +17989,7 @@ POSTGRES_INCLUDE="-I${with_postgres_incl - - elif test -n "$PKG_CONFIG" && test -r "$PKG_CONFIG"; then - if test -z "$with_postgres_include"; then : -- with_postgres_include=$($PKG_CONFIG libpq --cflags | sed 's/^-I//') -+ with_postgres_include=$($PKG_CONFIG libpq --cflags | sed 's/^-I//;s/ \+$//') - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: using PostgreSQL headers at $with_postgres_include" >&5 - $as_echo "$as_me: using PostgreSQL headers at $with_postgres_include" >&6;} ---- configure.ac.orig -+++ configure.ac -@@ -403,7 +403,7 @@ AC_SUBST(POSTGRES_INCLUDE) - elif test -n "$PKG_CONFIG" && test -r "$PKG_CONFIG"; then - AS_IF( - [test -z "$with_postgres_include"], -- [with_postgres_include=$($PKG_CONFIG libpq --cflags | sed 's/^-I//')]) -+ [with_postgres_include=$($PKG_CONFIG libpq --cflags | sed 's/^-I//;s/ \+$//')]) - AC_MSG_NOTICE([using PostgreSQL headers at $with_postgres_include]) - AC_SUBST(with_postgres_include) - POSTGRES_INCLUDE="-I${with_postgres_include}" diff --git a/libpqxx.changes b/libpqxx.changes index b625d18..019ee1e 100644 --- a/libpqxx.changes +++ b/libpqxx.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Tue Nov 30 19:43:49 UTC 2021 - Marcus Rueckert + +- Update to version 7.6.0 + https://github.com/jtv/libpqxx/releases/tag/6.4.6 + https://github.com/jtv/libpqxx/releases/tag/6.4.7 + https://github.com/jtv/libpqxx/releases/tag/7.0.0 + https://github.com/jtv/libpqxx/releases/tag/7.0.1 + https://github.com/jtv/libpqxx/releases/tag/7.0.2 + https://github.com/jtv/libpqxx/releases/tag/7.0.3 + https://github.com/jtv/libpqxx/releases/tag/7.0.4 + https://github.com/jtv/libpqxx/releases/tag/7.0.5 + https://github.com/jtv/libpqxx/releases/tag/7.0.6 + https://github.com/jtv/libpqxx/releases/tag/7.0.7 + https://github.com/jtv/libpqxx/releases/tag/7.1.0 + https://github.com/jtv/libpqxx/releases/tag/7.1.1 + https://github.com/jtv/libpqxx/releases/tag/7.1.2 + https://github.com/jtv/libpqxx/releases/tag/7.2.0 + https://github.com/jtv/libpqxx/releases/tag/7.2.1 + https://github.com/jtv/libpqxx/releases/tag/7.3.0 + https://github.com/jtv/libpqxx/releases/tag/7.3.1 + https://github.com/jtv/libpqxx/releases/tag/7.4.0 + https://github.com/jtv/libpqxx/releases/tag/7.4.1 + https://github.com/jtv/libpqxx/releases/tag/7.5.0 + https://github.com/jtv/libpqxx/releases/tag/7.5.1 + https://github.com/jtv/libpqxx/releases/tag/7.5.2 + https://github.com/jtv/libpqxx/releases/tag/7.6.0 + ------------------------------------------------------------------- Wed Jun 17 08:25:40 UTC 2020 - Reinhard Max diff --git a/libpqxx.spec b/libpqxx.spec index 1f9a419..5943363 100644 --- a/libpqxx.spec +++ b/libpqxx.spec @@ -1,7 +1,7 @@ # # spec file for package libpqxx # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,16 @@ # -%define abi_ver_major 6 -%define abi_ver_minor 4 +%define abi_ver_major 7 +%define abi_ver_minor 6 Name: libpqxx -Version: 6.4.5 +Version: 7.6.0 Release: 0 Summary: C++ Client Library for PostgreSQL License: BSD-3-Clause Group: Development/Libraries/C and C++ URL: http://pqxx.org/development/libpqxx/ Source: https://github.com/jtv/libpqxx/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz -Patch1: libpqxx-pkgconfig.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -71,8 +70,6 @@ C++ programs that connect to a PostgreSQL database. %build chmod 0644 COPYING -sed -i "s|env python|python3|g" tools/splitconfig -sed -i "s|env python|python3|g" tools/template2mak.py %configure \ --enable-shared \ --disable-static \ -- 2.51.1 From db80aec250baec79d7474bc8a720bec6792cc3d4da35de98a127a1a9cb7365ca Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Tue, 30 Nov 2021 20:07:56 +0000 Subject: [PATCH 5/9] - force newer gcc OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/libpqxx?expand=0&rev=38 --- libpqxx.changes | 5 +++++ libpqxx.spec | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/libpqxx.changes b/libpqxx.changes index 019ee1e..a545b10 100644 --- a/libpqxx.changes +++ b/libpqxx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 30 20:07:27 UTC 2021 - Marcus Rueckert + +- force newer gcc + ------------------------------------------------------------------- Tue Nov 30 19:43:49 UTC 2021 - Marcus Rueckert diff --git a/libpqxx.spec b/libpqxx.spec index 5943363..6c601d4 100644 --- a/libpqxx.spec +++ b/libpqxx.spec @@ -16,6 +16,10 @@ # +%if 0%{?suse_version} && 0%{?suse_version} < 1550 +%define force_gcc_version 8 +%endif + %define abi_ver_major 7 %define abi_ver_minor 6 Name: libpqxx @@ -27,7 +31,7 @@ Group: Development/Libraries/C and C++ URL: http://pqxx.org/development/libpqxx/ Source: https://github.com/jtv/libpqxx/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: fdupes -BuildRequires: gcc-c++ +BuildRequires: gcc%{?force_gcc_version}-c++ >= 8 BuildRequires: pkgconfig BuildRequires: python3 BuildRequires: pkgconfig(libpq) @@ -60,7 +64,7 @@ hard to get with most other database interfaces. Summary: C++ Client Library for PostgreSQL Group: Development/Libraries/C and C++ Requires: %{name}-%{abi_ver_major}_%{abi_ver_minor} = %{version} - +Requires: gcc%{?force_gcc_version}-c++ >= 8 %description devel This package contains header files needed for writing C++ programs that connect to a PostgreSQL database. @@ -70,6 +74,10 @@ C++ programs that connect to a PostgreSQL database. %build chmod 0644 COPYING +%if 0%{?force_gcc_version} +export CC="gcc-%{?force_gcc_version}" +export CXX="g++-%{?force_gcc_version}" +%endif %configure \ --enable-shared \ --disable-static \ -- 2.51.1 From f745fddc2dba99bc741ffdd250ba7db071b8162b5d41a03bde9590f2d19ce2c3 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Mon, 19 Jun 2023 15:47:03 +0000 Subject: [PATCH 6/9] - Update to 7.7.5 https://github.com/jtv/libpqxx/releases/tag/7.6.1 https://github.com/jtv/libpqxx/releases/tag/7.7.0 https://github.com/jtv/libpqxx/releases/tag/7.7.1 https://github.com/jtv/libpqxx/releases/tag/7.7.2 https://github.com/jtv/libpqxx/releases/tag/7.7.3 https://github.com/jtv/libpqxx/releases/tag/7.7.4 https://github.com/jtv/libpqxx/releases/tag/7.7.5 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/libpqxx?expand=0&rev=39 --- libpqxx-7.6.0.tar.gz | 3 --- libpqxx-7.7.5.tar.gz | 3 +++ libpqxx.changes | 12 ++++++++++++ libpqxx.spec | 9 +++++---- 4 files changed, 20 insertions(+), 7 deletions(-) delete mode 100644 libpqxx-7.6.0.tar.gz create mode 100644 libpqxx-7.7.5.tar.gz diff --git a/libpqxx-7.6.0.tar.gz b/libpqxx-7.6.0.tar.gz deleted file mode 100644 index 19b1351..0000000 --- a/libpqxx-7.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8194ce4eff3fee5325963ccc28d3542cfaa54ba1400833d0df6948de3573c118 -size 718304 diff --git a/libpqxx-7.7.5.tar.gz b/libpqxx-7.7.5.tar.gz new file mode 100644 index 0000000..2f53ef7 --- /dev/null +++ b/libpqxx-7.7.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7dc3e8fa2eee656f2b6a8179d72f15db10e97a80dc4f173f806e615ea990973 +size 745921 diff --git a/libpqxx.changes b/libpqxx.changes index a545b10..85f8968 100644 --- a/libpqxx.changes +++ b/libpqxx.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Jun 19 15:43:21 UTC 2023 - Reinhard Max + +- Update to 7.7.5 + https://github.com/jtv/libpqxx/releases/tag/7.6.1 + https://github.com/jtv/libpqxx/releases/tag/7.7.0 + https://github.com/jtv/libpqxx/releases/tag/7.7.1 + https://github.com/jtv/libpqxx/releases/tag/7.7.2 + https://github.com/jtv/libpqxx/releases/tag/7.7.3 + https://github.com/jtv/libpqxx/releases/tag/7.7.4 + https://github.com/jtv/libpqxx/releases/tag/7.7.5 + ------------------------------------------------------------------- Tue Nov 30 20:07:27 UTC 2021 - Marcus Rueckert diff --git a/libpqxx.spec b/libpqxx.spec index 6c601d4..fd296e2 100644 --- a/libpqxx.spec +++ b/libpqxx.spec @@ -1,7 +1,7 @@ # # spec file for package libpqxx # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,9 +21,9 @@ %endif %define abi_ver_major 7 -%define abi_ver_minor 6 +%define abi_ver_minor 7 Name: libpqxx -Version: 7.6.0 +Version: 7.7.5 Release: 0 Summary: C++ Client Library for PostgreSQL License: BSD-3-Clause @@ -65,6 +65,7 @@ Summary: C++ Client Library for PostgreSQL Group: Development/Libraries/C and C++ Requires: %{name}-%{abi_ver_major}_%{abi_ver_minor} = %{version} Requires: gcc%{?force_gcc_version}-c++ >= 8 + %description devel This package contains header files needed for writing C++ programs that connect to a PostgreSQL database. @@ -93,7 +94,7 @@ rm %{buildroot}%{_libdir}/%{name}.la %files %{abi_ver_major}_%{abi_ver_minor} %license COPYING -%doc AUTHORS NEWS README.md README-UPGRADE +%doc AUTHORS NEWS README.md %{_libdir}/%{name}-%{abi_ver_major}.%{abi_ver_minor}.so %files devel -- 2.51.1 From 4d80ae3b275b0460e92267e07352bf76dc82a856ed3ffbc650a8a7e0dddf29d2 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Sat, 28 Sep 2024 00:56:13 +0000 Subject: [PATCH 7/9] - Update to 7.9.2 https://github.com/jtv/libpqxx/releases/tag/7.8.0 https://github.com/jtv/libpqxx/releases/tag/7.8.1 https://github.com/jtv/libpqxx/releases/tag/7.9.0 https://github.com/jtv/libpqxx/releases/tag/7.9.1 https://github.com/jtv/libpqxx/releases/tag/7.9.2 - bump gcc to 12 for code15 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/libpqxx?expand=0&rev=40 --- libpqxx-7.7.5.tar.gz | 3 --- libpqxx.changes | 11 +++++++++++ libpqxx.spec | 8 ++++---- 3 files changed, 15 insertions(+), 7 deletions(-) delete mode 100644 libpqxx-7.7.5.tar.gz diff --git a/libpqxx-7.7.5.tar.gz b/libpqxx-7.7.5.tar.gz deleted file mode 100644 index 2f53ef7..0000000 --- a/libpqxx-7.7.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7dc3e8fa2eee656f2b6a8179d72f15db10e97a80dc4f173f806e615ea990973 -size 745921 diff --git a/libpqxx.changes b/libpqxx.changes index 85f8968..5be23cf 100644 --- a/libpqxx.changes +++ b/libpqxx.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Sep 28 00:53:28 UTC 2024 - Marcus Rueckert + +- Update to 7.9.2 + https://github.com/jtv/libpqxx/releases/tag/7.8.0 + https://github.com/jtv/libpqxx/releases/tag/7.8.1 + https://github.com/jtv/libpqxx/releases/tag/7.9.0 + https://github.com/jtv/libpqxx/releases/tag/7.9.1 + https://github.com/jtv/libpqxx/releases/tag/7.9.2 +- bump gcc to 12 for code15 + ------------------------------------------------------------------- Mon Jun 19 15:43:21 UTC 2023 - Reinhard Max diff --git a/libpqxx.spec b/libpqxx.spec index fd296e2..789c333 100644 --- a/libpqxx.spec +++ b/libpqxx.spec @@ -1,7 +1,7 @@ # # spec file for package libpqxx # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,13 @@ %if 0%{?suse_version} && 0%{?suse_version} < 1550 -%define force_gcc_version 8 +%define force_gcc_version 12 %endif %define abi_ver_major 7 -%define abi_ver_minor 7 +%define abi_ver_minor 9 Name: libpqxx -Version: 7.7.5 +Version: 7.9.2 Release: 0 Summary: C++ Client Library for PostgreSQL License: BSD-3-Clause -- 2.51.1 From 43a313bf2d0a76dec00f4f28d11049adb57aa06f17cfc6f2d9c59e5c8105fb10 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Sat, 28 Sep 2024 00:56:39 +0000 Subject: [PATCH 8/9] - bump gcc to 12 for code15 because we need a compiler which supports at least Standard C++17 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/libpqxx?expand=0&rev=41 --- libpqxx.changes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libpqxx.changes b/libpqxx.changes index 5be23cf..af4e1f2 100644 --- a/libpqxx.changes +++ b/libpqxx.changes @@ -7,7 +7,8 @@ Sat Sep 28 00:53:28 UTC 2024 - Marcus Rueckert https://github.com/jtv/libpqxx/releases/tag/7.9.0 https://github.com/jtv/libpqxx/releases/tag/7.9.1 https://github.com/jtv/libpqxx/releases/tag/7.9.2 -- bump gcc to 12 for code15 +- bump gcc to 12 for code15 because we need a compiler which + supports at least Standard C++17 ------------------------------------------------------------------- Mon Jun 19 15:43:21 UTC 2023 - Reinhard Max -- 2.51.1 From 1eaee4d4327391e664dd92318d2af77e2be4875dd3a4248071d188eba818c7af Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Fri, 21 Nov 2025 15:29:39 +0000 Subject: [PATCH 9/9] OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/libpqxx?expand=0&rev=42 --- libpqxx-7.10.3.tar.gz | 3 +++ libpqxx-7.9.2.tar.gz | 3 --- libpqxx.changes | 10 ++++++++++ libpqxx.spec | 24 +++++++++++++----------- 4 files changed, 26 insertions(+), 14 deletions(-) create mode 100644 libpqxx-7.10.3.tar.gz delete mode 100644 libpqxx-7.9.2.tar.gz diff --git a/libpqxx-7.10.3.tar.gz b/libpqxx-7.10.3.tar.gz new file mode 100644 index 0000000..883551d --- /dev/null +++ b/libpqxx-7.10.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5ba455e4f28901297c18a76e533c466cbe8908d4b2ff6313235954bb37cef25 +size 787055 diff --git a/libpqxx-7.9.2.tar.gz b/libpqxx-7.9.2.tar.gz deleted file mode 100644 index 243c4e9..0000000 --- a/libpqxx-7.9.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e37d5774c39f6c802e32d7f418e88b8e530404fb54758516e884fc0ebdee6da4 -size 774422 diff --git a/libpqxx.changes b/libpqxx.changes index af4e1f2..a45c01b 100644 --- a/libpqxx.changes +++ b/libpqxx.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Sun Nov 9 09:00:07 UTC 2025 - Arjen de Korte + +- Update to 7.10.3 + https://github.com/jtv/libpqxx/releases/tag/7.10.0 + https://github.com/jtv/libpqxx/releases/tag/7.10.1 + https://github.com/jtv/libpqxx/releases/tag/7.10.2 + https://github.com/jtv/libpqxx/releases/tag/7.10.3 +- switch to cmake + ------------------------------------------------------------------- Sat Sep 28 00:53:28 UTC 2024 - Marcus Rueckert diff --git a/libpqxx.spec b/libpqxx.spec index 789c333..d54991c 100644 --- a/libpqxx.spec +++ b/libpqxx.spec @@ -21,15 +21,16 @@ %endif %define abi_ver_major 7 -%define abi_ver_minor 9 +%define abi_ver_minor 10 Name: libpqxx -Version: 7.9.2 +Version: 7.10.3 Release: 0 Summary: C++ Client Library for PostgreSQL License: BSD-3-Clause Group: Development/Libraries/C and C++ URL: http://pqxx.org/development/libpqxx/ Source: https://github.com/jtv/libpqxx/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: cmake >= 3.12 BuildRequires: fdupes BuildRequires: gcc%{?force_gcc_version}-c++ >= 8 BuildRequires: pkgconfig @@ -79,18 +80,17 @@ chmod 0644 COPYING export CC="gcc-%{?force_gcc_version}" export CXX="g++-%{?force_gcc_version}" %endif -%configure \ - --enable-shared \ - --disable-static \ - --disable-documentation -%make_build +%cmake \ + -D BUILD_DOC=OFF \ + -D BUILD_SHARED_LIBS=ON \ + -D INSTALL_TEST=OFF \ + -D SKIP_BUILD_TEST=ON +%cmake_build %install -%make_install -rm %{buildroot}%{_libdir}/%{name}.la +%cmake_install -%post %{abi_ver_major}_%{abi_ver_minor} -p /sbin/ldconfig -%postun %{abi_ver_major}_%{abi_ver_minor} -p /sbin/ldconfig +%ldconfig_scriptlets %{abi_ver_major}_%{abi_ver_minor} %files %{abi_ver_major}_%{abi_ver_minor} %license COPYING @@ -98,7 +98,9 @@ rm %{buildroot}%{_libdir}/%{name}.la %{_libdir}/%{name}-%{abi_ver_major}.%{abi_ver_minor}.so %files devel +%{_docdir}/libpqxx/ %{_libdir}/pkgconfig/libpqxx.pc +%{_libdir}/cmake/libpqxx/ %{_libdir}/%{name}.so %{_includedir}/pqxx/ -- 2.51.1