From 41d0118e05fa378622886d3a757a55c19af5e329 Mon Sep 17 00:00:00 2001 From: Takao Fujiwara Date: Sat, 13 Jul 2024 10:13:27 +0900 Subject: [PATCH] Drop emacs.i686 --- anthy-unicode.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/anthy-unicode.spec b/anthy-unicode.spec index 4847d93..e0c6918 100644 --- a/anthy-unicode.spec +++ b/anthy-unicode.spec @@ -7,6 +7,12 @@ %bcond_without xemacs %endif +# emacs.i686 has not been available since emacs-29.4-7.fc40 +%ifarch i686 +%bcond_with emacs +%else +%bcond_without emacs +%endif Name: anthy-unicode Version: 1.0.0.20240502 @@ -14,7 +20,9 @@ Release: %autorelease # The entire source code is LGPLv2+ and dictionaries is GPLv2. the corpus data is under Public Domain. License: LGPL-2.0-or-later AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain URL: https://github.com/fujiwarat/anthy-unicode/wiki +%if %{with emacs} BuildRequires: emacs +%endif BuildRequires: gcc BuildRequires: git %if %{with xemacs} @@ -44,6 +52,7 @@ user dictionaries and the users information which is used for the conversion, is stored into their own home directory. So Anthy Unicode is secure than other conversion server. +%if %{with emacs} %package -n emacs-%{pkg} Summary: Emacs files for %{pkg} Requires: %{name} = %{version}-%{release} @@ -53,6 +62,7 @@ BuildArch: noarch %description -n emacs-%{pkg} This package contains the byte compiled elips packages to run %{pkg} with GNU Emacs. +%endif %if %{with xemacs} %package -n xemacs-%{pkg} @@ -96,9 +106,11 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" # remove unnecessary files rm $RPM_BUILD_ROOT%{_libdir}/lib*.la +%if %{with emacs} ## for emacs-anthy mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir} install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_emacs_sitestartdir} +%endif %if %{with xemacs} ## for xemacs-anthy @@ -147,12 +159,14 @@ cd .. %{_libdir}/lib*.so.* %{_datadir}/%{pkg}/ +%if %{with emacs} %files -n emacs-%{pkg} %doc doc/ELISP %{_emacs_sitelispdir}/%{pkg}/*.el %{_emacs_sitelispdir}/%{pkg}/*.elc %{_emacs_sitestartdir}/*.el %dir %{_emacs_sitelispdir}/%{pkg} +%endif %if %{with xemacs} %files -n xemacs-%{pkg}