Skip to content

Commit 2695c3e

Browse files
committed
Merge remote-tracking branch 'origin/release/8.0.26'
2 parents b16d1db + 7156e8c commit 2695c3e

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

jdbc

packaging/mysql-connector-c++.spec.in

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@ License: %{license_type}
5555
URL: https://dev.mysql.com/doc/connector-cpp/en/
5656
Source0: https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++%{?product_suffix}-%{version}-src.tar.gz
5757
#BuildRequires: boost-devel
58-
%if 0%{?rhel} < 8
59-
BuildRequires: cmake3
60-
%else
61-
BuildRequires: cmake
62-
%endif
58+
BuildRequires: cmake%{?el6:3}%{?el7:3}
6359
%if 0%{?fedora} || 0%{?suse_version}
6460
BuildRequires: gcc
6561
BuildRequires: gcc-c++
@@ -126,11 +122,7 @@ test suite for MySQL Connector/C++
126122
%endif
127123
%global __cmake_explicit_opts -DCMAKE_INSTALL_PREFIX="%_prefix" -DCMAKE_C_FLAGS:STRING="%optflags" -DCMAKE_CXX_FLAGS:STRING="%optflags"
128124
%global __cmake_common_opts -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/mysql-cppconn-8 -DWITH_JDBC=ON -DWITH_SSL=system %{__cmake_test_opts} %{?mysql_opt} -DDEBUG_PREFIX_MAP=OFF
129-
%if 0%{?rhel} < 8
130-
%global __cmake_cmd cmake3 %{__cmake_common_opts} %{__cmake_explicit_opts} ..
131-
%else
132-
%global __cmake_cmd cmake %{__cmake_common_opts} %{__cmake_explicit_opts} ..
133-
%endif
125+
%global __cmake_cmd cmake%{?el6:3}%{?el7:3} %{__cmake_common_opts} %{__cmake_explicit_opts} ..
134126
mkdir build-dynamic && pushd build-dynamic
135127
pwd
136128
%__cmake_cmd
@@ -215,7 +207,8 @@ rm %{buildroot}/usr/{INFO_SRC,INFO_BIN}
215207
%endif
216208

217209
%changelog
218-
* Wed Jun 09 2021 Gipson Pulla <[email protected]> - 8.0.26-1
210+
* Thu Jun 10 2021 Gipson Pulla <[email protected]> - 8.0.26-1
211+
- Updated the platforms that need cmake3
219212
- The cmake3 binary isn't required for el8 platforms
220213

221214
* Fri Feb 05 2021 Kent Boortz <[email protected]> - 8.0.24-1

0 commit comments

Comments
 (0)