Group :: Desktop gráfico/Outros
RPM: ayatana-indicator-display
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define _libexecdir %_prefix/libexec
Name: ayatana-indicator-display
Version: 22.9.3
Release: alt2
Summary: Ayatana Indicator for Display configuration
License: GPLv3
Group: Graphical desktop/Other
Url: https://github.com/AyatanaIndicators/ayatana-indicator-display
Packager: Nikolay Strelkov <snk at altlinux.org>
Source: %name-%version.tar
BuildRequires(pre): rpm-macros-cmake rpm-macros-systemd
BuildRequires: ayatana-cmake-modules cmake gcc-c++ intltool libayatana-common-devel properties-cpp-devel
BuildRequires: ayatana-indicator-common
BuildRequires: libblkid-devel
BuildRequires: libgudev-devel
BuildRequires: libmount-devel
BuildRequires: libpcre-devel
BuildRequires: libpcre2-devel
BuildRequires: libselinux-devel
BuildRequires: libsystemd-devel
BuildRequires: pkg-config
BuildRequires: zlib-devel
Requires: xsct
%description
This Ayatana Indicator is designed to be placed on the right side
of a panel and give the user easy control for changing their
display settings.
Ayatana Indicators are only available on desktop environments that
provide a renderer for system indicators (such as MATE, Xfce, Lomiri,
etc.).
%prep
%setup
%build
%cmake \
-Denable_lomiri_features=Off \
-Denable_tests=OFF
%cmake_build
%install
%cmake_install
find %buildroot -type 'f' -name '*.la' -delete -print
# these translations are ignored by %%find_lang
rm -fv %buildroot%_datadir/locale/it_CARES/LC_MESSAGES/%name.mo
rm -fv %buildroot%_datadir/locale/zh_LATN at pinyin/LC_MESSAGES/%name.mo
%find_lang %name
%post
%systemd_user_post %name.service
%preun
%systemd_user_preun %name.service
%postun
%systemd_user_postun %name.service
%files -f %name.lang
%doc COPYING AUTHORS INSTALL.md NEWS README README.md
%config %_sysconfdir/xdg/autostart/%name.desktop
%dir %_libexecdir/%name/
%_libexecdir/%name/%{name}-service
%_datadir/glib-2.0/schemas/org.ayatana.indicator.display.gschema.xml
# This should probably be just org.ayatana.indicator.display,
# but is called rotation_lock for, likely, legacy reasons. Keep
# an eye on it.
%dir %_datadir/ayatana
%dir %_datadir/ayatana/indicators
%_datadir/ayatana/indicators/org.ayatana.indicator.rotation_lock
%dir %_iconsdir/hicolor/scalable
%dir %_iconsdir/hicolor/scalable/status
%_iconsdir/hicolor/scalable/status/*.svg
%dir %_prefix/lib/systemd
%dir %_userunitdir
%_userunitdir/%name.service
%changelog
…
Todas as alterações você pod ver aqui
%define _libexecdir %_prefix/libexec
Name: ayatana-indicator-display
Version: 22.9.3
Release: alt2
Summary: Ayatana Indicator for Display configuration
License: GPLv3
Group: Graphical desktop/Other
Url: https://github.com/AyatanaIndicators/ayatana-indicator-display
Packager: Nikolay Strelkov <snk at altlinux.org>
Source: %name-%version.tar
BuildRequires(pre): rpm-macros-cmake rpm-macros-systemd
BuildRequires: ayatana-cmake-modules cmake gcc-c++ intltool libayatana-common-devel properties-cpp-devel
BuildRequires: ayatana-indicator-common
BuildRequires: libblkid-devel
BuildRequires: libgudev-devel
BuildRequires: libmount-devel
BuildRequires: libpcre-devel
BuildRequires: libpcre2-devel
BuildRequires: libselinux-devel
BuildRequires: libsystemd-devel
BuildRequires: pkg-config
BuildRequires: zlib-devel
Requires: xsct
%description
This Ayatana Indicator is designed to be placed on the right side
of a panel and give the user easy control for changing their
display settings.
Ayatana Indicators are only available on desktop environments that
provide a renderer for system indicators (such as MATE, Xfce, Lomiri,
etc.).
%prep
%setup
%build
%cmake \
-Denable_lomiri_features=Off \
-Denable_tests=OFF
%cmake_build
%install
%cmake_install
find %buildroot -type 'f' -name '*.la' -delete -print
# these translations are ignored by %%find_lang
rm -fv %buildroot%_datadir/locale/it_CARES/LC_MESSAGES/%name.mo
rm -fv %buildroot%_datadir/locale/zh_LATN at pinyin/LC_MESSAGES/%name.mo
%find_lang %name
%post
%systemd_user_post %name.service
%preun
%systemd_user_preun %name.service
%postun
%systemd_user_postun %name.service
%files -f %name.lang
%doc COPYING AUTHORS INSTALL.md NEWS README README.md
%config %_sysconfdir/xdg/autostart/%name.desktop
%dir %_libexecdir/%name/
%_libexecdir/%name/%{name}-service
%_datadir/glib-2.0/schemas/org.ayatana.indicator.display.gschema.xml
# This should probably be just org.ayatana.indicator.display,
# but is called rotation_lock for, likely, legacy reasons. Keep
# an eye on it.
%dir %_datadir/ayatana
%dir %_datadir/ayatana/indicators
%_datadir/ayatana/indicators/org.ayatana.indicator.rotation_lock
%dir %_iconsdir/hicolor/scalable
%dir %_iconsdir/hicolor/scalable/status
%_iconsdir/hicolor/scalable/status/*.svg
%dir %_prefix/lib/systemd
%dir %_userunitdir
%_userunitdir/%name.service
%changelog
…
Todas as alterações você pod ver aqui