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.8.0
Release: 3
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: rabbitmq-common-3.7.28-erlang.mk.patch
Provides: %bname = %version-%release
Provides: erlang-%bname = %version-%release
BuildArch: noarch
Requires: erlang >= 1:19
BuildRequires: rpm-macros-erlang rpm-build-erlang
BuildRequires: erlang >= 1:19
BuildRequires: erlang-otp-base >= 1:19
BuildRequires: erlang-rabbit_common-devel >= 3.7.10
%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
#patch -p1 -P0
%patch -p1 -P1
sed -i '/^DEPS/s/^/LOCAL_/' Makefile
%build
make %{?_smp_mflags} V=1 RABBITMQ_VERSION="%version" ERL_COMPILER_OPTIONS='[inline]'
erl -noshell -eval '
{ok, [{application, %bname, L}]} = file:consult("ebin/%bname.app"),
file:write_file("ebin/%bname.app", io_lib:format("{application, %bname,~n ~p}.~n", [L]), [raw]),
init:stop().'
%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 README*
%_otplibdir/*
%changelog
* Thu May 16 2024 Led <ledest@gmail.com> 3.8.0-3
- add patches:
+ rabbitmq-common-3.7.28-erlang.mk.patch
* Fri May 10 2024 Led <ledest@gmail.com> 3.8.0-2
- clean up sources
* Mon Aug 07 2023 Led <ledest@gmail.com> 3.8.0-1
- 3.8.0
- remove patches:
+ 0001-Use-rand-directly-in-master-because-we-require-Erlan.patch
* Mon Aug 07 2023 Led <ledest@gmail.com> 3.6.14-2
- remove patches:
+ 0001-clean-up-workarounds-for-Erlang-OTP-18.patch
- add patches:
+ 0001-Use-rand-directly-in-master-because-we-require-Erlan.patch
- clean up docs
- update Requires and BuildRequires
* Wed Nov 08 2017 Led <ledest@gmail.com> 3.6.14-1
- 3.6.14
- git d920212
- update patches:
+ 0001-clean-up-workarounds-for-Erlang-OTP-18.patch
* Tue Sep 12 2017 Led <ledest@gmail.com> 3.6.12-1
- 3.6.12
* Fri Aug 25 2017 Led <ledest@gmail.com> 3.6.11-2
- remove rabbit_rtopic_perf module
* 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