blob: 52673f79db4bc491799c27acbc73f5df410cd2d3 (
plain)
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
73
74
75
76
77
78
79
|
Name: libslp-sysman
Summary: System manager interface library
Version: 0.2.25
Release: 1
Group: System/Libraries
License: Apache-2.0
Source0: libslp-sysman-%{version}.tar.gz
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: cmake
BuildRequires: vconf-keys-devel
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(dlog)
%description
system manager internal library
%package devel
Summary: System Manager base (devel)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
System Manager base library (devel)
%package internal-devel
Summary: System Manager base (devel)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: sysman
%description internal-devel
System Manager base library (devel)
%prep
%setup -q
%build
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%install
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d/
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d/
ln -s %{_sysconfdir}/init.d/pmon %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S20pmon
ln -s %{_bindir}/regpmon.sh %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S99regpmon
ln -s %{_bindir}/regpmon.sh %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S99regpmon
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/*.so.*
%{_bindir}/*
%{_sysconfdir}/rc.d/init.d/*
%{_sysconfdir}/rc.d/rc3.d/*
%{_sysconfdir}/rc.d/rc5.d/*
%files devel
%{_includedir}/sysman/sysman.h
%{_includedir}/sysman/SLP_sysman_PG.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%files internal-devel
%{_includedir}/sysman/sysman-internal.h
|