b178451
# For deep debugging we need to build binaries with extra debug info
6c7d53d
%bcond_with     debug
b178451
764aa22
764aa22
FaramosCZ 56b9bda
Name:           mariadb-connector-odbc
4ef0005
Version:        3.1.19
4ef0005
Release:        1%{?with_debug:.debug}%{?dist}
FaramosCZ 56b9bda
Summary:        The MariaDB Native Client library (ODBC driver)
6653b42
License:        LGPL-2.1-or-later
2fcc02e
Source:         https://archive.mariadb.org/connector-odbc-%{version}/%{name}-%{version}-src.tar.gz
FaramosCZ 56b9bda
Url:            https://mariadb.org/en/
b178451
# Online documentation can be found at: https://mariadb.com/kb/en/library/mariadb-connector-odbc/
807be88
b2b1687
BuildRequires:  cmake unixODBC-devel gcc-c++
4ef0005
BuildRequires:  mariadb-connector-c-devel >= 3.3.5
c2278d5
c2278d5
Patch1:         libraries_include_path.patch
FaramosCZ 56b9bda
FaramosCZ 56b9bda
%description
FaramosCZ 56b9bda
MariaDB Connector/ODBC is a standardized, LGPL licensed database driver using
FaramosCZ 56b9bda
the industry standard Open Database Connectivity (ODBC) API. It supports ODBC
FaramosCZ 56b9bda
Standard 3.5, can be used as a drop-in replacement for MySQL Connector/ODBC,
FaramosCZ 56b9bda
and it supports both Unicode and ANSI modes.
FaramosCZ 56b9bda
764aa22
764aa22
FaramosCZ 56b9bda
%prep
aa314ff
%setup -q -n %{name}-%{version}-src
1f7a42f
%patch -P1 -p1
FaramosCZ 56b9bda
6c7d53d
b178451
764aa22
%build
764aa22
6e909b9
%cmake \
1dac4c1
       -DCMAKE_BUILD_TYPE="%{?with_debug:Debug}%{!?with_debug:RelWithDebInfo}" \
764aa22
       -DMARIADB_LINK_DYNAMIC="%{_libdir}/libmariadb.so" \
764aa22
\
764aa22
       -DINSTALL_LAYOUT=RPM \
996643d
       -DINSTALL_LIBDIR="%{_lib}" \
764aa22
       -DINSTALL_LIB_SUFFIX="%{_lib}" \
996643d
       -DINSTALL_DOCDIR="%{_defaultdocdir}/%{name}" \
996643d
       -DINSTALL_LICENSEDIR="%{_defaultlicensedir}/%{name}" \
