File ayatana-indicator-a11y.spec of Package ayatana-indicator-a11y
#
# spec file for package ayatana-indicator-a11y
#
# Copyright (c) 2023-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-a11y
Version: 25.4.0
Release: 0
Summary: The Accessibility Ayatana System Indicator
License: GPL-3.0-only
Group: System/GUI/Other
URL: https://wiki.ayatana-indicators.org/AyatanaIndicatorA11y
Source0: https://github.com/AyatanaIndicators/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
BuildRequires: ayatana-cmake-modules
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libayatana-common)
BuildRequires: pkgconfig(gio-2.0) >= 2.36
BuildRequires: pkgconfig(glib-2.0) >= 2.36
BuildRequires: pkgconfig(accountsservice)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xrandr)
# For directory owning.
BuildRequires: ayatana-indicator-common
# Change this to something Lomiri-specific once we want to support that, if
# ever.
#Requires: gsettings-ubuntu-schemas
Requires: onboard
Requires: orca
Requires: espeak-ng
Requires: python3-magnus
Recommends: %{name}-lang
%systemd_requires
%description
This package contains the accessibility indicator, which should
show as an icon in the top panel of indicator aware desktop
environments.
It can be used to toggle and access various accessibility
features.
%lang_package
%prep
%autosetup -p1
%build
%cmake \
%if 0%{?sle_version} <= 150200
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
%endif
-DENABLE_WERROR=OFF
%cmake_build
%install
%cmake_install
%find_lang %{name}
# Move .pkla file to the correct polkit $HOME.
mkdir -p %{buildroot}%{_localstatedir}/lib/polkit/localauthority/10-vendor.d/
mv %{buildroot}%{_localstatedir}/lib/polkit{-1,}/localauthority/10-vendor.d/50-org.ayatana.indicator.a11y.AccountsService.pkla
%post
%systemd_user_post %{name}.service
%preun
%systemd_user_preun %{name}.service
%postun
%systemd_user_postun %{name}.service
%files
%license COPYING
%doc AUTHORS ChangeLog INSTALL.md NEWS README.md
%config %{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_libexecdir}/%{name}/
%{_datadir}/ayatana/indicators/org.ayatana.indicator.a11y
%{_datadir}/dbus-1/interfaces/org.ayatana.indicator.a11y.AccountsService.xml
%dir %{_datadir}/accountsservice/
%dir %{_datadir}/accountsservice/interfaces/
%{_datadir}/accountsservice/interfaces/org.ayatana.indicator.a11y.AccountsService.xml
%{_datadir}/polkit-1/actions/org.ayatana.indicator.a11y.AccountsService.policy
%{_datadir}/polkit-1/rules.d/50-org.ayatana.indicator.a11y.AccountsService.rules
%dir %{_datadir}/glib-2.0/
%dir %{_datadir}/glib-2.0/schemas/
%{_datadir}/glib-2.0/schemas/org.ayatana.indicator.a11y.gschema.xml
%dir %{_localstatedir}/lib/polkit/
%dir %{_localstatedir}/lib/polkit/localauthority/
%dir %{_localstatedir}/lib/polkit/localauthority/10-vendor.d/
%{_localstatedir}/lib/polkit/localauthority/10-vendor.d/50-org.ayatana.indicator.a11y.AccountsService.pkla
%dir %{_datadir}/icons/
%dir %{_datadir}/icons/hicolor/
%dir %{_datadir}/icons/hicolor/scalable/
%dir %{_datadir}/icons/hicolor/scalable/status/
%{_datadir}/icons/hicolor/scalable/status/ayatana-indicator-a11y-scale-down.svg
%{_datadir}/icons/hicolor/scalable/status/ayatana-indicator-a11y-scale-up.svg
%{_userunitdir}/%{name}.service
%files lang -f %{name}.lang
%changelog