-
Notifications
You must be signed in to change notification settings - Fork 1
/
phronesisAgent.spec
71 lines (50 loc) · 1.66 KB
/
phronesisAgent.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
%define revision 4
Summary: Open Source diagnosis and recovery solution
Name: phronesisAgent
Version: 1.0.0
Release: %{revision}%{?dist}
License: GPLv2
Group: Applications/System
Source0: %{name}-%version.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}
BuildRequires: gcc
%description
Here I should do a description of the phronesis project
%package lib
Summary: library file for %{name}
Group: Applications/System
%description lib
This packages contain the base library for %{name}
%prep
%setup
%build
sed -e "s:BASETOSED:%{_builddir}/%{name}-%version/:g" %{_builddir}//%{name}-%version/shared_Abs.mk>%{_builddir}/%{name}-%version/shared.mk
%{__make} phronesisanalyzer phronesisanalyzerAgent
%install
%{__rm} -rf %{buildroot}
%{__mkdir} -p %{buildroot}/etc/%{name}
%{__mkdir} -p %{buildroot}/usr/bin
%{__mkdir} -p %{buildroot}/usr/lib
%{__mkdir} -p %{buildroot}/etc/init.d/
cp bin/phronesisAnalyzerAgent %{buildroot}/usr/bin/
cp bin/libphronesisanalyzer.so.1.0 %{buildroot}/usr/lib/
cp default-conf/phronesisAnalyzerAgent.conf %{buildroot}/etc/%{name}
cp init.d/phronesisAgentd %{buildroot}/etc/init.d/
%post
ln -s /usr/lib/libphronesisanalyzer.so.1.0 /usr/lib/libphronesisanalyzer.so
ldconfig
/sbin/service phronesisAnalyzerd start &>/dev/null || :
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%dir /etc/%{name}
%attr(755,-,-) /usr/bin/phronesisAnalyzerAgent
%attr(755,-,-) /etc/init.d/phronesisAgentd
%config(noreplace) /etc/%{name}/phronesisAnalyzerAgent.conf
%files lib
%defattr(-,root,root,-)
%attr(755,-,-) /usr/lib/libphronesisanalyzer.so.1.0
%changelog
* Wed Jun 05 2013 Christophe Haen <[email protected]> - 1.0.0
- initial package