%define url_ver %(echo %{version} | cut -c 1-3) %define _disable_rebuild_configure 1 Summary: Battery monitor plugin for the Xfce panel Name: xfce4-battery-plugin Version: 1.1.5 Release: 1 License: GPLv2+ Group: Graphical desktop/Xfce URL: http://goodies.xfce.org/projects/panel-plugins/%{name} Source0: http://archive.xfce.org/src/panel-plugins/xfce4-battery-plugin/%{url_ver}/%{name}-%{version}.tar.bz2 Requires: xfce4-panel >= 4.8.0 BuildRequires: pkgconfig(libxfce4panel-2.0) BuildRequires: pkgconfig(libxfce4ui-2) BuildRequires: perl(XML::Parser) %description Battery monitor panel plugin for the Xfce Desktop Environment. %prep %setup -q %build %configure %make_build %install %make_install rm -f %{buildroot}%{_iconsdir}/hicolor/icon-theme.cache chmod +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so %find_lang %{name} %files -f %{name}.lang %doc README.md ChangeLog AUTHORS %{_libdir}/xfce4/panel/plugins/* %{_datadir}/xfce4/panel/plugins/* %{_iconsdir}/hicolor/*/apps/*.*g