/
puppet-dns.spec
49 lines (31 loc) · 1.26 KB
/
puppet-dns.spec
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
41
42
43
44
45
46
47
48
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
%define upstream_name puppet-dns
Name: puppet-dns
Version: XXX
Release: XXX
Summary: Manage the ISC BIND daemon
License: Apache-2.0
URL: https://github.com/theforeman/puppet-dns
Source0: https://github.com/theforeman/%{upstream_name}/archive/%{upstream_version}.tar.gz
BuildArch: noarch
Requires: puppet-concat
Requires: puppet-stdlib
Requires: puppet >= 2.7.0
%description
Puppet module for configuring the ISC BIND server for Foreman.
%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/dns/
cp -rp * %{buildroot}/%{_datadir}/openstack-puppet/modules/dns/
%files
%{_datadir}/openstack-puppet/modules/dns/
%changelog