-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkerub.spec.in
73 lines (61 loc) · 2.6 KB
/
kerub.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
69
70
71
72
%global logdir %{_localstatedir}/log/%{name}
%global datadir %{_localstatedir}/lib/%{name}
%global configdir %{_sysconfdir}/%{name}
%global loc_configdir %{_sysconfdir}/%{name}/local
%global cls_configdir %{_sysconfdir}/%{name}/cluster
%global wardir %{_datadir}/%{name}
Name: kerub
Version: VERSION
Release: BUILD_ID
Summary: Kerub is an Infrastructure as a Service prototype
Group: Cloud Management Tools
License: Apache license 2.0
URL: https://github.com/kerubistan/kerub
Source0: PACKAGE
Source2: ROOT.xml
BuildArch: noarch
Requires: java-1_8_0-openjdk,tomcat
%description
Kerub is an Infrastructure as a Service prototype project to demonstrate
SLA-based workload planning
%install
install -dm 775 %{buildroot}%{logdir}
install -dm 775 %{buildroot}%{datadir}
install -dm 755 %{buildroot}%{configdir}
install -dm 755 %{buildroot}%{configdir}/local
install -dm 755 %{buildroot}%{configdir}/config
install -dm 755 %{buildroot}%{loc_configdir}
install -dm 755 %{buildroot}%{cls_configdir}
install -dm 755 %{buildroot}%{wardir}
install -dm 755 %{buildroot}%{_datadir}/tomcat/conf/Catalina/localhost/
install -dm 755 %{buildroot}%{_datadir}/
install -pm 644 %{_sourcedir}/${name}*.war %{buildroot}%{wardir}/%{name}.war
install -pm 640 %{_sourcedir}/ROOT.xml %{buildroot}%{_datadir}/tomcat/conf/Catalina/localhost/
install -pm 640 %{_sourcedir}/shiro.ini %{buildroot}%{configdir}
install -pm 640 %{_sourcedir}/logback.xml %{buildroot}%{configdir}
install -pm 640 %{_sourcedir}/keystore.jks %{buildroot}%{configdir}
install -pm 640 %{_sourcedir}/kerub.properties.local %{buildroot}%{configdir}/local/kerub.properties
install -pm 640 %{_sourcedir}/kerub.properties.cluster %{buildroot}%{configdir}/cluster/kerub.properties
%files
%doc
%{_datadir}/kerub/kerub.war
%{configdir}
%config(noreplace) %{configdir}/shiro.ini
%attr(0640, root, tomcat) %{configdir}/shiro.ini
%config(noreplace) %{configdir}/logback.xml
%attr(0640, root, tomcat) %{configdir}/logback.xml
%config(noreplace) %{configdir}/keystore.jks
%attr(0640, root, tomcat) %{configdir}/keystore.jks
%{configdir}/local
%attr(0750, root, tomcat) %{configdir}/local
%config(noreplace) %{configdir}/local/kerub.properties
%attr(0750, root, tomcat) %{configdir}/local/kerub.properties
%{configdir}/cluster
%attr(0750, root, tomcat) %{configdir}/cluster
%config(noreplace) %{configdir}/cluster/kerub.properties
%attr(0750, root, tomcat) %{configdir}/cluster/kerub.properties
%attr(0774, root, tomcat) %{datadir}
%attr(0774, root, tomcat) %{logdir}
%{_datadir}/tomcat/conf/Catalina/localhost/ROOT.xml
%attr(0770, root, tomcat) %{_datadir}/tomcat/conf/Catalina/localhost/ROOT.xml
%changelog