From d855ed904f56b30b7c756e8236a8216f0fc8a3a1274797ea4e8331e8fbf776eb Mon Sep 17 00:00:00 2001 From: Fusion Future Date: Wed, 25 Aug 2021 12:30:49 +0000 Subject: [PATCH] Accepting request 914240 from home:fusionfuture:branches:network:messaging:amqp - Add install-bin and install-man to make target, and install into /usr/lib instead of /usr/lib64 on 64-bit platforms (boo#1189784). - Add deps/rabbit/docs/set_rabbitmq_policy.sh.example to %doc. OBS-URL: https://build.opensuse.org/request/show/914240 OBS-URL: https://build.opensuse.org/package/show/network:messaging:amqp/rabbitmq-server?expand=0&rev=168 --- rabbitmq-server.changes | 7 +++++++ rabbitmq-server.spec | 13 ++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/rabbitmq-server.changes b/rabbitmq-server.changes index 8eb753f..a15f3ab 100644 --- a/rabbitmq-server.changes +++ b/rabbitmq-server.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Aug 25 11:54:56 UTC 2021 - Fusion Future + +- Add install-bin and install-man to make target, and install into + /usr/lib instead of /usr/lib64 on 64-bit platforms (boo#1189784). +- Add deps/rabbit/docs/set_rabbitmq_policy.sh.example to %doc. + ------------------------------------------------------------------- Mon Aug 23 14:20:39 UTC 2021 - Fusion Future diff --git a/rabbitmq-server.spec b/rabbitmq-server.spec index eafee56..89a0f19 100644 --- a/rabbitmq-server.spec +++ b/rabbitmq-server.spec @@ -23,14 +23,15 @@ %bcond_without split_plugins -%define _rabbit_erllibdir %{_libdir}/rabbitmq/lib/rabbitmq_server-%{version} -%define _rabbit_libdir %{_libdir}/rabbitmq +# We want to install into /usr/lib, even on 64-bit platforms +%define _rabbit_libdir %{_exec_prefix}/lib/rabbitmq +%define _rabbit_erllibdir %{_rabbit_libdir}/lib/rabbitmq_server-%{version} %if %{undefined _initddir} %define _initddir %{_sysconfdir}/init.d %endif -%define _make_args DESTDIR="%{buildroot}" PREFIX="%{_prefix}" RMQ_ROOTDIR=%{_rabbit_libdir} RMQ_ERLAPP_DIR=%{_rabbit_erllibdir} MAN_INSTALL_PATH="%{_mandir}" DOC_INSTALL_DIR=%{buildroot}/%{_docdir} VERSION=%{version} V=1 +%define _make_args DESTDIR="%{buildroot}" PREFIX="%{_exec_prefix}" RMQ_ROOTDIR=%{_rabbit_libdir} RMQ_ERLAPP_DIR=%{_rabbit_erllibdir} MANDIR="%{_mandir}" DOC_INSTALL_DIR=%{buildroot}/%{_docdir} VERSION=%{version} V=1 %define _rabbit_server_ocf scripts/rabbitmq-server.ocf %define _plugins_state_dir %{_localstatedir}/lib/rabbitmq/plugins @@ -141,7 +142,7 @@ make all %{_make_args} %{?_smp_mflags} # Make elixir happy with Unicode export LANG=en_US.UTF-8 export PYTHON=%{_bindir}/python3 -make install %{_make_args} +make install install-bin install-man %{_make_args} mkdir -p %{buildroot}%{_sbindir} install -p -D -m 644 %{SOURCE6} %{buildroot}%{_unitdir}/%{name}.service @@ -249,7 +250,9 @@ done /usr/lib/ocf/resource.d/rabbitmq/ # %license LICENSE* -%doc README* CODE_OF_CONDUCT.md CONTRIBUTING.md +%doc README* CODE_OF_CONDUCT.md CONTRIBUTING.md deps/rabbit/docs/set_rabbitmq_policy.sh.example +%{_mandir}/man5/rabbitmq-env.conf.5%{?ext_man} +%{_mandir}/man8/rabbitmq*.8%{?ext_man} %if %{with split_plugins} %files plugins