Skip to content

Commit b05b342

Browse files
committed
Minor RPM spec changes
- Corrected the source package name - Handle EXTRA_COMPILE_ARGS and EXTRA_LINK_ARGS with spaces in the argument
1 parent 2a2a52d commit b05b342

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpydist/data/rpm/mysql-connector-python.spec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Version: %{version}
9696
Release: 1%{?version_extra:.%{version_extra}}%{?byte_code_only:.1}%{?dist}
9797
License: Copyright (c) 2015, 2021, Oracle and/or its affiliates. Under %{?license_type} license as shown in the Description field.
9898
URL: https://dev.mysql.com/downloads/connector/python/
99-
Source0: https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python%{?product_suffix}-%{version}.tar.gz
99+
Source0: https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python%{?product_suffix}-%{version}-src.tar.gz
100100

101101
%{!?with_mysql_capi:BuildRequires: mysql-devel}
102102

@@ -201,7 +201,7 @@ and information about the MySQL software. Also please see the
201201
documentation and the manual for more information.
202202

203203
%prep
204-
%setup -q
204+
%setup -q -n mysql-connector-python%{?product_suffix}-%{version}-src
205205

206206
%install
207207
%{?scl:scl enable %{scl} - << \EOF}
@@ -218,13 +218,13 @@ COMMON_INSTALL_ARGS="\
218218
"
219219
220220
%if 0%{?extra_compile_args:1}
221-
EXTRA_COMPILE_ARGS=%extra_compile_args
221+
EXTRA_COMPILE_ARGS="%{extra_compile_args}"
222222
%else
223223
EXTRA_COMPILE_ARGS=""
224224
%endif
225225
226226
%if 0%{?extra_link_args:1}
227-
EXTRA_LINK_ARGS=%extra_link_args
227+
EXTRA_LINK_ARGS="%{extra_link_args}"
228228
%else
229229
EXTRA_LINK_ARGS=""
230230
%endif

0 commit comments

Comments
 (0)