%define url_ver %(echo %{version} | cut -d. -f1,2) #exclude plugin .so from provides %global __provides_exclude_from %{_libdir}/xfce4/panel/plugins/.*\\.so Summary: A mpc plugin for the Xfce panel Name: xfce4-mpc-plugin Version: 0.5.2 Release: %mkrel 1 License: GPLv2+ Group: Graphical desktop/Xfce URL: https://goodies.xfce.org/projects/panel-plugins/xfce4-mpc-plugin Source0: https://archive.xfce.org/src/panel-plugins/xfce4-mpc-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) BuildRequires: pkgconfig(exo-1) BuildRequires: pkgconfig(libmpd) Requires: xfce4-panel Requires: mpd %description This is a simple Xfce panel client plugin for Music Player Daemon. Features : * send Play/Stop/Next/Previous command to MPD * uses gtk-theme media icons (at least nuvola, tango and rodent themes provides these icons) * decrease/increase volume using the mouse wheel * show the current volume, status and title as a tooltip when passing the mouse over the plugin * show a simple playlist window upon middle-click, permitting to select a track to play * configurable MPD host/port/password * toggles repeat/random features in the right-click menu * launch configurable client (gmpc, xterm -e ncmpc,..) through right-click menu %prep %setup -q %build #to fix debug symbols build %xdt_autogen %configure2_5x --disable-static %make_build %install %make_install #we don't want these find %{buildroot} -name "*.la" -delete %find_lang %{name} %files -f %{name}.lang %doc ChangeLog AUTHORS README %{_libdir}/xfce4/panel/plugins/libmpc.so %{_datadir}/xfce4/panel/plugins/xfce4-mpc-plugin.desktop