2f54652
764aa22
# Override all optimization flags when making a debug build
764aa22
%if %{with debug}
764aa22
CFLAGS="$CFLAGS     -O0 -g"; export CFLAGS
764aa22
CXXFLAGS="$CXXFLAGS -O0 -g"; export CXXFLAGS
764aa22
FFLAGS="$FFLAGS     -O0 -g"; export FFLAGS
764aa22
FCFLAGS="$FCFLAGS   -O0 -g"; export FCFLAGS
764aa22
%endif
764aa22
8507e3b
#cmake -B %_vpath_builddir -LAH
764aa22
764aa22
%cmake_build
764aa22
764aa22
FaramosCZ 56b9bda
FaramosCZ 56b9bda
%install
764aa22
%cmake_install
764aa22
764aa22
FaramosCZ 56b9bda
FaramosCZ 56b9bda
%files
FaramosCZ 56b9bda
%license COPYING
FaramosCZ 56b9bda
%doc     README
e42ef36
2f54652
# 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.
e42ef36
%{_libdir}/libmaodbc.so
FaramosCZ 56b9bda
e32bbfd
# Pkgconfig
e32bbfd
%{_libdir}/pkgconfig/libmaodbc.pc
FaramosCZ 56b9bda
FaramosCZ 56b9bda
FaramosCZ 56b9bda
%changelog
4ef0005
* Wed Jul 26 2023 Michal Schorm <mschorm@redhat.com> - 3.1.19-1
4ef0005
- Rebase to 3.1.19
4ef0005
f282787
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.18-2
f282787
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
f282787
1b1b486
* Wed Apr 19 2023 Michal Schorm <mschorm@redhat.com> - 3.1.18-1
1b1b486
- Rebase to 3.1.18
1b1b486
920258e
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.15-3
920258e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
920258e
15f7401
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.15-2
15f7401
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
15f7401
3fa88e2
* Fri Feb 18 2022 Michal Schorm <mschorm@redhat.com> - 3.1.15-1
3fa88e2
- Rebase to 3.1.15
3fa88e2
e32bbfd
* Fri Feb 18 2022 Michal Schorm <mschorm@redhat.com> - 3.1.14-1
e32bbfd
- Rebase to 3.1.14
e32bbfd
3639563
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.13-3
3639563
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3639563
8e79fe0
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.13-2
8e79fe0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8e79fe0
c1dc1be
* Wed Jun 09 2021 Michal Schorm <mschorm@redhat.com> - 3.1.13-1
c1dc1be
- Rebase to 3.1.13
c1dc1be
aa314ff
* Thu Apr 22 2021 Michal Schorm <mschorm@redhat.com> - 3.1.12-1
aa314ff
- Rebase to 3.1.12
aa314ff
6c3c0d6
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.11-2
6c3c0d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6c3c0d6
9849abe
* Mon Dec 14 2020 Lukas Javorsky <ljavorsk@redhat.com> - 3.1.11-1
9849abe
- Rebase to 3.1.11
9849abe
- Add updates for paths in libraries_include_path.patch
9849abe
764aa22
* Thu Aug 06 2020 Michal Schorm <mschorm@redhat.com> - 3.1.9-4
764aa22
- Force the CMake change regarding the in-source builds also to F31 and F32
764aa22
- %%cmake macro covers the %%{set_build_flags}, so they are not needed
764aa22
  That also means, the debug build changes to the build flags must be done AFTER the
764aa22
  %%cmake macro was used.
