File pasystray.spec of Package pasystray

# spec file for package pasystray
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%if 0%{?suse_version} == 1315
%define build_wayland_backend 0
%define build_wayland_backend 1
Name:           pasystray
Version:        0.6.0
Release:        0
Summary:        PulseAudio system tray
License:        LGPL-2.1-or-later
Group:          System/GUI/Other
# PATCH-FIX-UPSTREAM fix-memory-leak.patch boo#1070195
Patch0:         fix-memory-leak.patch
BuildRequires:  automake
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(appindicator3-0.1)
BuildRequires:  pkgconfig(avahi-glib)
BuildRequires:  pkgconfig(avahi-ui)
BuildRequires:  pkgconfig(avahi-ui-gtk3)
BuildRequires:  pkgconfig(gail-3.0)
BuildRequires:  pkgconfig(gdk-3.0)
BuildRequires:  pkgconfig(gdk-broadway-3.0)
BuildRequires:  pkgconfig(gdk-x11-3.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtk+-broadway-3.0)
BuildRequires:  pkgconfig(gtk+-unix-print-3.0)
BuildRequires:  pkgconfig(gtk+-x11-3.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libpulse-mainloop-glib)
BuildRequires:  pkgconfig(libpulse-simple)
Requires:       pulseaudio
Suggests:       paman
Suggests:       paprefs
Suggests:       pavucontrol
Suggests:       pavumeter
%if %{build_wayland_backend}
BuildRequires:  pkgconfig(gdk-wayland-3.0)
BuildRequires:  pkgconfig(gtk+-wayland-3.0)

A replacement for the deprecated padevchooser

Pasystray allows setting the default PulseAudio source/sink and moving streams on the fly between sources/sinks without restarting the client applications.

%setup -q -n %{name}-%{name}-%{version}
%patch0 -p1

autoreconf -fi
%configure --sysconfdir=%{_sysconfdir}
make %{?_smp_mflags}

%suse_update_desktop_file  -u -r %{buildroot}%{_datadir}/applications/pasystray.desktop AudioVideo Mixer
%suse_update_desktop_file  -u -r %{buildroot}%{_sysconfdir}/xdg/autostart/pasystray.desktop AudioVideo Mixer

%license LICENSE
%dir %{_datadir}/pasystray

openSUSE Build Service is sponsored by