Name: sysman Summary: System manager interface library Version: 0.2.25 Release: 1 Group: System/Libraries License: LGPL Source0: %{name}-%{version}.tar.gz 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 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 %defattr(-,root,root,-) %{_libdir}/*.so.* %{_bindir}/* %{_sysconfdir}/rc.d/init.d/* %{_sysconfdir}/rc.d/rc3.d/* %{_sysconfdir}/rc.d/rc5.d/* %files devel %defattr(-,root,root,-) %{_includedir}/sysman/sysman.h %{_includedir}/sysman/SLP_sysman_PG.h %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so %files internal-devel %defattr(-,root,root,-) %{_includedir}/sysman/sysman-internal.h