File ayatana-indicator-sound.spec of Package ayatana-indicator-sound
#
# spec file for package ayatana-indicator-sound
#
# Copyright (c) 2018-2025 SUSE LLC
#
# 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 http://bugs.opensuse.org/
#
Name: ayatana-indicator-sound
Version: 24.5.2
Release: 0
Summary: Ayatana Indicator for displaying a unified sound menu
License: GPL-3.0-only
Group: System/GUI/Other
URL: https://github.com/AyatanaIndicators/ayatana-indicator-sound
Source: https://github.com/AyatanaIndicators/ayatana-indicator-sound/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
BuildRequires: ayatana-cmake-modules
BuildRequires: cmake
BuildRequires: gcc-c++
# For tests, which are disabled for now. Maybe package that correctly later.
#BuildRequires: gcovr
#BuildRequires: lcov
BuildRequires: intltool
BuildRequires: systemd-rpm-macros
BuildRequires: update-desktop-files
BuildRequires: vala >= 0.20
BuildRequires: pkgconfig
BuildRequires: pkgconfig(accountsservice)
BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(gio-2.0) >= 2.25.13
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.9.12
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(libayatana-common)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libpulse-mainloop-glib)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(systemd)
# For directory owning.
BuildRequires: ayatana-indicator-common
BuildRequires: accountsservice
Requires: ayatana-indicator-common
# Change this to something Lomiri-specific once we want to support that, if
# ever.
#Requires: gsettings-ubuntu-schemas
# Currently, TW uses PipeWire by default, which provides a PulseAudio
# compatibility daemon, which is mutually exclusive with the real PulseAudio
# daemon. Older system versions do not have PipeWire, or do not use it by
# default, and the pulseaudio package does not provide a "pulseaudio-daemon"
# virtual, so we'll have to depend on the proper package.
Requires: (pulseaudio-daemon or pulseaudio)
Recommends: %{name}-lang
Recommends: accountsservice
# Same here, change to something Lomiri-based and enable Lomiri support, if
# ever.
#Recommends: accountsservice-ubuntu-schemas
Recommends: pavucontrol
Suggests: ayatana-indicator-renderer
Suggests: gnome-control-center
Suggests: mate-media
%glib2_gsettings_schema_requires
%systemd_requires
%description
A system sound indicator which provides easy control of the
PulseAudio sound daemon. The sound menu also provides integration
with several multimedia players (e.g. Clementine).
%lang_package
%prep
%autosetup -p1
%build
%cmake \
%if 0%{?sle_version} <= 150200
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
%endif
-DCMAKE_INSTALL_LOCALSTATEDIR=%{_localstatedir} \
-Denable_tests=Off \
-Denable_lomiri_features=Off
%cmake_build
%install
%cmake_install
%find_lang %{name}
%post
%systemd_user_post %{name}.service
%preun
%systemd_user_preun %{name}.service
%postun
%systemd_user_postun %{name}.service
%files
%license COPYING
%doc AUTHORS INSTALL.md NEWS NEWS.Canonical README.md
%config %{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_libexecdir}/%{name}/
%{_datadir}/ayatana/indicators/org.ayatana.indicator.sound
%{_datadir}/glib-2.0/schemas/org.ayatana.indicator.sound.gschema.xml
%{_datadir}/dbus-1/interfaces/org.ayatana.indicator.sound.AccountsService.xml
%{_userunitdir}/%{name}.service
%dir %{_datadir}/accountsservice/
%dir %{_datadir}/accountsservice/interfaces/
%{_datadir}/accountsservice/interfaces/org.ayatana.indicator.sound.AccountsService.xml
%{_datadir}/polkit-1/actions/org.ayatana.indicator.sound.AccountsService.policy
%{_datadir}/polkit-1/rules.d/50-org.ayatana.indicator.sound.AccountsService.rules
%files lang -f %{name}.lang
%changelog