81 lines
2.5 KiB
RPMSpec
81 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package mariadb-connector-odbc
|
|
#
|
|
# 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
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: mariadb-connector-odbc
|
|
Version: 3.2.5
|
|
Release: 0
|
|
Summary: MariaDB ODBC Connector
|
|
License: LGPL-2.1-or-later
|
|
Group: Productivity/Databases/Tools
|
|
URL: https://downloads.mariadb.org/connector-odbc/
|
|
Source: https://archive.mariadb.org/connector-odbc-%{version}/mariadb-connector-odbc-%{version}-src.tar.gz
|
|
## copy-paste from download page ... ugly :(
|
|
Source1: mariadb-connector-odbc-%{version}-src.tar.gz.asc
|
|
Source2: README
|
|
Source3: sample_odbc.ini
|
|
Source4: mariadb-connector-odbc-rpmlintrc
|
|
## https://mariadb.org/new-gpg-release-key-rpms/
|
|
Source10: mariadb.keyring
|
|
Patch6: DSN_names.patch
|
|
Patch8: nosoname.patch
|
|
BuildRequires: cmake > 3.5.0
|
|
BuildRequires: gcc-c++
|
|
# This is actually MariaDB -devel package(s)
|
|
BuildRequires: libmariadb-devel >= 3.1.11
|
|
BuildRequires: libmariadbprivate >= 3.1.11
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: sed
|
|
BuildRequires: unixODBC-devel
|
|
Obsoletes: MyODBC-unixODBC <= 5.1.9
|
|
|
|
%description
|
|
This package contains the MariaDB ODBC Connector to be used with unixODBC.
|
|
|
|
%prep
|
|
%autosetup -p1 -n mariadb-connector-odbc-%{version}-src
|
|
|
|
%build
|
|
%cmake \
|
|
-DWITH_UNIXODBC=1 \
|
|
-DWITH_OPENSSL=ON \
|
|
-DMARIADB_LINK_DYNAMIC=1 \
|
|
-DINSTALL_DOCDIR=%{_docdir}/%{name} \
|
|
-DINSTALL_LAYOUT=RPM \
|
|
-DINSTALL_LICENSEDIR=%{_licensedir}/%{name}
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
# remove devel files
|
|
rm -r %{buildroot}%{_includedir}
|
|
rm -r %{buildroot}%{_libdir}/pkgconfig
|
|
install -Dpm 0644 -t %{buildroot}%{_docdir}/%{name} %{SOURCE2} %{SOURCE3}
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%dir %{_docdir}/%{name}
|
|
%license COPYING
|
|
%{_libdir}/libmaodbc.so
|
|
%{_docdir}/%{name}/README
|
|
%{_docdir}/%{name}/sample_odbc.ini
|
|
%{_docdir}/%{name}/maodbc.ini
|
|
|
|
%changelog
|