764aa22
- %%cmake macro also covers several other options which redudndant specification I removed in this commit
764aa22
- Default to %%cmake commands instead of %%make commands
764aa22
603481b
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.9-3
603481b
- Second attempt - Rebuilt for
603481b
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
603481b
62ffdf9
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.9-2
62ffdf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
62ffdf9
996643d
* Thu Jul 02 2020 Lukas Javorsky <ljavorsk@redhat.com> - 3.1.9-1
996643d
- Rebase to 3.1.9
996643d
- Add patch add_docs_license_dir_option
996643d
75cd8a3
* Thu Apr 09 2020 Michal Schorm <mschorm@redhat.com> - 3.1.7-1
75cd8a3
- Rebase to 3.1.7
75cd8a3
6868c76
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.6-2
6868c76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6868c76
ed3e277
* Thu Jan 23 2020 Lukas Javorsky <ljavorsk@redhat.com> - 3.1.6-1
ed3e277
- Rebase to 3.1.6
ed3e277
e558ece
* Fri Nov 15 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3.1.5-1
e558ece
- Rebase to 3.1.5
e558ece
c387d89
* Tue Nov 12 2019 Michal Schorm <mschorm@redhat.com> - 3.1.4-2
c387d89
- Rebuild on top of new mariadb-connector-c
c387d89
6d4857c
* Mon Nov 04 2019 Michal Schorm <mschorm@redhat.com> - 3.1.4-1
6d4857c
- Rebase to 3.1.4
6d4857c
3454589
* Mon Aug 19 2019 Michal Schorm <mschorm@redhat.com> - 3.1.3-1
3454589
- Rebase to 3.1.3
3454589
1172229
* Wed Jul 31 2019 Michal Schorm <mschorm@redhat.com> - 3.1.2-1
1172229
- Rebase to 3.1.2
1172229
- Patch2 upstreamed
1172229
873944a
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-5
873944a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
873944a
6c7d53d
* Fri Jul 19 2019 Michal Schorm <mschorm@redhat.com> - 3.1.1-4
6c7d53d
- Use macro for setting the compiler flags
6c7d53d
b178451
* Wed Jun 05 2019 Michal Schorm <mschorm@redhat.com> - 3.1.1-3
b178451
- Added debug build switch
b178451
- Added patch2: configurable doc and license dirs paths
b178451
11edee5
* Wed Jun 05 2019 Michal Schorm <mschorm@redhat.com> - 3.1.1-2
11edee5
- Patch solution found
11edee5
52c37ec
* Tue Jun 04 2019 Michal Schorm <mschorm@redhat.com> - 3.1.1-1
52c37ec
- Rebase to 3.1.1
52c37ec
cb0204a
* Tue Jun 04 2019 Michal Schorm <mschorm@redhat.com> - 3.0.9-1
cb0204a
- Rebase to 3.0.9
cb0204a
53bd8d5
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-3
53bd8d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
53bd8d5
967dcef
* Wed Jan 23 2019 Björn Esser <besser82@fedoraproject.org> - 3.0.8-2
967dcef
- Append curdir to CMake invokation. (#1668512)
967dcef
dede60f
* Sun Jan 06 2019 Michal Schorm <mschorm@redhat.com> - 3.0.8-1
dede60f
- Rebase to 3.0.8
dede60f
051cacf
* Tue Nov 20 2018 Michal Schorm <mschorm@redhat.com> - 3.0.7-1
051cacf
- Rebase to 3.0.7
051cacf
c2278d5
* Fri Aug 03 2018 Michal Schorm <mschorm@redhat.com> - 3.0.6-1
c2278d5
- Rebase to 3.0.6
c2278d5
- Raise the minimal version of the connector-c required, because of a fixed bug
c2278d5
  which affected connector-odbc builds
c2278d5
d8ea2ef
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-2
d8ea2ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d8ea2ef
e42ef36
* Sat Feb 10 2018 Michal Schorm <mschorm@redhat.com> - 3.0.3-1
e42ef36
- Rebase to 3.0.3 version
e42ef36
- Use more macros
e42ef36
9286272
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
9286272
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9286272
0f7d2f8
* Tue Jan 30 2018 Michal Schorm <mschorm@redhat.com> - 3.0.2-1
0f7d2f8
- Rebase to 3.0.2 version
0f7d2f8
- Update ldconfig scriptlets
0f7d2f8
- Remove Group tag
0f7d2f8
e4855a2
* Thu Sep 07 2017 Augusto Caringi <acaringi@fedoraproject.org> - 3.0.1-2
e4855a2
- Update to top of 3.0 branch from GitHub 860e7f8b754f (version supporting dynamic linking)
e4855a2
- Source tarball composed from upstream GitHub, because the latest version solves the issues
e4855a2
  with dynamic linking.
e4855a2
0debdc6
* Mon Sep 04 2017 Augusto Caringi <acaringi@fedoraproject.org> - 3.0.1-1
0debdc6
- Update to version 3.0.1
0debdc6
80f2811
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.14-3
80f2811
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
80f2811
29da15e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.14-2
29da15e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
29da15e
df5ba1a
* Tue May 16 2017 Michal Schorm <mschorm@redhat.com> - 2.0.14-1
df5ba1a
- Update to version 2.0.14 and check, if blockers still apply. They do.
df5ba1a
- Upstream issue created
df5ba1a
2df30a3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.12-2
2df30a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2df30a3
FaramosCZ 56b9bda
* Wed Oct 19 2016 Michal Schorm <mschorm@redhat.com> - 2.0.12-1
FaramosCZ 56b9bda
- Initial version for 2.0.12