File rabbitmq-rtopic-exchange.spec of Package rabbitmq-rtopic-exchange
%define bname rabbitmq_rtopic_exchange
Name: rabbitmq-rtopic-exchange
Summary: RabbitMQ Reverse Topic Exchange
Version: 3.6.11
Release: 1
License: MPL-1.1
Group: Development/Tools/Other
URL: https://github.com/rabbitmq/%name
Source: %name-%version.tar.xz
#Patch0: %name-%version-git.patch
Patch1: 0001-clean-up-workarounds-for-Erlang-OTP-18.patch
Provides: %bname = %version-%release
Provides: erlang-%bname = %version-%release
BuildArch: noarch
BuildRequires: rpm-macros-erlang rpm-build-erlang
BuildRequires: erlang erlang-otp-base
BuildRequires: erlang-rabbit_common-devel >= 3.6.11
%description
This plugin adds a reverse topic exchange type to RabbitMQ. The exchange type is
'x-rtopic'.
The idea is to be able to specify routing patterns when publishing messages. With
the default topic exchange patterns are only accepted when binding queues to
exchanges.
With this plugin you can decide which queues receive the message at publishing
time. With the default topic exchange the decision is made during queue binding.
%prep
%setup -q -n %name-%version
#patch0 -p1
%patch1 -p1
sed -i '/^DEPS/s/^/LOCAL_/' Makefile
sed -i '/ERLC_OPTS/s/+debug_info/+slim +inline/' erlang.mk
%build
make %{?_smp_mflags} V=1 RABBITMQ_VERSION="%version"
%install
install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin
install -p -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/
%files
%defattr(-,root,root)
%doc *.md
%_otplibdir/*
%changelog
* Fri Aug 18 2017 Led <ledest@gmail.com> 3.6.11-1
- 3.6.11
* Thu Jun 01 2017 Led <ledest@gmail.com> 3.6.10-1
- 3.6.10
* Wed May 10 2017 Led <ledest@gmail.com> 3.6.9-2
- add patches:
+ 0001-clean-up-workarounds-for-Erlang-OTP-18.patch
* Wed May 10 2017 Led <ledest@gmail.com> 3.6.9-1
- initial build