From: Arkadiusz Miśkiewicz Date: Mon, 25 Mar 2024 07:55:37 +0000 (+0100) Subject: Rel 2; P/O mysql-devel; provide mysql_config binary in -devel subpackage X-Git-Tag: auto/th/mysql8.0-8.0.36-2 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fmysql.git;a=commitdiff_plain;h=d44d74c569e914aa28e8b7ad11ca6a234d9ad708 Rel 2; P/O mysql-devel; provide mysql_config binary in -devel subpackage --- diff --git a/mysql.spec b/mysql.spec index a8f05da..82aa255 100644 --- a/mysql.spec +++ b/mysql.spec @@ -39,7 +39,7 @@ Summary(zh_CN.UTF-8): MySQL数据库服务器 Name: mysql%{majorver} # keep stable (and not "innovation") line here Version: 8.0.36 -Release: 1 +Release: 2 License: GPL v2 + MySQL FOSS License Exception Group: Applications/Databases #Source0Download: https://dev.mysql.com/downloads/mysql/8.0.html#downloads @@ -334,6 +334,8 @@ Requires: zlib-devel >= 1.2.12 Obsoletes: MySQL-devel < 3.22.27 Obsoletes: libmysql10-devel < 4 Obsoletes: webscalesql-devel +Provides: mysql-devel = %{version}-%{release} +Obsoletes: mysql-devel < %{version}-%{release} %description devel This package contains the development header files and other files @@ -665,6 +667,9 @@ for f in $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/* ; do done done +# keep mysql_config as -devel package colides anyway +ln -s mysql_config%{majorver} $RPM_BUILD_ROOT%{_bindir}/mysql_config + %clean rm -rf $RPM_BUILD_ROOT @@ -934,6 +939,7 @@ fi %files devel %defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/mysql_config %attr(755,root,root) %{_bindir}/mysql_config%{majorver} %attr(755,root,root) %{_libdir}/libmysqlclient.so %if %{with ndb}