From 24c0de227607d5402dd1b2cea7ae3fd98c1f74f480f6763d7db39389fcde0ecf Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 18 Jul 2024 11:24:40 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/editors/emacs?expand=0&rev=403 --- emacs.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/emacs.spec b/emacs.spec index c4e9a47..72199d9 100644 --- a/emacs.spec +++ b/emacs.spec @@ -172,11 +172,13 @@ Requires: etags Requires: mailutils %endif Requires(pre): fileutils +%if %{with games} %if !0%{?is_opensuse} Suggests: %{name}-games %else Recommends: %{name}-games %endif +%endif Source: https://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz Source1: app-defaults.Emacs Source2: site-lisp.tar.bz2 @@ -317,7 +319,7 @@ Summary: Info files for GNU Emacs Group: Documentation/Other %if 0%{?suse_version} <= 1500 Requires(post): %install_info_prereq -Requires(preun): %install_info_prereq +Requires(preun):%install_info_prereq %endif BuildArch: noarch @@ -326,13 +328,12 @@ This package contains all the Info files for GNU Emacs. These files can be read online with GNU Emacs. They describe Emacs and some of its modes. +%if %{with games} %package games Requires: emacs = %{version}-%{release} -%if %{with games} Requires(pre): group(games) Requires(pre): user(games) Requires(pre): permissions -%endif Provides: emacs:%{_localstatedir}/games/emacs Summary: Provides scores for Emacs games Group: Amusements/Games/Other @@ -340,12 +341,13 @@ Group: Amusements/Games/Other %description games This package provides capability to play games for members of the user group called "games". +%endif %package -n etags Summary: Generate Tag Files for Use with Emacs Group: Development/Tools/Navigators Requires(post): coreutils update-alternatives -Requires(preun): coreutils update-alternatives +Requires(preun):coreutils update-alternatives Provides: ctags:/usr/bin/etags %description -n etags @@ -538,7 +540,9 @@ DESKTOP="--with-x \ --without-native-compilation \ %endif --without-hesiod \ +%if %{with games} --with-gameuser=:games \ +%endif --with-kerberos \ --with-kerberos5 \ --with-file-notification=inotify \ @@ -3519,8 +3523,8 @@ fi %{_mandir}/man1/*.1%{ext_man} %exclude %{_mandir}/man1/*tags.1%{ext_man} -%files games %if %{with games} +%files games %attr(02755,games,games) %{_libexecdir}/emacs/%{version}/%{_target_cpu}-suse-linux/update-game-score %if 0%{?suse_version} >= 1699 %attr(0755,root,root) %{_datadir}/permissions/permissions.d/ @@ -3530,12 +3534,11 @@ fi %config %attr(0644,root,root) %{_sysconfdir}/permissions.d/emacs-games %config %attr(0644,root,root) %{_sysconfdir}/permissions.d/emacs-games.paranoid %endif -%else %{_libexecdir}/emacs/%{version}/%{_target_cpu}-suse-linux/update-game-score -%endif %dir %attr(775,games,games) %{_localstatedir}/games/emacs %attr(660,games,games) %{_localstatedir}/games/emacs/snake-scores %attr(660,games,games) %{_localstatedir}/games/emacs/tetris-scores +%endif %files -n emacs-nox %defattr(-, root, root)