From b61ebec59555aefc722eb93314a122983a980cef169aef71227583fa1b94f949 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 23 Jan 2014 12:29:49 +0000 Subject: [PATCH] - install a config file by default OBS-URL: https://build.opensuse.org/package/show/network:messaging:amqp/rabbitmq-server?expand=0&rev=32 --- rabbitmq-server.changes | 5 +++++ rabbitmq-server.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/rabbitmq-server.changes b/rabbitmq-server.changes index 4f7d1d5..60ab63b 100644 --- a/rabbitmq-server.changes +++ b/rabbitmq-server.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 23 12:29:39 UTC 2014 - dmueller@suse.com + +- install a config file by default + ------------------------------------------------------------------- Tue Jan 21 13:03:33 UTC 2014 - dmueller@suse.com diff --git a/rabbitmq-server.spec b/rabbitmq-server.spec index c1a463e..63b7ece 100644 --- a/rabbitmq-server.spec +++ b/rabbitmq-server.spec @@ -137,6 +137,9 @@ install -p -D -m 0755 %{_rabbit_wrapper} %{buildroot}%{_sbindir}/rabbitmq-server install -p -D -m 0755 %{_rabbit_wrapper} %{buildroot}%{_sbindir}/rabbitmq-plugins install -p -D -m 0755 %{_rabbit_server_ocf} %{buildroot}%{_exec_prefix}/lib/ocf/resource.d/rabbitmq/rabbitmq-server +# install config files +install -p -D -m 0644 docs/rabbitmq.config.example %{buildroot}/%{_sysconfdir}/rabbitmq/rabbitmq.config + # Copy all necessary lib files etc. install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/rabbitmq-server @@ -166,7 +169,7 @@ echo '%defattr(-,root,root, -)' >> %{_builddir}/filelist.%{name}.rpm | sed -e 's/^\.//' >> %{_builddir}/filelist.%{name}.rpm) # Create hardlinks for duplicate files -%fdupes %{buildroot} +%fdupes %{buildroot}/usr/share %pre getent group rabbitmq >/dev/null || groupadd -r rabbitmq @@ -218,6 +221,7 @@ systemd-tmpfiles --create --clean /usr/lib/tmpfiles.d/rabbitmq-server.conf %dir /usr/lib/ocf/resource.d %dir /usr/lib/ocf/resource.d/rabbitmq %config(noreplace) %{_sysconfdir}/logrotate.d/rabbitmq-server +%config(noreplace) %{_sysconfdir}/rabbitmq/rabbitmq.config %doc LICENSE* README %dir %{_rabbit_erllibdir}/plugins %exclude %{_rabbit_erllibdir}/plugins/*