%global dlrn_nvr 3.2.1-0.20180814092619.56639c1 %global dlrn 1 %define upstream_version 3.2.1 %{!?upstream_version: %global upstream_version %{commit}} %define upstream_name puppetlabs-apache %global commit c04e0620defb953a27cace6409e74ad1b708a2f4 %global shortcommit %(c=%{commit}; echo ${c:0:7}) # DO NOT REMOVE ALPHATAG %global alphatag .%{shortcommit}git Name: puppet-apache Version: 3.2.1 Release: 0.20180814092619.56639c1%{?dist} Summary: Installs, configures, and manages Apache virtual hosts, web services, and modules. License: ASL 2.0 URL: https://github.com/puppetlabs/puppetlabs-apache Source0: 3.2.1-0.20180814092619.56639c1.tar.gz BuildArch: noarch Requires: puppet-stdlib Requires: puppet-concat Requires: puppet >= 2.7.0 %description Installs, configures, and manages Apache virtual hosts, web services, and modules. %prep %setup -q -n %{upstream_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/apache/ cp -rp * %{buildroot}/%{_datadir}/openstack-puppet/modules/apache/ %files %{_datadir}/openstack-puppet/modules/apache/ %changelog