%define url_ver %(echo %{version} | cut -d. -f1,2) # exclude plugin .so from provides %define _exclude_files_from_autoprov %{_libdir}/xfce4/panel/plugins/.*\\.so Summary: Generic Monitor XFce panel plugin (GenMon) Name: xfce4-genmon-plugin Version: 3.4.0 Release: %mkrel 2 License: LGPLv2+ Group: Graphical desktop/Xfce URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-genmon-plugin Source0: http://archive.xfce.org/src/panel-plugins/xfce4-genmon-plugin/%{url_ver}/%{name}-%{version}.tar.bz2 # From upstream git: Patch10: xfce4-genmon-plugin-3.4.0-allow-250ms-timer-period.patch BuildRequires: intltool BuildRequires: pkgconfig(libxfce4panel-1.0) >= 4.8.0 BuildRequires: pkgconfig(libxfce4ui-1) >= 4.8.0 Requires: xfce4-panel >= 4.8.0 %description This plugin cyclically spawns the indicated script/program, captures its output (stdout) and displays the resulting string into the panel. %prep %setup -qn %{name}-3.4 %apply_patches %build %configure2_5x %make %install %makeinstall_std # 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 %changelog * Mon Jan 14 2013 umeabot <umeabot> 3.4.0-2.mga3 + Revision: 386825 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Jan 03 2013 wally <wally> 3.4.0-1.mga3 + Revision: 338265 - add patch from upstream git to allow 250 ms timer period - exclude plugin .so from provides - clean .spec - import from mdv