## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autochangelog ## END: Set by rpmautospec %bcond_without check %global upstream_name psqlodbc Name: postgresql-odbc Summary: PostgreSQL ODBC driver Version: 16.00.0000 Release: 8%{?dist} License: LGPL-2.0-or-later URL: https://odbc.postgresql.org/ Source0: https://ftp.postgresql.org/pub/odbc/versions/src/%{upstream_name}-%{version}.tar.gz Patch0: postgresql-odbc-09.06.0200-revert-money-fix.patch Patch1: postgresql-odbc-09.05.0400-revert-money-testsuite-fix.patch Patch2: postgresql-odbc-endianity-test-fix.patch BuildRequires: make BuildRequires: gcc BuildRequires: unixODBC-devel BuildRequires: pkgconfig(libpq) %if %{with check} BuildRequires: postgresql-test-rpm-macros %endif Provides: %upstream_name = %version-%release # This spec file and ancillary files are licensed in accordance with # the psqlodbc license. %description This package includes the driver needed for applications to access a PostgreSQL system via ODBC (Open Database Connectivity). %prep %autosetup -p1 -n %{upstream_name}-%{version} cat <README.rpmdist The upstream psqlodbc testsuite is distributed in '%{name}-tests' (sub)package. EOF %build export CFLAGS="$CFLAGS -std=gnu17" %configure --with-unixodbc --disable-dependency-tracking --libdir=%{_libdir}/unixODBC # GCC 10 defaults to -fno-common # https://gcc.gnu.org/gcc-10/changes.html (see C section) %make_build CFLAGS="%{optflags} -fcommon -std=gnu17" %install %make_install %global testsuitedir %{_libdir}/%{name} install -d -m 755 $RPM_BUILD_ROOT/%{testsuitedir} cp -R test $RPM_BUILD_ROOT/%{testsuitedir} sed -i 's~^drvr=.*~drvr=%{_libdir}/unixODBC/psqlodbc~' $RPM_BUILD_ROOT/%{testsuitedir}/test/odbcini-gen.sh # Remove the rather useless .la files rm ${RPM_BUILD_ROOT}%{_libdir}/unixODBC/psqlodbcw.la ${RPM_BUILD_ROOT}%{_libdir}/unixODBC/psqlodbca.la # Provide the old library name "psqlodbc.so" as a symlink ln -s psqlodbcw.so ${RPM_BUILD_ROOT}%{_libdir}/unixODBC/psqlodbc.so %if %{with check} %check %postgresql_tests_run # make sure that we are testing aginst expected output "utf8" case mv test/expected/wchar-char_1.out test/expected/wchar-char.out rm -rf test/expected/wchar-char_2.out rm -rf test/expected/wchar-char_3.out cd test && make installcheck %{_smp_mflags} CFLAGS="%{optflags} -fcommon -std=gnu17" || { echo "=== trying to find all regression.diffs files in build directory ===" find -name regression.diffs | while read line; do cat "$line" done false } %endif %package tests Summary: Testsuite files for psqlodbc Requires: postgresql-test Requires: %{name} = %{version}-%{release} # Those are requires to successful testsuite run Requires: gcc make unixODBC-devel %description tests The postgresql-odbc-tests package contains files needed for various tests for the PostgreSQL unixODBC driver. %files %dir %{_libdir}/unixODBC %{_libdir}/unixODBC/psqlodbc.so %{_libdir}/unixODBC/psqlodbca.so %{_libdir}/unixODBC/psqlodbcw.so %doc license.txt readme.txt docs/* README.rpmdist %files tests %doc license.txt %dir %{testsuitedir} %defattr(-,postgres,postgres) %{testsuitedir}/test %changelog ## START: Generated by rpmautospec * Mon Mar 30 2026 Michal Schorm - 16.00.0000-13 - Bump release for package rebuild * Mon Mar 30 2026 Michal Schorm - 16.00.0000-12 - [bugfix] Move ODBC driver plugin libraries to %%{_libdir}/unixODBC/ subdirectory * Mon Mar 30 2026 Michal Schorm - 16.00.0000-11 - [enhancement] Switch to %%autochangelog * Sat Jan 17 2026 Fedora Release Engineering - 16.00.0000-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jul 25 2025 Fedora Release Engineering - 16.00.0000-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Feb 02 2025 Filip Janus - 16.00.0000-8 - gcc now uses std=gnu23 Use std=gnu17 to avoid errors * Sat Jan 18 2025 Fedora Release Engineering - 16.00.0000-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Fedora Release Engineering - 16.00.0000-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 16.00.0000-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 24 2024 Jakub Čajka - 16.00.0000-4 - Fix for issues on s390x * Sun Jan 21 2024 Fedora Release Engineering - 16.00.0000-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 05 2024 Honza Horak - 16.00.0000-2 - Skip wchar-char test on s390x * Mon Dec 25 2023 Yaakov Selkowitz - 16.00.0000-1 - Update to 16.00.0000 * Fri Jul 21 2023 Fedora Release Engineering - 13.01.0000-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon May 29 2023 Michal Schorm - 13.01.0000-6 - Remove the file acinclude.m4 * Wed May 03 2023 Filip Janus - 13.01.0000-5 - migrated to SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 13.01.0000-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 13.01.0000-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 13.01.0000-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Filip Januš - 13.01.0000-1 - Update to 13.01.0000 * Mon Feb 08 2021 Pavel Raiskup - 12.02.0000-7 - rebuild for libpq ABI fix * Tue Feb 02 2021 Michal Schorm - 12.02.0000-6 - %%ldconfig_scriptlets macro does not have any effect anymore * Tue Feb 02 2021 Michal Schorm - 12.02.0000-5 - Use Make macros * Wed Jan 27 2021 Fedora Release Engineering - 12.02.0000-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 08 2021 Tom Stellard - 12.02.0000-3 - Add BuildRequires: make * Tue Jul 28 2020 Fedora Release Engineering - 12.02.0000-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 02 2020 Ondrej Dubaj - 12.02.0000-1 - Rebase to upstream realease 12.02.0000 * Tue Mar 24 2020 Patrik Novotný - 12.01.0000-1 - Rebase to upstream realease 12.01.0000 * Thu Jan 30 2020 Fedora Release Engineering - 10.03.0000-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 10.03.0000-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 10.03.0000-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 28 2019 Igor Gnatenko - 10.03.0000-6 - Remove obsolete Group tag * Tue Jan 22 2019 Igor Gnatenko - 10.03.0000-5 - Remove obsolete ldconfig scriptlets * Fri Jul 13 2018 Fedora Release Engineering - 10.03.0000-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 09 2018 Igor Gnatenko - 10.03.0000-3 - add BuildRequires: gcc * Wed May 30 2018 Pavel Raiskup - 10.03.0000-2 - Fix upstream URL * Mon May 21 2018 Pavel Raiskup - 10.03.0000-1 - update: new upstream release * Fri Apr 13 2018 Pavel Raiskup - 10.02.0000-2 - BR postgresql-test-rpm-macros * Mon Apr 02 2018 Pavel Raiskup - 10.02.0000-1 - update: new upstream release * Fri Feb 09 2018 Fedora Release Engineering - 10.01.0000-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Dec 27 2017 Pavel Raiskup - 10.01.0000-1 - update: new upstream release * Mon Oct 23 2017 Pavel Raiskup - 10.00.0000-1 - update: new upstream release * Tue Sep 05 2017 Pavel Raiskup - 09.06.0500-1 - update: new upstream release * Thu Jul 27 2017 Pavel Raiskup - 09.06.0410-1 - New upstream release * Thu Jul 27 2017 Fedora Release Engineering - 09.06.0310-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri May 12 2017 Pavel Raiskup - 09.06.0310-1 - rebase: upstream hotfix/followup release * Tue May 09 2017 Pavel Raiskup - 09.06.0300-1 - rebase: latest version update * Mon Mar 13 2017 Pavel Raiskup - 09.06.0200-1 - rebase to latest upstream source * Mon Feb 06 2017 Pavel Raiskup - 09.06.0100-1 - rebase to latest upstream source * Thu Oct 20 2016 Pavel Raiskup - 09.05.0400-4 - provides: provide 'psqlodbc = version-release' * Mon Oct 10 2016 Pavel Raiskup - 09.05.0400-3 - check: depend "more" on postgresql-devel package * Mon Aug 29 2016 Petr Kubat - 09.05.0400-2 - Revert upstream fix related to MONEY issue and the accompanying testsuite * Thu Aug 11 2016 Petr Kubat - 09.05.0400-1 - rebase: minor release * Tue Jul 26 2016 Pavel Raiskup - 09.05.0300-4 - check: backport upstream fixes for testsuite * Sun Jun 19 2016 Pavel Raiskup - 09.05.0300-3 - check: one more test to be disabled for arm * Sat Jun 18 2016 Pavel Raiskup - 09.05.0300-2 - tests: disable the arm failure test properly * Fri Jun 17 2016 Pavel Raiskup - 09.05.0300-1 - rebase: minor update * Mon May 02 2016 Pavel Raiskup - 09.05.0210-4 - FTBFS: well, disable the test on armv7hl completely.. * Mon Apr 25 2016 Pavel Raiskup - 09.05.0210-3 - FTBFS: work-around one test failure on armv7hl * Mon Apr 18 2016 Pavel Raiskup - 09.05.0210-2 - tests: fix FTBFS by reverting one upstream patch * Mon Apr 18 2016 Pavel Raiskup - 09.05.0210-1 - rebase: minor update * Thu Apr 14 2016 Pavel Raiskup - 09.05.0200-3 - bump version * Thu Apr 14 2016 Pavel Raiskup - 09.05.0200-2 - tests: enable testsuite during build * Tue Apr 12 2016 Pavel Raiskup - 09.05.0200-1 - rebase: new upstream version * Thu Feb 04 2016 Fedora Release Engineering - 09.05.0100-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 11 2016 Pavel Raiskup - 09.05.0100-2 - tests: fix ini generator * Mon Jan 11 2016 Pavel Raiskup - 09.05.0100-1 - rebase: new upstream version - upstream commit e85fbb24 removed openssl requirement - upstream commit ebac6d25 fixed testsuite, no need to hack the odbc.ini/odbcinst.ini files during build - removed other BRs which do not seem to be needed nowadays * Thu Jun 18 2015 Dennis Gilmore - 09.03.0400-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Nov 19 2014 Pavel Raiskup - 09.03.0400-5 - testsuite: install requirements * Wed Nov 19 2014 Pavel Raiskup - 09.03.0400-4 - testsuite: avoid noarch for %%_libdir * Wed Nov 19 2014 Pavel Raiskup - 09.03.0400-3 - testsuite: don't use default password * Wed Nov 19 2014 Pavel Raiskup - 09.03.0400-2 - testsuite: install the testsuite in *-tests subpackage * Wed Oct 29 2014 Pavel Raiskup - 09.03.0400-1 - new upstream version * Sun Aug 17 2014 Peter Robinson - 09.03.0300-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Dennis Gilmore - 09.03.0300-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue May 20 2014 Pavel Raiskup - 09.03.0300-2 - spec: allow run upstream tests when 'runselftest' defined * Mon May 19 2014 Pavel Raiskup - 09.03.0300-1 - new upstream version * Wed Apr 23 2014 Pavel Raiskup - 09.03.0210-1 - rebase to 09.03.0210 * Thu Dec 19 2013 Pavel Raiskup - 09.03.0100-2 - spec: cleanup * Thu Dec 19 2013 Pavel Raiskup - 09.03.0100-1 - psqlodbc: rebase to 09.03.0100 * Mon Nov 18 2013 Pavel Raiskup - 09.02.0100-1 - rebase: update to latest upstream version * Sun Aug 04 2013 Dennis Gilmore - 09.01.0200-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Dennis Gilmore - 09.01.0200-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Nov 16 2012 Tom Lane - 09.01.0200-2 - Update tarball URL in specfile (no actual package change) * Mon Aug 20 2012 Tom Lane - 09.01.0200-1 - Update to version 09.01.0200 * Sat Jul 21 2012 Dennis Gilmore - 09.01.0100-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jan 10 2012 Tom Lane - 09.01.0100-1 - Update to version 09.01.0100 * Wed Feb 09 2011 Dennis Gilmore - 09.00.0200-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 29 2010 Tom Lane - 09.00.0200-1 - Update to version 09.00.0200 * Thu Jul 29 2010 Fedora Release Engineering - 08.04.0200-4 - dist-git conversion * Wed Mar 31 2010 Tom Lane - 08.04.0200-3 - Remove useless Requires:, per comment from Joe Orton. * Wed Jan 20 2010 Tom Lane - 08.04.0200-2 - Correct Source tag to reflect how to get the tarball * Wed Dec 30 2009 Tom Lane - 08.04.0200-1 - Update to version 08.04.0200 * Wed Nov 25 2009 Bill Nottingham - 08.04.0100-3 - Fix typo that causes a failure to update the common directory. (releng #2781) * Fri Aug 28 2009 Tom Lane - 08.04.0100-2 - Rebuild with new openssl * Tue Aug 18 2009 Tom Lane - 08.04.0100-1 - Update to version 08.04.0100 * Sun Jul 26 2009 Jesse Keating - 08.03.0200-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Feb 27 2009 Jesse Keating - 08.03.0200-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Feb 20 2009 Tom Lane - 08.03.0200-2 - Rebuild for unixODBC 2.2.14 * Tue Aug 05 2008 Tom Lane - 08.03.0200-1 - Update to version 08.03.0200 * Tue Feb 12 2008 Tom Lane - 08.03.0100-1 - Update to version 08.03.0100 * Fri Nov 02 2007 Tom Lane - 08.02.0500-1 - Update to version 08.02.0500 * Mon Oct 15 2007 Bill Nottingham - 08.02.0200-5 - makefile update to properly grab makefile.common * Thu Aug 02 2007 Tom Lane - 08.02.0200-4 - Update License tag * Wed Apr 25 2007 Tom Lane - 08.02.0200-3 - Add missing BuildRequires. * Wed Apr 25 2007 Tom Lane - 08.02.0200-2 - Add missing BuildRequires. * Wed Apr 25 2007 Tom Lane - 08.02.0200-1 - Update to version 08.02.0200 * Mon Dec 11 2006 Tom Lane - 08.01.0200-7 - Rebuild for new Postgres libraries * Wed Jul 12 2006 Jesse Keating - 08.01.0200-6 - bumped for rebuild * Sun Jun 11 2006 Tom Lane - 08.01.0200-5 - Fix BuildRequires: for mock build environment * Wed Mar 22 2006 Tom Lane - 08.01.0200-4 - Revert library name back to psqlodbc.so; add missing documentation. * Sat Feb 11 2006 Jesse Keating - 08.01.0200-3 - bump for bug in double-long on ppc(64) * Tue Feb 07 2006 Jesse Keating - 08.01.0200-2 - bump for new gcc/glibc * Fri Feb 03 2006 Tom Lane - 08.01.0200-1 - Update to version 08.01.0200. * Thu Dec 15 2005 Tom Lane - 08.01.0102-1 - Update to latest rev, fix bug #174505. * Fri Dec 09 2005 Jesse Keating - 08.01.0100-2 - gcc update bump * Mon Nov 07 2005 Tom Lane - 08.01.0100-1 - Update to version 08.01.0100. * Wed Mar 02 2005 Tom Lane - 08.00.0100-1 - Update to version 08.00.0100. * Sat Nov 13 2004 Tom Lane - 7.3-5 - back-port 64-bit fixes from current upstream (bug #139004) * Tue Sep 21 2004 Tom Lane - 7.3-4 - Rebuild. * Thu Sep 09 2004 cvsdist - 7.3-3 - auto-import changelog data from postgresql-odbc-7.3-7.src.rpm Tue Jun 15 2004 Elliot Lee - rebuilt Wed Mar 10 2004 Tom Lane - Correct License: annotation. * Thu Sep 09 2004 cvsdist - 7.3-2 - auto-import changelog data from postgresql-odbc-7.3-6.1.src.rpm Tue Mar 02 2004 Elliot Lee - rebuilt Fri Feb 13 2004 Elliot Lee - rebuilt Fri Nov 21 2003 David Jee 7.3-5 - rebuild Wed Nov 05 2003 David Jee 7.3-4 - import new community version 07.03.0200 * Thu Sep 09 2004 cvsdist - 7.3-1 - auto-import changelog data from postgresql-odbc-7.3-4.src.rpm Mon Sep 15 2003 Andrew Overholt 7.3-3 - autotools fixes (courtesy Alex Oliva and Owen Taylor ) Tue Jul 08 2003 Andrew Overholt 7.3-3 - allow use with unixODBC (courtesy Troels Arvin) [Bug #97998] Wed Jun 04 2003 Elliot Lee - rebuilt Mon Jun 02 2003 Andrew Overholt 7.3-1 - sync to new community version (07.03.0100 => v7.3, r1) * Thu Sep 09 2004 cvsdist - 7.2.5-1 - auto-import changelog data from postgresql-odbc-7.2.5-1.src.rpm Tue Feb 04 2003 Andrew Overholt - 7.2.5-1 - bump version number to be greater than that shipped with 8.0 Tue Jan 14 2003 Andrew Overholt - 1-1 - initial build (just took old package sections) ## END: Generated by rpmautospec