# # spec file for package psqlODBC # # 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 # 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 tarname psqlodbc Name: psqlODBC Version: 16.00.0000 Release: 0 Summary: ODBC Driver for PostgreSQL License: LGPL-2.1-or-later Group: Productivity/Databases/Clients URL: https://odbc.postgresql.org/ Source0: https://ftp.postgresql.org/pub/odbc/versions/src/%{tarname}-%{version}.tar.gz Patch0: psqlODBC-internal.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: openssl-devel BuildRequires: postgresql-devel BuildRequires: unixODBC-devel PreReq: %{_bindir}/odbcinst Obsoletes: pg_odbc < %{version}-%{release} Obsoletes: postgresql-odbc < %{version}-%{release} Provides: pg_iface:%{_prefix}/lib/pgsql/odbcinst.ini Provides: pg_odbc = %{version}-%{release} Provides: postgresql-odbc = %{version}-%{release} %description This package contains the ODBC (Open DataBase Connectivity) driver and sample configuration files needed for applications to access a PostgreSQL database using ODBC. %prep %setup -q -n %{tarname}-%{version} %patch0 -p1 %build export CPPFLAGS="-I/usr/include/pgsql" %configure --with-unixodbc make %{?_smp_mflags} %install %make_install find %{buildroot} -type f -name "*.la" -delete -print %post /sbin/ldconfig # odbcinst uses reference counting, so we don't # need to take care for the update case here. odbcinst -i -l -d %{_libdir}/psqlodbcw.so -r <