SET_TARGET_PROPERTIES(indicator-plugin PROPERTIES PREFIX "" OUTPUT_NAME indicator-plugin)
# install
-INSTALL(TARGETS indicator-plugin LIBRARY DESTINATION lib/telephony/plugins)
+INSTALL(TARGETS indicator-plugin LIBRARY DESTINATION ${LIB_INSTALL_DIR}/telephony/plugins)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME tel-plugin-indicator)
-#sbs-git:slp/pkgs/t/tel-plugin-indicator
Name: tel-plugin-indicator
Summary: Telephony Indicator plugin
-Version: 0.1.7
+Version: 0.1.7
Release: 2
Group: System/Libraries
License: Apache
%setup -q
%build
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+%cmake .
make %{?jobs:-j%jobs}
%post
%postun -p /sbin/ldconfig
%install
-rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/usr/share/license
%files
%manifest tel-plugin-indicator.manifest
%defattr(-,root,root,-)
-#%doc COPYING
%{_libdir}/telephony/plugins/indicator-plugin*
/usr/share/license/tel-plugin-indicator
FILE *pf = NULL;
gint proc_ver = 0;
gchar buff[INDICATOR_BUFF_SIZE];
- gchar *rv = NULL;
pf = fopen(INDICATOR_PROCFILE, "r");
if (pf == NULL) {
return FALSE;
}
- rv = fgets(buff, sizeof(buff), pf);
- rv = fgets(buff, sizeof(buff), pf);
+ fgets(buff, sizeof(buff), pf);
+ fgets(buff, sizeof(buff), pf);
proc_ver = _indicator_get_proc_ver(buff);
while (fgets(buff, sizeof(buff), pf)) {