File rabbitmq-federation.spec of Package rabbitmq-federation
%define bname rabbitmq_federation
Name: rabbitmq-federation
Summary: RabbitMQ Federation
Version: 3.6.16
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-amqp_client-devel >= 3.6.13
BuildRequires: rabbitmq-server >= 3.6.13
%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.
%prep
%setup -q -n %name-%version
#patch0 -p1
%patch1 -p1
sed -i '/^DEPS/s/^/LOCAL_/' Makefile
%build
make %{?_smp_mflags} RABBITMQ_VERSION="%version" V=1 ERL_COMPILER_OPTIONS='[inline]'
%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 *.md
%_otplibdir/*
%changelog
* 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