%global dlrn_nvr 0.1.0-0.20180905091759.c937de7 %global dlrn 1 %define upstream_version 0.1.0 %{!?upstream_version: %global upstream_version %{commit}} %define upstream_name puppet-vlan %global commit c937de75c28e63fba8d8738ad6a5f2ede517e53d %global shortcommit %(c=%{commit}; echo ${c:0:7}) # DO NOT REMOVE ALPHATAG %global alphatag .%{shortcommit}git Name: puppet-vlan Version: 0.1.0 Release: 0.20180905091759.c937de7%{?dist} Summary: Vlan Puppet Module License: ASL 2.0 URL: https://github.com/derekhiggins/puppet-vlan Source0: 0.1.0-0.20180905091759.c937de7.tar.gz BuildArch: noarch Requires: puppet >= 2.7.0 %description Very simple puppet module to install a vlan. %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 rm -rf %{buildroot} install -d -m 0755 %{buildroot}/%{_datadir}/openstack-puppet/modules/vlan/ cp -rp * %{buildroot}/%{_datadir}/openstack-puppet/modules/vlan/ %files %{_datadir}/openstack-puppet/modules/vlan/ %changelog