[Documentation enhancement] Stop packing useless documentaion files, start packing useful documentation file
Related: RHEL-31421
This commit is contained in:
parent
a75a226b62
commit
2f4b0e7edc
21
docs.patch
Normal file
21
docs.patch
Normal file
@ -0,0 +1,21 @@
|
||||
The CMake prepares file AUTHORS for packing.
|
||||
It only contains one line, and isn't packed in any upstream-produced packagess.
|
||||
I don't find it useful and since upstream doesn't pack it either, stop packing it here.
|
||||
|
||||
The README file contains infromation on how to build the project from sources, and thus isn't useful for the end users.
|
||||
|
||||
On the other hand, the README-MySQL isn't prepared for packing by CMake, but contains useful information about the software usage and it is package in upstream-produced packages.
|
||||
|
||||
--- galera-26.4.18/CMakeLists.txt 2024-06-09 04:54:56.281408893 +0200
|
||||
+++ galera-26.4.18/CMakeLists.txt_patched 2024-06-09 06:52:58.093217968 +0200
|
||||
@@ -118,9 +118,8 @@ endif()
|
||||
|
||||
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES ".*BSD")
|
||||
install(FILES
|
||||
- ${PROJECT_SOURCE_DIR}/AUTHORS
|
||||
${PROJECT_SOURCE_DIR}/COPYING
|
||||
- ${PROJECT_SOURCE_DIR}/README
|
||||
+ ${PROJECT_SOURCE_DIR}/scripts/packages/README-MySQL
|
||||
DESTINATION ${INSTALL_DOCDIR} )
|
||||
install(FILES ${PROJECT_SOURCE_DIR}/asio/LICENSE_1_0.txt
|
||||
DESTINATION ${INSTALL_DOCDIR}
|
@ -16,6 +16,7 @@ URL: http://galeracluster.com/
|
||||
Source0: http://releases.galeracluster.com/source/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch0: cmake_paths.patch
|
||||
Patch1: docs.patch
|
||||
|
||||
BuildRequires: boost-devel check-devel openssl-devel cmake systemd gcc-c++ asio-devel
|
||||
Requires(pre): /usr/sbin/useradd
|
||||
@ -35,6 +36,7 @@ description of Galera replication engine see https://www.galeracluster.com web.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -P0 -p1
|
||||
%patch -P1 -p1
|
||||
|
||||
%build
|
||||
%{set_build_flags}
|
||||
@ -143,11 +145,9 @@ sed -i 's/User=nobody/User=garb/g' %{buildroot}%{_unitdir}/garbd.service
|
||||
|
||||
%{_libdir}/galera/libgalera_smm.so
|
||||
|
||||
%doc %{_docdir}/galera/AUTHORS
|
||||
%doc %{_docdir}/galera/COPYING
|
||||
%doc %{_docdir}/galera/LICENSE.asio
|
||||
%doc %{_docdir}/galera/README
|
||||
#%doc %{_docdir}/galera/README-MySQL
|
||||
%doc %{_docdir}/galera/README-MySQL
|
||||
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user