%define url_ver %(echo %{version} | cut -d. -f1,2) # exclude plugin .so from provides %global __provides_exclude_from %{_libdir}/xfce4/panel/plugins/.*\\.so Summary: Generic Monitor XFce panel plugin (GenMon) Name: xfce4-genmon-plugin Version: 4.0.2 Release: %mkrel 1 License: LGPLv2+ Group: Graphical desktop/Xfce URL: https://goodies.xfce.org/projects/panel-plugins/xfce4-genmon-plugin Source0: https://archive.xfce.org/src/panel-plugins/xfce4-genmon-plugin/%{url_ver}/%{name}-%{version}.tar.bz2 BuildRequires: intltool BuildRequires: xfce4-dev-tools BuildRequires: pkgconfig(libxfce4panel-2.0) >= 4.10.0 BuildRequires: pkgconfig(libxfce4ui-2) >= 4.10.0 Requires: xfce4-panel >= 4.10.0 %description This plugin cyclically spawns the indicated script/program, captures its output (stdout) and displays the resulting string into the panel. %prep %setup -q %autopatch -p1 %build %xdt_autogen %configure2_5x %make_build %install %make_install # we don't want these find %{buildroot} -name "*.la" -delete %find_lang %{name} %files -f %{name}.lang %doc AUTHORS ChangeLog README %{_libdir}/xfce4/panel/plugins/libgenmon.so %{_datadir}/xfce4/panel/plugins/*.desktop