integ/config/puppet-modules/puppet-create_resources/centos/puppet-create_resources.spec
Dongqi Chen 1f76891da5 CentOS 8: Puppet-create_resources should use python3
Change python2 to python3

Story: 2006729
Task: 37889
Change-Id: Ia5a969bf66872fd1e572ef9f4c00ed2e57619479
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
2019-12-30 11:40:11 +08:00

33 lines
875 B
RPMSpec

%global git_sha 4639819a7f3a4fa9310d2ba583c63e467df7e2c3
%global prefix puppetlabs
%global module_dir create_resources
Name: puppet-%{module_dir}
Version: 0.0.1
Release: 0%{?_tis_dist}.%{tis_patch_ver}
Summary: Puppet %{module_dir} module
License: Apache
URL: https://github.com/puppetlabs/puppetlabs-create_resources
Source0: %{prefix}-%{module_dir}-%{git_sha}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
%description
A Puppet module to dynamically add resources to the catalog
%prep
%autosetup -c %{module_dir}
%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/%{module_dir}
cp -R packstack/puppet/modules/%{module_dir} %{buildroot}/%{_datadir}/puppet/modules
%files
%license packstack/puppet/modules/%{module_dir}/LICENSE
%{_datadir}/puppet/modules/%{module_dir}