%{!?upstream_version: %global upstream_version %{version}%{?milestone}} Name: puppet-systemd Version: XXX Release: XXX Summary: Puppet Systemd module License: Apache-2.0 URL: https://github.com/voxpupuli/puppet-systemd Source0: https://github.com/voxpupuli/puppet-systemd/archive/v%{version}.tar.gz BuildArch: noarch Requires: puppet >= 2.7.0 %description Puppet module that configures systemd. %prep %setup -q -n %{name}-%{upstream_version} 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 install -d -m 0755 %{buildroot}/%{_datadir}/openstack-puppet/modules/systemd/ cp -rp * %{buildroot}/%{_datadir}/openstack-puppet/modules/systemd/ %files %{_datadir}/openstack-puppet/modules/systemd/ %changelog