- install a config file by default

OBS-URL: https://build.opensuse.org/package/show/network:messaging:amqp/rabbitmq-server?expand=0&rev=32
This commit is contained in:
Dirk Mueller 2014-01-23 12:29:49 +00:00 committed by Git OBS Bridge
parent 5be8a13939
commit b61ebec595
2 changed files with 10 additions and 1 deletions

View File

@ -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 Tue Jan 21 13:03:33 UTC 2014 - dmueller@suse.com

View File

@ -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_wrapper} %{buildroot}%{_sbindir}/rabbitmq-plugins
install -p -D -m 0755 %{_rabbit_server_ocf} %{buildroot}%{_exec_prefix}/lib/ocf/resource.d/rabbitmq/rabbitmq-server 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. # Copy all necessary lib files etc.
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/rabbitmq-server 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) | sed -e 's/^\.//' >> %{_builddir}/filelist.%{name}.rpm)
# Create hardlinks for duplicate files # Create hardlinks for duplicate files
%fdupes %{buildroot} %fdupes %{buildroot}/usr/share
%pre %pre
getent group rabbitmq >/dev/null || groupadd -r rabbitmq 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
%dir /usr/lib/ocf/resource.d/rabbitmq %dir /usr/lib/ocf/resource.d/rabbitmq
%config(noreplace) %{_sysconfdir}/logrotate.d/rabbitmq-server %config(noreplace) %{_sysconfdir}/logrotate.d/rabbitmq-server
%config(noreplace) %{_sysconfdir}/rabbitmq/rabbitmq.config
%doc LICENSE* README %doc LICENSE* README
%dir %{_rabbit_erllibdir}/plugins %dir %{_rabbit_erllibdir}/plugins
%exclude %{_rabbit_erllibdir}/plugins/* %exclude %{_rabbit_erllibdir}/plugins/*