integ/config/puppet-modules/puppet-boolean-1.0.2/centos/puppet-boolean.spec
Dongqi Chen 4aa1c04c8e CentOS 8: puppet-boolean should use python3
Change python2 to python3

Story: 2006729
Task: 37885
Change-Id: Ic84ed8f7ca4cf02ded1fa403ec4fbe7f598be22a
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
2019-12-30 13:35:35 +08:00

40 lines
1.1 KiB
RPMSpec

%global git_sha 22b726dd78b0a60a224cc7054aebbf28e9306f62
%global module_dir boolean
Name: puppet-boolean
Version: 1.0.2
Release: 1%{?_tis_dist}.%{tis_patch_ver}
Summary: Puppet Boolean module
License: Apache
URL: https://github.com/adrienthebo/puppet-boolean
Source0: %{name}-%{git_sha}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
%description
A Puppet module to provide boolean parameters
%prep
%setup -n %{name}
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
%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/%{module_dir}
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/%{module_dir}/
%files
%license %{_datadir}/puppet/modules/%{module_dir}/LICENSE
%{_datadir}/puppet/modules/%{module_dir}