%define url_ver %(echo %{version} | cut -d. -f1,2) #exclude plugin .so from provides %global __provides_exclude_from %{_libdir}/xfce4/panel/plugins/.*\\.so Summary: CPU Graph plugin for the Xfce panel Name: xfce4-cpugraph-plugin Version: 1.1.0 Release: %mkrel 1 License: BSD Group: Graphical desktop/Xfce URL: https://goodies.xfce.org/projects/panel-plugins/xfce4-cpugraph-plugin Source0: https://archive.xfce.org/src/panel-plugins/xfce4-cpugraph-plugin/%{url_ver}/%{name}-%{version}.tar.bz2 BuildRequires: intltool BuildRequires: xfce4-dev-tools BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(libxfce4panel-2.0) BuildRequires: pkgconfig(libxfce4ui-2) Requires: xfce4-panel >= 4.12.0 %description xfce4-cpugraph-plugin is a panel plugin for Xfce panel. It shows a graph of your latest system load. %prep %setup -q %autopatch -p1 %build #to fix debug symbols 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/libcpugraph.so %{_datadir}/xfce4/panel/plugins/cpugraph.desktop %{_iconsdir}/hicolor/*/apps/%{name}.png