forked from purpleidea/puppet-puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
puppet-puppet.spec.in
40 lines (31 loc) · 1.24 KB
/
puppet-puppet.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
%global puppet_module_version __VERSION__
Name: puppet-puppet
Version: __VERSION__
#Release: __RELEASE__%{?dist} # use this to make dist specific builds
Release: __RELEASE__
Summary: A puppet module for puppet
License: AGPLv3+
URL: https://github.com/purpleidea/puppet-puppet
Source0: https://dl.fedoraproject.org/pub/alt/purpleidea/puppet-puppet/SOURCES/puppet-puppet-%{puppet_module_version}.tar.bz2
BuildArch: noarch
Requires: puppet >= 3.0.0
Requires: puppetlabs-stdlib >= 4.1.0
%description
A puppet module used for installing, configuring and managing puppet.
%prep
%setup -c -q -T -D -a 0
find %{_builddir} -type f -name ".*" -exec rm {} +
find %{_builddir} -size 0 -exec rm {} +
find %{_builddir} \( -name "*.pl" -o -name "*.sh" \) -exec chmod +x {} +
find %{_builddir} \( -name "*.pp" -o -name "*.py" \) -exec chmod -x {} +
find %{_builddir} \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} + -exec sed -i "/^#!/{d;q}" {} +
%build
%install
rm -rf %{buildroot}
# _datadir is typically /usr/share/
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/
cp -r puppet-puppet-%{puppet_module_version} %{buildroot}/%{_datadir}/puppet/modules/puppet
%files
%{_datadir}/puppet/modules/*
# this changelog is auto-generated by git log
%changelog