blob: c90e11cd0f8ac764fb1d2c7e232a76afe8165483 [file] [log] [blame]
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
%define upstream_name puppet-rabbitmq
Name: puppet-rabbitmq
Version: XXX
Release: XXX
Summary: Installs, configures, and manages RabbitMQ.
License: ASL 2.0
URL: https://github.com/voxpupuli/puppet-rabbitmq
Source0: https://github.com/voxpupuli/%{upstream_name}/archive/v%{upstream_version}.tar.gz
BuildArch: noarch
Requires: puppet-stdlib
Requires: puppet-archive
Requires: puppet >= 2.7.0
%description
Installs, configures, and manages RabbitMQ.
%prep
%autosetup -n %{upstream_name}-%{upstream_version} -p1
find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh" \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py" \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf
%build
%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/openstack-puppet/modules/rabbitmq/
cp -rp * %{buildroot}/%{_datadir}/openstack-puppet/modules/rabbitmq/
%files
%{_datadir}/openstack-puppet/modules/rabbitmq/
%changelog