diff --git a/no-nmap.patch b/no-nmap.patch index 5681a72..1025664 100644 --- a/no-nmap.patch +++ b/no-nmap.patch @@ -2,15 +2,18 @@ Index: plugins-src/rabbitmq-auth-backend-ldap/package.mk =================================================================== --- plugins-src/rabbitmq-auth-backend-ldap/package.mk.orig +++ plugins-src/rabbitmq-auth-backend-ldap/package.mk -@@ -1,7 +1,7 @@ +@@ -1,9 +1,9 @@ RELEASABLE:=true DEPS:=rabbitmq-server rabbitmq-erlang-client eldap-wrapper -ifeq ($(shell nc -z localhost 389 && echo true),true) --WITH_BROKER_TEST_COMMANDS:=eunit:test(rabbit_auth_backend_ldap_test,[verbose]) +-WITH_BROKER_TEST_COMMANDS:=eunit:test([rabbit_auth_backend_ldap_unit_test,rabbit_auth_backend_ldap_test],[verbose]) -WITH_BROKER_TEST_CONFIG:=$(PACKAGE_DIR)/etc/rabbit-test +-else ++#ifeq ($(shell nc -z localhost 389 && echo true),true) ++#WITH_BROKER_TEST_COMMANDS:=eunit:test([rabbit_auth_backend_ldap_unit_test,rabbit_auth_backend_ldap_test],[verbose]) ++#WITH_BROKER_TEST_CONFIG:=$(PACKAGE_DIR)/etc/rabbit-test ++#else + $(warning Not running LDAP tests; no LDAP server found on localhost) -endif -+# ifeq ($(shell nc -z localhost 389 && echo true),true) -+# WITH_BROKER_TEST_COMMANDS:=eunit:test(rabbit_auth_backend_ldap_test,[verbose]) -+# WITH_BROKER_TEST_CONFIG:=$(PACKAGE_DIR)/etc/rabbit-test -+# endif ++#endif diff --git a/ocf-fixes.patch b/ocf-fixes.patch deleted file mode 100644 index f200461..0000000 --- a/ocf-fixes.patch +++ /dev/null @@ -1,22 +0,0 @@ -Index: rabbitmq-server-2.8.7/rabbitmq-server.ocf -=================================================================== ---- rabbitmq-server-2.8.7.orig/rabbitmq-server.ocf -+++ rabbitmq-server-2.8.7/rabbitmq-server.ocf -@@ -256,7 +256,7 @@ rabbitmqctl_action() { - ocf_log debug "RabbitMQ server is running normally" - return $OCF_SUCCESS - ;; -- 2) -+ 1|2) - ocf_log debug "RabbitMQ server is not running" - return $OCF_NOT_RUNNING - ;; -@@ -299,7 +299,7 @@ rabbit_stop() { - return $OCF_SUCCESS - fi - -- $RABBITMQ_CTL stop -+ rabbitmqctl_action stop - rc=$? - - if [ "$rc" != 0 ]; then diff --git a/rabbitmq-server-3.4.3.tar.gz b/rabbitmq-server-3.4.3.tar.gz deleted file mode 100644 index 2ea0865..0000000 --- a/rabbitmq-server-3.4.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a6cb2d68f99054c87cc7daa2d3857f85a2adfc582f6ab8538f2605031751b5d5 -size 3656510 diff --git a/rabbitmq-server-3.5.1.tar.gz b/rabbitmq-server-3.5.1.tar.gz new file mode 100644 index 0000000..0eb507d --- /dev/null +++ b/rabbitmq-server-3.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bda603b37ba933eab2b7fd9cdb9b138b793ad030cd5cb7824bc794754b76ca0d +size 3723354 diff --git a/rabbitmq-server.changes b/rabbitmq-server.changes index 9bd2a53..58d79df 100644 --- a/rabbitmq-server.changes +++ b/rabbitmq-server.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Sun Apr 12 01:56:58 UTC 2015 - mrueckert@suse.de + +- update to 3.5.1 + This release adds support for priority queues which were available + as a plugin before. Performance is improved; in particular messages + smaller than configurable size are embedded in the queue index to + reduce I/O and memory consumption. Stability of clustering and + autoheal partition handling is improved as well. A new + pause_if_all_down partition handling mode is added. The management + web UI now shows many more I/O statistics. + + This release also corrects a number of defects in the broker and + plugins, as well as introducing many smaller new features and + improvements. + + * see https://www.rabbitmq.com/release-notes/README-3.5.1.txt + * see https://www.rabbitmq.com/release-notes/README-3.5.0.txt + * see https://www.rabbitmq.com/release-notes/README-3.4.4.txt + +- instead of patching the ocf provider after copying: patch it + right away and drop the ocf-fixes.patch. +- refresh no-nmap.patch to apply cleanly again +- create rcrabbitmq-server for the systemd case + ------------------------------------------------------------------- Wed Jan 21 16:12:13 UTC 2015 - dmueller@suse.com diff --git a/rabbitmq-server.ocf b/rabbitmq-server.ocf index 48f3ad1..8f16cd4 100644 --- a/rabbitmq-server.ocf +++ b/rabbitmq-server.ocf @@ -256,7 +256,7 @@ rabbitmqctl_action() { ocf_log debug "RabbitMQ server is running normally" return $OCF_SUCCESS ;; - 2) + 1|2) ocf_log debug "RabbitMQ server is not running" return $OCF_NOT_RUNNING ;; @@ -299,7 +299,7 @@ rabbit_stop() { return $OCF_SUCCESS fi - $RABBITMQ_CTL stop + rabbitmqctl_action stop rc=$? if [ "$rc" != 0 ]; then diff --git a/rabbitmq-server.spec b/rabbitmq-server.spec index 34142ff..f6aef51 100644 --- a/rabbitmq-server.spec +++ b/rabbitmq-server.spec @@ -1,7 +1,7 @@ # # spec file for package rabbitmq-server # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ %endif Name: rabbitmq-server -Version: 3.4.3 +Version: 3.5.1 Release: 0 Summary: The RabbitMQ Server License: MPL-1.1 @@ -41,7 +41,6 @@ Source6: rabbitmq-server.service Source7: rabbitmq-server.tmpfiles.d.conf Patch0: no-nmap.patch Patch1: no-remove-common.patch -Patch10: ocf-fixes.patch BuildRequires: erlang BuildRequires: erlang-src BuildRequires: fdupes @@ -106,7 +105,7 @@ This package includes the RabbitMQ AMQP language bindings for Erlang. %patch1 %define _rabbit_server_ocf `basename %{SOURCE4}` cp %{SOURCE4} %{_rabbit_server_ocf} -%patch10 -p1 +#patch10 -p1 %build make all VERSION=%{version} @@ -120,12 +119,13 @@ make install \ DOC_INSTALL_DIR=%{buildroot}/%{_docdir} \ VERSION=%{version} +mkdir -p %{buildroot}%{_sbindir} %if 0%{?have_systemd} install -p -D -m 644 %{SOURCE6} %{buildroot}%{_unitdir}/%{name}.service +ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} %else # Install init scripts install -p -D -m 0755 %{SOURCE1} %{buildroot}%{_initddir}/rabbitmq-server -mkdir -p %{buildroot}%{_sbindir} ln -sf %{_initddir}/rabbitmq-server %{buildroot}%{_sbindir}/rcrabbitmq-server mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates/ install -p -D -m 644 %{SOURCE5} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.rabbitmq-server @@ -221,9 +221,9 @@ systemd-tmpfiles --create --clean /usr/lib/tmpfiles.d/rabbitmq-server.conf %{_unitdir}/%{name}.service /usr/lib/tmpfiles.d/rabbitmq-server.conf %else -%{_sbindir}/rcrabbitmq-server %{_initddir}/rabbitmq-server %endif +%{_sbindir}/rcrabbitmq-server %dir /usr/lib/ocf %dir /usr/lib/ocf/resource.d %dir /usr/lib/ocf/resource.d/rabbitmq