fix pkgconifg file providing -DINSTALL_LIBDIR=%{_lib} [release 10.8.2-2mamba;Wed May 04 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 06:57:49 +01:00
parent 7607cda7a4
commit db9e8cccca

View File

@ -5,8 +5,8 @@
%define userid 65018 %define userid 65018
Name: mariadb Name: mariadb
Version: 10.6.4 Version: 10.8.2
Release: 1mamba Release: 2mamba
Summary: A SQL database engine designed as a drop-in replacement of MySQL(R) Summary: A SQL database engine designed as a drop-in replacement of MySQL(R)
Group: Applications/Databases Group: Applications/Databases
Vendor: openmamba Vendor: openmamba
@ -156,6 +156,7 @@ cd libmariadb
%patch1 -p1 -R %patch1 -p1 -R
%build %build
#:<< _EOF
%cmake -d build \ %cmake -d build \
-DBUILD_CONFIG=mysql_release \ -DBUILD_CONFIG=mysql_release \
-DSYSCONFDIR=%{_sysconfdir}/mysql \ -DSYSCONFDIR=%{_sysconfdir}/mysql \
@ -166,7 +167,9 @@ cd libmariadb
-DDEFAULT_COLLATION=utf8_general_ci \ -DDEFAULT_COLLATION=utf8_general_ci \
-DENABLED_LOCAL_INFILE=ON \ -DENABLED_LOCAL_INFILE=ON \
-DINSTALL_INFODIR=share/mysql/docs \ -DINSTALL_INFODIR=share/mysql/docs \
-DINSTALL_LIBDIR=%{_lib} \
-DINSTALL_MANDIR=share/man \ -DINSTALL_MANDIR=share/man \
-DINSTALL_PCDIR=%{_libdir}/pkgconfig \
-DINSTALL_PLUGINDIR=%{_lib}/mysql/plugin \ -DINSTALL_PLUGINDIR=%{_lib}/mysql/plugin \
-DINSTALL_SCRIPTDIR=bin \ -DINSTALL_SCRIPTDIR=bin \
-DINSTALL_INCLUDEDIR=include/mysql \ -DINSTALL_INCLUDEDIR=include/mysql \
@ -237,11 +240,6 @@ install -D -m644 support-files/rpm/mysql-clients.cnf %{buildroot}%{_sysconfdir}/
ln -s libmariadb.so.3 %{buildroot}%{_libdir}/libmysqlclient.so.18 ln -s libmariadb.so.3 %{buildroot}%{_libdir}/libmysqlclient.so.18
%ifarch x86_64 aarch64
mv %{buildroot}%{_prefix}/lib/lib* %{buildroot}%{_libdir}/
mv %{buildroot}%{_prefix}/lib/pkgconfig %{buildroot}%{_libdir}
%endif
install -d -m0755 %{buildroot}%{_sysconfdir}/php/php.d install -d -m0755 %{buildroot}%{_sysconfdir}/php/php.d
cat > %{buildroot}%{_sysconfdir}/php/php.d/mysql_mariadb.ini << _EOF cat > %{buildroot}%{_sysconfdir}/php/php.d/mysql_mariadb.ini << _EOF
[MySQL] [MySQL]
@ -562,10 +560,7 @@ fi
%{_datadir}/mysql/INSTALL-BINARY %{_datadir}/mysql/INSTALL-BINARY
%{_datadir}/mysql/README.md %{_datadir}/mysql/README.md
%{_datadir}/mysql/hindi %{_datadir}/mysql/hindi
%dir %{_datadir}/groonga %{_datadir}/mysql/mini-benchmark
%{_datadir}/groonga/*
%dir %{_datadir}/groonga-normalizer-mysql
%{_datadir}/groonga-normalizer-mysql/*
%dir %{_datadir}/mysql/mroonga %dir %{_datadir}/mysql/mroonga
%{_datadir}/mysql/mroonga/* %{_datadir}/mysql/mroonga/*
%dir %{_datadir}/mysql/aclocal %dir %{_datadir}/mysql/aclocal
@ -575,11 +570,10 @@ fi
%dir %{_datadir}/mysql/systemd %dir %{_datadir}/mysql/systemd
%{_datadir}/mysql/systemd/* %{_datadir}/mysql/systemd/*
%{_datadir}/mysql/wsrep_notify %{_datadir}/mysql/wsrep_notify
#%ifarch x86_64 %dir %{_datadir}/groonga
#%dir %{_datadir}/mysql/docs %{_datadir}/groonga/*
#%{_datadir}/mysql/docs/* %dir %{_datadir}/groonga-normalizer-mysql
#%endif %{_datadir}/groonga-normalizer-mysql/*
#%{_datadir}/mysql/mysql_performance_tables.sql
%{_mandir}/man1/innochecksum.1* %{_mandir}/man1/innochecksum.1*
%{_mandir}/man1/my_print_defaults.1* %{_mandir}/man1/my_print_defaults.1*
%{_mandir}/man1/myisamchk.1* %{_mandir}/man1/myisamchk.1*
@ -633,6 +627,7 @@ fi
%dir %{_includedir}/mysql %dir %{_includedir}/mysql
%{_includedir}/mysql/* %{_includedir}/mysql/*
%{_libdir}/libmariadb.so %{_libdir}/libmariadb.so
%{_libdir}/libmariadb.a
%{_libdir}/libmariadbclient.a %{_libdir}/libmariadbclient.a
%{_libdir}/libmariadbd.a %{_libdir}/libmariadbd.a
%{_libdir}/libmariadbd.so %{_libdir}/libmariadbd.so
@ -652,6 +647,18 @@ fi
%{_mandir}/man3/mysql_*.3* %{_mandir}/man3/mysql_*.3*
%changelog %changelog
* Wed May 04 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 10.8.2-2mamba
- fix pkgconifg file providing -DINSTALL_LIBDIR=%{_lib}
* Fri Feb 25 2022 Automatic Build System <autodist@mambasoft.it> 10.8.2-1mamba
- automatic version update by autodist
* Tue Nov 16 2021 Automatic Build System <autodist@mambasoft.it> 10.7.1-1mamba
- automatic version update by autodist
* Mon Nov 15 2021 Automatic Build System <autodist@mambasoft.it> 10.6.5-1mamba
- automatic version update by autodist
* Fri Aug 06 2021 Automatic Build System <autodist@mambasoft.it> 10.6.4-1mamba * Fri Aug 06 2021 Automatic Build System <autodist@mambasoft.it> 10.6.4-1mamba
- automatic version update by autodist - automatic version update by autodist