blob: 510c42c0bd58b717442798018eae36f6d27725c5 (
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
80
81
82
83
84
85
86
87
88
|
Name: sysman
Summary: System manager interface library
Version: 0.2.25
Release: 1
Group: System/Libraries
License: LGPL
Source0: %{name}-%{version}.tar.gz
Source1001: packaging/sysman.manifest
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: cmake
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(devman_plugin)
%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
cp %{SOURCE1001} .
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%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
%manifest sysman.manifest
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%{_bindir}/*
%{_sysconfdir}/rc.d/init.d/*
%{_sysconfdir}/rc.d/rc3.d/*
%{_sysconfdir}/rc.d/rc5.d/*
%files devel
%manifest sysman.manifest
%defattr(-,root,root,-)
%{_includedir}/sysman/sysman.h
%{_includedir}/sysman/SLP_sysman_PG.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%files internal-devel
%manifest sysman.manifest
%defattr(-,root,root,-)
%{_includedir}/sysman/sysman-internal.h
|