%global commit 65561422f91cab9164e427a5b7934a9795f1c0e3 %global githash %(c=%{commit}; echo ${c:0:7}) %global gitdate 20180214 %global gittime 1855 Name: xfce4-volumed-pulse Version: 0.2.3 Release: 2.%{gitdate}%{gittime}git%{githash}%{?dist} Summary: Fork of xfce4-volumed with support for PulseAudio Group: User Interface/Desktops License: GPLv3+ URL: https://git.xfce.org/apps/xfce4-volumed-pulse Source: https://git.xfce.org/apps/%{name}/snapshot/%{name}-master.tar.gz BuildRequires: pkgconfig(libxfconf-0) BuildRequires: pkgconfig(keybinder-3.0) BuildRequires: pkgconfig(libnotify) BuildRequires: desktop-file-utils BuildRequires: pkgconfig(libpulse) BuildRequires: automake BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: xfce4-dev-tools BuildRequires: libtool Obsoletes: xfce4-volumed < %{version} %description The xfce4-volumed adds additional functionality to the volume up/down and mute keys of the keyboard. It makes the keys work without configuration and uses the XFCE 4 mixer's defined card and track for choosing which track to act on. The volume level is shown in a notification. %prep %setup -q -n xfce4-volumed-pulse-master %build NOCONFIGURE=yes ./autogen.sh %configure --prefix=%{_prefix} make %{?_smp_mflags} %install %make_install desktop-file-install \ --add-category="Utility" \ --dir=$RPM_BUILD_ROOT/%{_datadir}/applications \ $RPM_BUILD_ROOT/%{_sysconfdir}/xdg/autostart/%{name}.desktop # one launcher is enough, we don't want to have a daemon in the menu rm -rf $RPM_BUILD_ROOT/%{_datadir}/applications/ %clean rm -rf $RPM_BUILD_ROOT %files %doc AUTHORS COPYING NEWS README THANKS TODO %config %{_sysconfdir}/xdg/autostart/%{name}.desktop %{_bindir}/%{name} %changelog