summaryrefslogtreecommitdiff
path: root/packaging/libslp-sysman.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/libslp-sysman.spec')
-rw-r--r--packaging/libslp-sysman.spec79
1 files changed, 79 insertions, 0 deletions
diff --git a/packaging/libslp-sysman.spec b/packaging/libslp-sysman.spec
new file mode 100644
index 0000000..52673f7
--- /dev/null
+++ b/packaging/libslp-sysman.spec
@@ -0,0 +1,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
+