-
Notifications
You must be signed in to change notification settings - Fork 0
/
seasalt.spec.in
68 lines (54 loc) · 1.99 KB
/
seasalt.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
# spec file for package seasalt
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# unify libexec for all targets
%global _libexecdir %{_exec_prefix}/lib
Name: seasalt
Version: VERSION
Release: 0
Summary: Salt files addressing Ceph orchestration prerequisites
License: GPL-3.0
Group: System/Libraries
Url: https://github.com/swiftgist/seasalt
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A small collection of Salt files addressing the prerequisites for the Ceph orchestrator.
%prep
%setup
%build
%install
make DESTDIR=%{buildroot} DOCDIR=%{_docdir} copy-files VERSION=%{version}
# %__rm -f %{buildroot}/%{_mandir}/man?/*.gz
# %__gzip %{buildroot}/%{_mandir}/man?/seasalt*
%post
# Restart salt-master if it's running, so it picks up
# the config changes in /etc/salt/master.d/modules.conf
systemctl try-restart salt-master > /dev/null 2>&1 || :
systemctl try-restart salt-api > /dev/null 2>&1 || :
%postun
%files
%defattr(-,root,root,-)
%dir %attr(0755, salt, salt) /opt/seasalt/salt/ceph/sshkey/files
# %{_mandir}/man1/seasalt*.1.gz
%dir /etc/salt
%dir /etc/salt/master.d
%config(noreplace) %attr(-, salt, salt) /etc/salt/master.d/*.conf
%dir /opt/seasalt/
/opt/seasalt/modules
/opt/seasalt/salt
%config(noreplace) /opt/seasalt/pillar/
%dir %attr(-, root, root) %{_docdir}/%{name}
%{_docdir}/%{name}/*
%changelog