2021-03-03 15:00:10 +08:00
Name : mariadb-connector-odbc
Version : 3.1.11
2022-03-23 03:42:12 +00:00
Release : 2
2021-03-03 15:00:10 +08:00
Summary : The MariaDB Native Client library (ODBC driver)
License : LGPLv2+
Source0 : mariadb-connector-odbc-%{version} /%{name} -%{version} -ga-src.tar.gz
Url : https://mariadb.org/en/
# Online documentation can be found at: https://mariadb.com/kb/en/library/mariadb-connector-odbc/
2022-03-23 03:42:12 +00:00
BuildRequires : cmake make unixODBC-devel gcc-c++
2021-03-03 15:00:10 +08:00
BuildRequires : mariadb-connector-c-devel >= 3.0.6
Patch1 : libraries_include_path.patch
%description
MariaDB Connector/ODBC is a standardized, LGPL licensed database driver using
the industry standard Open Database Connectivity (ODBC) API. It supports ODBC
Standard 3.5, can be used as a drop-in replacement for MySQL Connector/ODBC,
and it supports both Unicode and ANSI modes.
%prep
%setup -q -n %{name} -%{version} -ga-src
%patch1 -p1
%build
%cmake . \
-DCMAKE_BUILD_TYPE=" % { ? w i t h _ d e b u g : D e b u g } % { ! ? w i t h _ d e b u g : R e l W i t h D e b I n f o } " \
-DMARIADB_LINK_DYNAMIC=" %{_libdir} / l i b m a r i a d b . s o " \
-DINSTALL_LAYOUT=RPM \
-DINSTALL_LIBDIR=" % { _ l i b } " \
-DINSTALL_LIB_SUFFIX=" % { _ l i b } " \
-DINSTALL_DOCDIR=" %{_defaultdocdir} / %{name} " \
2022-03-23 03:42:12 +00:00
-DINSTALL_LICENSEDIR=" %{_defaultlicensedir} / %{name} "
2021-03-03 15:00:10 +08:00
2022-03-23 03:42:12 +00:00
cmake --build .
2021-03-03 15:00:10 +08:00
%install
%make_install
%files
%license COPYING
%doc README
# This is unixODBC plugin. It resides directly in %%{_libdir} to be consistent with the rest of unixODBC plugins. Since it is plugin, it doesn´ t need to be versioned.
%{_libdir} /libmaodbc.so
%changelog
2022-03-23 03:42:12 +00:00
* Wed Mar 23 2022 bzhaoop <bzhaojyathousandy@gmail.com> - 3.1.11-2
- Fix for fitting the new version Cmake.
2021-03-03 15:00:10 +08:00
* Wed Mar 3 2021 Zheng Zhenyu <zheng.zhenyu@outlook.com> - 3.1.11-1
- Initial Commit