%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.2.0 Release: %mkrel 1 License: LGPLv2+ Group: Graphical desktop/Xfce URL: https://docs.xfce.org/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) BuildRequires: pkgconfig(libxfce4ui-2) Requires: xfce4-panel %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 %configure %make_build %install %make_install # we don't want these find %{buildroot} -name "*.la" -delete %find_lang %{name} %files -f %{name}.lang %license COPYING %doc AUTHORS ChangeLog README* %{_libdir}/xfce4/panel/plugins/libgenmon.so %{_datadir}/xfce4/panel/plugins/*.desktop %{_iconsdir}/hicolor/*/apps/org.xfce.genmon.{svg,png}