%define url_ver %(echo %{version} | cut -d. -f1,2) # exclude plugin .so from provides %global __provides_exclude_from %{_libdir}/xfce4/panel/plugins/.*\\.so Name: xfce4-pulseaudio-plugin Summary: A panel plugin for controlling PulseAudio mixer Version: 0.3.5 Release: %mkrel 1 License: GPLv2+ Group: Graphical desktop/Xfce Url: https://goodies.xfce.org/projects/panel-plugins/xfce4-pulseaudio-plugin Source0: https://archive.xfce.org/src/panel-plugins/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2 BuildRequires: xfce4-dev-tools BuildRequires: git-core BuildRequires: intltool BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(exo-1) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(keybinder-3.0) BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(libpulse-mainloop-glib) BuildRequires: pkgconfig(libxfce4panel-2.0) >= 4.11.0 BuildRequires: pkgconfig(libxfce4ui-2) >= 4.11.0 BuildRequires: pkgconfig(libxfce4util-1.0) BuildRequires: pkgconfig(libxfconf-0) Requires: xfce4-panel >= 4.11.0 Requires: pavucontrol # Replaces xfce4-mixer Obsoletes: xfce4-mixer < 4.11.0-5 %description Xfce4-pulseaudio-plugin is a panel plugin for controlling an audio output volume of the PulseAudio mixer. %prep %autosetup -p1 -Sgit_am %build %xdt_autogen %configure2_5x \ --enable-libnotify %make_build %install %make_install # we don't want these find %{buildroot} -name "*.la" -delete %find_lang %{name} %files -f %{name}.lang %doc NEWS README %{_libdir}/xfce4/panel/plugins/libpulseaudio-plugin.so %{_iconsdir}/hicolor/*/*/* %{_datadir}/xfce4/panel/plugins/pulseaudio.desktop