SPECfile cleanup - use the unversioned docdirs in a clean and straightforward way

This commit is contained in:
Michal Schorm 2023-11-30 14:03:10 +01:00 committed by Lukas Javorsky
parent b1b14a1e11
commit 8a077c3962

View File

@ -17,10 +17,6 @@
# Set to 1 to force run the testsuite even if it was already tested in current version
%global force_run_testsuite 0
# In f20+ use unversioned docdirs, otherwise the old versioned one
%global _pkgdocdirname %{pkg_name}%{!?_pkgdocdir:-%{version}}
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{pkg_name}-%{version}}
%global skiplist platform-specific-tests.list
%global boost_bundled_version 1.77.0
@ -440,8 +436,8 @@ cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} \
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
-DSYSCONFDIR="%{_sysconfdir}" \
-DSYSCONF2DIR="%{_sysconfdir}/my.cnf.d" \
-DINSTALL_DOCDIR="share/doc/%{_pkgdocdirname}" \
-DINSTALL_DOCREADMEDIR="share/doc/%{_pkgdocdirname}" \
-DINSTALL_DOCDIR="share/doc/%{pkg_name}" \
-DINSTALL_DOCREADMEDIR="share/doc/%{pkg_name}" \
-DINSTALL_INCLUDEDIR=include/mysql \
-DINSTALL_INFODIR=share/info \
-DINSTALL_LIBEXECDIR=libexec \