File rabbitmq-federation.spec of Package rabbitmq-federation
%define bname rabbitmq_federation
Name: rabbitmq-federation
Summary: RabbitMQ Federation
Version: 3.7.27
Release: 2
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: %name-3.6.16-23.patch
Patch2: 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
BuildRequires: erlang-lager-devel
BuildRequires: erlang-amqp_client-devel >= 3.7.10
BuildRequires: rabbitmq-server-devel >= 3.7.17
BuildRequires: rabbitmq-server >= 3.7.17
BuildRequires: erlang-otpbp-devel >= 4.18.0
%description
RabbitMQ federation offers a group of features for loosely coupled and
WAN-friendly distributed RabbitMQ setups.
Note that this is not an alternative to queue mirroring.
%package devel
Summary: Headers of %name
Group: Development/Tools/Other
Provides: erlang-%bname-devel = %version-%release
Provides: %bname-devel = %version-%release
Conflicts: %name < 3.6.16-4
%description devel
RabbitMQ federation offers a group of features for loosely coupled and
WAN-friendly distributed RabbitMQ setups.
This package contains headers of %name.
%prep
%setup -q -n %name-%version
#patch -p1 -P0
%patch -p1 -P1 -P2
sed -i '/^DEPS/s/^/LOCAL_/' Makefile
%define rc_dir %(erl -noshell -eval 'io:put_chars(code:lib_dir(rabbit_common)).' -s init stop)
sed -i '/^include erlang.mk/i include %rc_dir/mk/rabbitmq-build.mk' Makefile
%build
make %{?_smp_mflags} RABBITMQ_VERSION="%version" V=1 \
%if %_otp_release > 23
ERL_COMPILER_OPTIONS='[inline,{parse_transform,otpbp_pt}]'
%else
ERL_COMPILER_OPTIONS='[inline]'
%endif
%install
install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin
install -p -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/
install -d -m 0755 %buildroot%_otplibdir/%bname-%version/include
install -p -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/
%files
%defattr(-,root,root)
%doc README*
%_otplibdir/*
%exclude %_otplibdir/%bname-*/include
%files devel
%defattr(-,root,root)
%dir %_otplibdir/*
%_otplibdir/%bname-*/include
%changelog
* Thu May 16 2024 Led <ledest@gmail.com> 3.7.27-2
- add patches:
+ rabbitmq-common-3.7.28-erlang.mk.patch
* Sat Apr 27 2024 Led <ledest@gmail.com> 3.7.27-1
- 3.7.27
- update BuildRequires
* Fri Apr 26 2024 Led <ledest@gmail.com> 3.7.15-1
- 3.7.15
* Fri Apr 26 2024 Led <ledest@gmail.com> 3.7.14-1
- 3.7.14
* Fri Apr 26 2024 Led <ledest@gmail.com> 3.7.13-1
- 3.7.13
* Fri Apr 26 2024 Led <ledest@gmail.com> 3.7.12-1
- 3.7.12
* Fri Apr 26 2024 Led <ledest@gmail.com> 3.7.11-1
- 3.7.11
* Tue Aug 08 2023 Led <ledest@gmail.com> 3.7.10-1
- 3.7.10
- remove patches:
+ 0001-Use-rand-directly-in-master-because-we-require-Erlan.patch
* Mon Aug 07 2023 Led <ledest@gmail.com> 3.6.16-4
- move includes to separate subpackage
* Mon Aug 07 2023 Led <ledest@gmail.com> 3.6.16-3
- fix build via otpbp
- 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
* Sun Aug 16 2020 Led <ledest@gmail.com> 3.6.16-2
- add patches:
+ rabbitmq-federation-3.6.16-23.patch
- fix build on Erlang/OTP 23
* Sun Jul 15 2018 Led <ledest@gmail.com> 3.6.16-1
- 3.6.16
* Wed Jan 17 2018 Led <ledest@gmail.com> 3.6.15-1
- 3.6.15
* Wed Nov 08 2017 Led <ledest@gmail.com> 3.6.13-1
- 3.6.13
* Tue Sep 12 2017 Led <ledest@gmail.com> 3.6.12-1
- 3.6.12
* Fri Aug 18 2017 Led <ledest@gmail.com> 3.6.11-1
- 3.6.11
* Thu May 25 2017 Led <ledest@gmail.com> 3.6.10-1
- 3.6.10
* Mon May 01 2017 Led <ledest@gmail.com> 3.6.9-4
- add patches:
+ 0001-clean-up-workarounds-for-Erlang-OTP-18.patch
* Mon Apr 24 2017 Led <ledest@gmail.com> 3.6.9-3
- Makefile: replace DEPS to LOCAL_DEPS
* Fri Apr 14 2017 Led <ledest@gmail.com> 3.6.9-2
- git 68cf5fa
* Wed Mar 29 2017 Led <ledest@gmail.com> 3.6.9-1
- 3.6.9
* Sun Mar 19 2017 Led <ledest@gmail.com> 3.6.8-1
- 3.6.8
* Mon Dec 26 2016 Led <ledest@gmail.com> 3.6.6-1
- initial build