2015-03-17 08:36:40 +00:00
|
|
|
%global _hardened_build 1
|
2024-02-06 18:08:45 +00:00
|
|
|
|
|
|
|
%bcond gpm %[!(0%{?rhel} >= 10)]
|
2023-10-20 04:19:54 +00:00
|
|
|
%bcond webkit %[!(0%{?rhel} >= 10)]
|
2015-03-17 08:36:40 +00:00
|
|
|
|
2004-09-09 04:35:28 +00:00
|
|
|
# This file is encoded in UTF-8. -*- coding: utf-8 -*-
|
2015-04-07 08:49:47 +00:00
|
|
|
Summary: GNU Emacs text editor
|
|
|
|
Name: emacs
|
|
|
|
Epoch: 1
|
2024-06-23 21:51:36 +00:00
|
|
|
Version: 29.4
|
2023-09-24 20:03:37 +00:00
|
|
|
Release: %autorelease
|
2023-04-24 11:29:50 +00:00
|
|
|
License: GPL-3.0-or-later AND CC0-1.0
|
2024-04-08 15:48:40 +00:00
|
|
|
URL: https://www.gnu.org/software/emacs/
|
2018-01-22 09:10:33 +00:00
|
|
|
Source0: https://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz
|
2020-04-16 19:59:20 +00:00
|
|
|
Source1: https://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz.sig
|
2023-07-31 22:33:45 +00:00
|
|
|
Source2: https://keys.openpgp.org/vks/v1/by-fingerprint/17E90D521672C04631B1183EE78DAE0F3115E06B
|
2024-06-23 22:26:40 +00:00
|
|
|
Source3: https://keys.openpgp.org/vks/v1/by-fingerprint/CEA1DE21AB108493CC9C65742E82323B8F4353EE
|
2020-04-16 19:59:20 +00:00
|
|
|
Source4: dotemacs.el
|
|
|
|
Source5: site-start.el
|
|
|
|
Source6: default.el
|
2010-08-03 14:55:47 +00:00
|
|
|
# Emacs Terminal Mode, #551949, #617355
|
2020-04-16 19:59:20 +00:00
|
|
|
Source7: emacs-terminal.desktop
|
|
|
|
Source8: emacs-terminal.sh
|
2023-09-24 20:38:47 +00:00
|
|
|
Source9: emacs-desktop.sh
|
2011-11-16 10:16:12 +00:00
|
|
|
# rhbz#713600
|
2015-04-07 08:49:47 +00:00
|
|
|
Patch1: emacs-spellchecker.patch
|
2018-05-30 11:25:32 +00:00
|
|
|
Patch2: emacs-system-crypto-policies.patch
|
2022-12-01 14:34:43 +00:00
|
|
|
# causes a dependency on pkgconfig(systemd)
|
|
|
|
# => remove it if we stop using this patch
|
2022-01-08 13:26:58 +00:00
|
|
|
Patch3: emacs-libdir-vs-systemd.patch
|
2023-09-24 20:38:47 +00:00
|
|
|
# Avoid using the pure GTK build on X11 where it is unsupported:
|
|
|
|
Patch4: emacs-desktop.patch
|
2024-03-25 11:23:19 +00:00
|
|
|
Patch5: emacs-pgtk-on-x-error-message.patch
|
2015-03-17 08:36:40 +00:00
|
|
|
|
2020-04-16 20:00:38 +00:00
|
|
|
BuildRequires: gcc
|
2015-03-17 08:36:40 +00:00
|
|
|
BuildRequires: atk-devel
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: freetype-devel
|
|
|
|
BuildRequires: fontconfig-devel
|
|
|
|
BuildRequires: dbus-devel
|
|
|
|
BuildRequires: giflib-devel
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libjpeg-turbo-devel
|
|
|
|
BuildRequires: libjpeg-turbo
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: libXau-devel
|
|
|
|
BuildRequires: libXdmcp-devel
|
2023-09-13 13:07:30 +00:00
|
|
|
BuildRequires: libXi-devel
|
2015-03-17 08:36:40 +00:00
|
|
|
BuildRequires: libXrender-devel
|
|
|
|
BuildRequires: libXt-devel
|
|
|
|
BuildRequires: libXpm-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: xorg-x11-proto-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
BuildRequires: librsvg2-devel
|
|
|
|
BuildRequires: m17n-lib-devel
|
|
|
|
BuildRequires: libotf-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: alsa-lib-devel
|
2024-02-06 18:08:45 +00:00
|
|
|
%if %{with gpm}
|
2015-03-17 08:36:40 +00:00
|
|
|
BuildRequires: gpm-devel
|
2024-02-06 18:08:45 +00:00
|
|
|
%endif
|
2015-03-17 08:36:40 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2020-04-16 20:03:55 +00:00
|
|
|
BuildRequires: autoconf
|
2015-03-17 08:36:40 +00:00
|
|
|
BuildRequires: bzip2
|
|
|
|
BuildRequires: cairo
|
|
|
|
BuildRequires: texinfo
|
|
|
|
BuildRequires: gzip
|
|
|
|
BuildRequires: desktop-file-utils
|
2021-06-05 13:32:30 +00:00
|
|
|
BuildRequires: libappstream-glib
|
2015-04-22 09:31:54 +00:00
|
|
|
BuildRequires: libacl-devel
|
2020-07-11 06:03:24 +00:00
|
|
|
BuildRequires: harfbuzz-devel
|
|
|
|
BuildRequires: jansson-devel
|
|
|
|
BuildRequires: systemd-devel
|
2022-01-08 13:26:58 +00:00
|
|
|
BuildRequires: libgccjit-devel
|
2023-08-05 23:45:31 +00:00
|
|
|
BuildRequires: libtree-sitter-devel
|
2024-01-05 15:28:27 +00:00
|
|
|
BuildRequires: sqlite-devel
|
2023-08-05 23:45:31 +00:00
|
|
|
BuildRequires: libwebp-devel
|
2013-04-08 10:18:06 +00:00
|
|
|
|
2015-03-17 08:36:40 +00:00
|
|
|
BuildRequires: gtk3-devel
|
2023-10-20 04:19:54 +00:00
|
|
|
%if %{with webkit}
|
2023-02-10 15:47:19 +00:00
|
|
|
BuildRequires: webkit2gtk4.1-devel
|
2023-10-20 04:19:54 +00:00
|
|
|
%endif
|
2013-04-08 10:18:06 +00:00
|
|
|
|
2020-04-16 19:59:20 +00:00
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
2017-07-14 20:18:20 +00:00
|
|
|
# For lucid
|
|
|
|
BuildRequires: Xaw3d-devel
|
|
|
|
|
2022-12-01 14:34:43 +00:00
|
|
|
# for Patch3
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
|
2016-07-22 08:54:37 +00:00
|
|
|
%ifarch %{ix86}
|
2011-03-10 13:21:22 +00:00
|
|
|
BuildRequires: util-linux
|
2011-01-07 17:30:22 +00:00
|
|
|
%endif
|
2021-01-04 22:13:21 +00:00
|
|
|
BuildRequires: make
|
2012-09-13 10:27:17 +00:00
|
|
|
|
2023-04-10 20:36:11 +00:00
|
|
|
# Emacs doesn't run without a font, rhbz#732422
|
|
|
|
Requires: google-noto-sans-mono-vf-fonts
|
2023-11-07 20:57:46 +00:00
|
|
|
Requires(preun): /usr/sbin/alternatives
|
|
|
|
Requires(posttrans): /usr/sbin/alternatives
|
2015-04-07 08:49:47 +00:00
|
|
|
Requires: emacs-common = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: emacs(bin) = %{epoch}:%{version}-%{release}
|
2023-09-24 20:38:47 +00:00
|
|
|
Supplements: (libwayland-server and emacs-common)
|
2010-03-19 15:30:57 +00:00
|
|
|
|
2007-09-11 17:56:57 +00:00
|
|
|
%define site_lisp %{_datadir}/emacs/site-lisp
|
2009-01-18 16:22:07 +00:00
|
|
|
%define site_start_d %{site_lisp}/site-start.d
|
2007-09-11 17:56:57 +00:00
|
|
|
%define pkgconfig %{_datadir}/pkgconfig
|
2011-01-07 17:30:22 +00:00
|
|
|
%define emacs_libexecdir %{_libexecdir}/emacs/%{version}/%{_host}
|
2022-01-08 13:26:58 +00:00
|
|
|
%define native_lisp %{_libdir}/emacs/%{version}/native-lisp
|
2007-09-11 17:56:57 +00:00
|
|
|
|
2024-04-27 00:46:40 +00:00
|
|
|
%global desc %{expand:GNU Emacs is a powerful, customizable, self-documenting, modeless text
|
|
|
|
editor. It contains special code editing features, a scripting language
|
|
|
|
(elisp), and the capability to read mail, news, and more without leaving
|
|
|
|
the editor.
|
2023-09-24 20:38:47 +00:00
|
|
|
}
|
2004-09-09 04:31:22 +00:00
|
|
|
|
2024-04-26 23:33:11 +00:00
|
|
|
|
2023-09-24 20:38:47 +00:00
|
|
|
%description
|
|
|
|
%desc
|
|
|
|
This package provides an emacs binary with support for Wayland, using the
|
|
|
|
GTK toolkit.
|
|
|
|
|
2024-04-26 23:33:11 +00:00
|
|
|
|
2023-09-24 20:38:47 +00:00
|
|
|
%package gtk+x11
|
|
|
|
Summary: GNU Emacs text editor with GTK toolkit X support
|
|
|
|
Requires: libgccjit
|
2023-11-07 20:57:46 +00:00
|
|
|
Requires(preun): /usr/sbin/alternatives
|
|
|
|
Requires(posttrans): /usr/sbin/alternatives
|
2023-09-24 20:38:47 +00:00
|
|
|
Requires: emacs-common = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: emacs(bin) = %{epoch}:%{version}-%{release}
|
|
|
|
Supplements: (xorg-x11-server-Xorg and emacs-common)
|
|
|
|
|
|
|
|
%description gtk+x11
|
|
|
|
%desc
|
|
|
|
This package provides an emacs-gtk+x11 binary with support for the X
|
|
|
|
Window System, using the GTK toolkit.
|
2004-09-09 04:36:23 +00:00
|
|
|
|
2024-04-26 23:33:11 +00:00
|
|
|
|
2017-07-14 20:18:20 +00:00
|
|
|
%package lucid
|
2023-09-24 20:38:47 +00:00
|
|
|
Summary: GNU Emacs text editor with Lucid toolkit X support
|
2023-04-10 20:36:11 +00:00
|
|
|
Requires: google-noto-sans-mono-vf-fonts
|
2023-11-07 20:57:46 +00:00
|
|
|
Requires(preun): /usr/sbin/alternatives
|
|
|
|
Requires(posttrans): /usr/sbin/alternatives
|
2017-07-14 20:18:20 +00:00
|
|
|
Requires: emacs-common = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: emacs(bin) = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
%description lucid
|
2023-09-24 20:38:47 +00:00
|
|
|
%desc
|
|
|
|
This package provides an emacs-lucid binary with support for the X
|
|
|
|
Window System, using the Lucid toolkit.
|
2017-07-14 20:18:20 +00:00
|
|
|
|
2024-04-26 23:33:11 +00:00
|
|
|
|
2023-09-24 20:58:28 +00:00
|
|
|
%package nw
|
2024-04-27 00:46:40 +00:00
|
|
|
Summary: GNU Emacs text editor with no window system support
|
2023-11-07 20:57:46 +00:00
|
|
|
Requires(preun): /usr/sbin/alternatives
|
|
|
|
Requires(posttrans): /usr/sbin/alternatives
|
2015-04-07 08:49:47 +00:00
|
|
|
Requires: emacs-common = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: emacs(bin) = %{epoch}:%{version}-%{release}
|
2023-09-24 20:58:28 +00:00
|
|
|
Provides: emacs-nox = %{epoch}:%{version}-%{release}
|
2024-04-03 11:36:34 +00:00
|
|
|
Obsoletes: emacs-nox < 1:30
|
2004-09-09 04:36:23 +00:00
|
|
|
|
2023-09-24 20:58:28 +00:00
|
|
|
%description nw
|
2023-09-24 20:38:47 +00:00
|
|
|
%desc
|
2024-04-27 00:46:40 +00:00
|
|
|
This package provides an emacs-nw binary without graphical display
|
|
|
|
support, for running on a terminal only.
|
2004-09-09 04:36:23 +00:00
|
|
|
|
2024-04-26 23:33:11 +00:00
|
|
|
|
|
|
|
%package -n emacsclient
|
|
|
|
Summary: Remotely control GNU Emacs
|
|
|
|
Conflicts: emacs-common < 1:29.3-9
|
|
|
|
|
|
|
|
%description -n emacsclient
|
|
|
|
%desc
|
|
|
|
This package provides emacsclient, which can be used to control an Emacs
|
|
|
|
server.
|
|
|
|
|
|
|
|
|
2004-09-09 04:36:23 +00:00
|
|
|
%package common
|
2015-04-07 08:49:47 +00:00
|
|
|
Summary: Emacs common files
|
2012-09-20 16:52:34 +00:00
|
|
|
# The entire source code is GPLv3+ except lib-src/etags.c which is
|
|
|
|
# also BSD. Manual (info) is GFDL.
|
2023-04-24 11:29:50 +00:00
|
|
|
License: GPL-3.0-or-later AND GFDL-1.3-no-invariants-or-later AND BSD-3-Clause
|
2023-11-07 20:57:46 +00:00
|
|
|
Requires(preun): /usr/sbin/alternatives
|
|
|
|
Requires(posttrans): /usr/sbin/alternatives
|
2024-04-05 12:06:27 +00:00
|
|
|
Requires: %{name}-filesystem
|
2024-04-26 23:33:11 +00:00
|
|
|
Requires: emacsclient
|
2023-04-10 20:36:11 +00:00
|
|
|
Requires: libgccjit
|
2023-09-24 20:58:28 +00:00
|
|
|
Recommends: (emacs or emacs-gtk+x11 or emacs-lucid or emacs-nw)
|
2021-02-05 19:56:18 +00:00
|
|
|
Recommends: enchant2
|
2023-04-10 20:36:11 +00:00
|
|
|
Recommends: info
|
2015-04-07 08:49:47 +00:00
|
|
|
Provides: %{name}-el = %{epoch}:%{version}-%{release}
|
|
|
|
Obsoletes: emacs-el < 1:24.3-29
|
2022-07-14 21:50:55 +00:00
|
|
|
# transient.el is provided by emacs in lisp/transient.el
|
|
|
|
Provides: emacs-transient = 0.3.7
|
|
|
|
# the existing emacs-transient package is obsoleted by emacs 28+, last package
|
|
|
|
# version as of the release of emacs 28.1 is obsoleted
|
|
|
|
Obsoletes: emacs-transient < 0.3.0-4
|
2004-09-09 04:36:23 +00:00
|
|
|
|
2024-04-26 00:04:11 +00:00
|
|
|
# https://github.com/tree-sitter/tree-sitter/issues/3296
|
|
|
|
Requires: libtree-sitter >= 0.22.5
|
|
|
|
Requires: libtree-sitter < 0.23
|
|
|
|
|
2023-08-05 23:45:31 +00:00
|
|
|
# Ideally, we'd package all tree-sitter parsers as RPMs, but, in the
|
|
|
|
# meantime, we need the following packages for
|
|
|
|
# treesit-install-language-grammar to be able to build the parsers for
|
|
|
|
# us at runtime:
|
2023-08-07 18:04:53 +00:00
|
|
|
Recommends: ((gcc and gcc-c++) or clang)
|
|
|
|
Recommends: git
|
2023-08-05 23:45:31 +00:00
|
|
|
|
2023-11-19 19:25:12 +00:00
|
|
|
Recommends: libtree-sitter-java
|
|
|
|
|
2004-09-09 04:36:23 +00:00
|
|
|
%description common
|
2023-09-24 20:38:47 +00:00
|
|
|
%desc
|
|
|
|
This package contains all the common files needed by emacs, emacs-gtk+x11,
|
2023-09-24 20:58:28 +00:00
|
|
|
emacs-lucid, or emacs-nw.
|
2004-09-09 04:36:23 +00:00
|
|
|
|
2024-04-26 23:33:11 +00:00
|
|
|
|
|
|
|
|
2010-08-03 14:55:47 +00:00
|
|
|
%package terminal
|
2015-04-07 08:49:47 +00:00
|
|
|
Summary: A desktop menu item for GNU Emacs terminal.
|
|
|
|
Requires: emacs = %{epoch}:%{version}-%{release}
|
|
|
|
BuildArch: noarch
|
2010-08-03 14:55:47 +00:00
|
|
|
|
|
|
|
%description terminal
|
|
|
|
Contains a desktop menu item running GNU Emacs terminal. Install
|
|
|
|
emacs-terminal if you need a terminal with Malayalam support.
|
|
|
|
|
|
|
|
Please note that emacs-terminal is a temporary package and it will be
|
2012-07-11 15:34:15 +00:00
|
|
|
removed when another terminal becomes capable of handling Malayalam.
|
2010-08-03 14:55:47 +00:00
|
|
|
|
2024-04-26 23:33:11 +00:00
|
|
|
|
2019-04-18 08:57:33 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development header files for Emacs
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development header files for Emacs.
|
|
|
|
|
2024-04-26 23:33:11 +00:00
|
|
|
|
2004-09-09 04:31:22 +00:00
|
|
|
%prep
|
2024-06-23 22:26:40 +00:00
|
|
|
cat '%{SOURCE2}' '%{SOURCE3}' > keyring
|
|
|
|
%{gpgverify} --keyring=keyring --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
rm keyring
|
2023-07-31 22:36:45 +00:00
|
|
|
%autosetup -p1
|
|
|
|
|
2017-09-06 15:50:04 +00:00
|
|
|
autoconf
|
2013-01-21 18:17:39 +00:00
|
|
|
|
2009-05-18 11:02:30 +00:00
|
|
|
grep -v "tetris.elc" lisp/Makefile.in > lisp/Makefile.in.new \
|
|
|
|
&& mv lisp/Makefile.in.new lisp/Makefile.in
|
2015-06-17 07:54:12 +00:00
|
|
|
grep -v "pong.elc" lisp/Makefile.in > lisp/Makefile.in.new \
|
|
|
|
&& mv lisp/Makefile.in.new lisp/Makefile.in
|
2009-05-18 11:02:30 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# Avoid trademark issues
|
2008-04-18 19:38:06 +00:00
|
|
|
rm -f lisp/play/tetris.el lisp/play/tetris.elc
|
2023-07-22 06:01:25 +00:00
|
|
|
rm -f lisp/play/pong.el lisp/play/pong.elc
|
2007-08-13 19:20:38 +00:00
|
|
|
|
2008-05-02 01:48:26 +00:00
|
|
|
%ifarch %{ix86}
|
|
|
|
%define setarch setarch %{_arch} -R
|
|
|
|
%else
|
|
|
|
%define setarch %{nil}
|
|
|
|
%endif
|
|
|
|
|
2011-09-27 10:02:08 +00:00
|
|
|
# Avoid duplicating doc files in the common subpackage
|
|
|
|
ln -s ../../%{name}/%{version}/etc/COPYING doc
|
|
|
|
ln -s ../../%{name}/%{version}/etc/NEWS doc
|
|
|
|
|
2017-08-25 22:45:01 +00:00
|
|
|
|
2004-09-09 04:31:22 +00:00
|
|
|
%build
|
2020-04-16 20:00:38 +00:00
|
|
|
export CFLAGS="-DMAIL_USE_LOCKF %{build_cflags}"
|
|
|
|
%set_build_flags
|
2005-12-14 08:23:54 +00:00
|
|
|
|
2017-07-14 20:18:20 +00:00
|
|
|
# Build Lucid binary
|
|
|
|
mkdir build-lucid && cd build-lucid
|
|
|
|
ln -s ../configure .
|
|
|
|
|
|
|
|
LDFLAGS=-Wl,-z,relro; export LDFLAGS;
|
|
|
|
|
2023-10-21 10:58:07 +00:00
|
|
|
%configure --with-cairo \
|
|
|
|
--with-dbus \
|
|
|
|
--with-gif \
|
|
|
|
--with-gpm=no \
|
|
|
|
--with-harfbuzz \
|
|
|
|
--with-jpeg \
|
|
|
|
--with-json \
|
|
|
|
--with-modules \
|
|
|
|
--with-native-compilation=aot \
|
|
|
|
--with-png \
|
|
|
|
--with-rsvg \
|
|
|
|
--with-sqlite3 \
|
|
|
|
--with-tiff \
|
|
|
|
--with-tree-sitter \
|
|
|
|
--with-webp \
|
|
|
|
--with-x-toolkit=lucid \
|
|
|
|
--with-xft \
|
|
|
|
--with-xinput2 \
|
2023-10-21 11:40:23 +00:00
|
|
|
--with-xpm
|
2023-08-05 23:45:31 +00:00
|
|
|
%{setarch} %make_build bootstrap
|
2020-04-16 20:00:38 +00:00
|
|
|
%{setarch} %make_build
|
2017-07-14 20:18:20 +00:00
|
|
|
cd ..
|
|
|
|
|
2010-03-30 00:01:45 +00:00
|
|
|
# Build binary without X support
|
2023-09-24 20:58:28 +00:00
|
|
|
mkdir build-nw && cd build-nw
|
2010-03-30 00:01:45 +00:00
|
|
|
ln -s ../configure .
|
2023-10-21 10:58:07 +00:00
|
|
|
%configure --with-json \
|
|
|
|
--with-modules \
|
|
|
|
--with-native-compilation=aot \
|
|
|
|
--with-sqlite3 \
|
|
|
|
--with-tree-sitter \
|
2024-02-06 18:08:45 +00:00
|
|
|
%if %{without gpm}
|
|
|
|
--with-gpm=no \
|
|
|
|
%endif
|
2023-10-21 10:58:07 +00:00
|
|
|
--with-x=no
|
2023-08-05 23:45:31 +00:00
|
|
|
%{setarch} %make_build bootstrap
|
2022-01-08 13:26:58 +00:00
|
|
|
%{setarch} %make_build
|
|
|
|
cd ..
|
|
|
|
|
2023-09-24 20:38:47 +00:00
|
|
|
# Build GTK/X11 binary
|
|
|
|
mkdir build-gtk+x11 && cd build-gtk+x11
|
2022-01-08 13:26:58 +00:00
|
|
|
ln -s ../configure .
|
|
|
|
|
|
|
|
LDFLAGS=-Wl,-z,relro; export LDFLAGS;
|
|
|
|
|
2023-10-21 10:58:07 +00:00
|
|
|
%configure --with-cairo \
|
|
|
|
--with-dbus \
|
|
|
|
--with-gif \
|
|
|
|
--with-gpm=no \
|
|
|
|
--with-harfbuzz \
|
|
|
|
--with-jpeg \
|
|
|
|
--with-json \
|
|
|
|
--with-modules \
|
|
|
|
--with-native-compilation=aot \
|
|
|
|
--with-png \
|
|
|
|
--with-rsvg \
|
|
|
|
--with-sqlite3 \
|
|
|
|
--with-tiff \
|
|
|
|
--with-tree-sitter \
|
|
|
|
--with-webp \
|
|
|
|
--with-x-toolkit=gtk3 \
|
|
|
|
--with-xinput2 \
|
|
|
|
--with-xpm \
|
|
|
|
%{?with_webkit:--with-xwidgets}
|
2023-08-05 23:45:31 +00:00
|
|
|
%{setarch} %make_build bootstrap
|
2020-04-16 20:00:38 +00:00
|
|
|
%{setarch} %make_build
|
2010-03-30 00:01:45 +00:00
|
|
|
cd ..
|
2007-06-26 17:00:50 +00:00
|
|
|
|
2023-09-24 20:38:47 +00:00
|
|
|
# Build pure GTK binary
|
|
|
|
mkdir build-pgtk && cd build-pgtk
|
|
|
|
ln -s ../configure .
|
|
|
|
|
|
|
|
LDFLAGS=-Wl,-z,relro; export LDFLAGS;
|
|
|
|
|
2023-10-21 10:58:07 +00:00
|
|
|
%configure --with-cairo \
|
|
|
|
--with-dbus \
|
|
|
|
--with-gif \
|
|
|
|
--with-gpm=no \
|
|
|
|
--with-harfbuzz \
|
|
|
|
--with-jpeg \
|
|
|
|
--with-json \
|
|
|
|
--with-modules \
|
|
|
|
--with-native-compilation=aot \
|
|
|
|
--with-pgtk \
|
|
|
|
--with-png \
|
|
|
|
--with-rsvg \
|
|
|
|
--with-sqlite3 \
|
|
|
|
--with-tiff \
|
|
|
|
--with-tree-sitter \
|
2023-10-21 15:45:27 +00:00
|
|
|
--with-webp \
|
2023-10-21 10:58:07 +00:00
|
|
|
--with-xpm \
|
|
|
|
%{?with_webkit:--with-xwidgets}
|
2023-09-24 20:38:47 +00:00
|
|
|
%{setarch} %make_build bootstrap
|
|
|
|
%{setarch} %make_build
|
|
|
|
cd ..
|
|
|
|
|
2010-03-30 00:01:45 +00:00
|
|
|
# Remove versioned file so that we end up with .1 suffix and only one DOC file
|
2023-09-24 20:58:28 +00:00
|
|
|
rm build-{gtk+x11,lucid,nw,pgtk}/src/emacs-%{version}.*
|
2004-09-09 04:31:22 +00:00
|
|
|
|
2007-09-11 17:56:57 +00:00
|
|
|
# Create pkgconfig file
|
2007-08-13 19:20:38 +00:00
|
|
|
cat > emacs.pc << EOF
|
|
|
|
sitepkglispdir=%{site_lisp}
|
2009-10-13 23:22:45 +00:00
|
|
|
sitestartdir=%{site_start_d}
|
2007-08-13 19:20:38 +00:00
|
|
|
|
|
|
|
Name: emacs
|
|
|
|
Description: GNU Emacs text editor
|
2008-05-02 01:48:26 +00:00
|
|
|
Version: %{epoch}:%{version}
|
2007-08-13 19:20:38 +00:00
|
|
|
EOF
|
|
|
|
|
2009-01-18 16:22:07 +00:00
|
|
|
# Create macros.emacs RPM macro file
|
|
|
|
cat > macros.emacs << EOF
|
|
|
|
%%_emacs_version %{version}
|
2009-10-13 23:22:45 +00:00
|
|
|
%%_emacs_ev %{?epoch:%{epoch}:}%{version}
|
|
|
|
%%_emacs_evr %{?epoch:%{epoch}:}%{version}-%{release}
|
2009-01-18 16:22:07 +00:00
|
|
|
%%_emacs_sitelispdir %{site_lisp}
|
|
|
|
%%_emacs_sitestartdir %{site_start_d}
|
2024-01-17 13:46:33 +00:00
|
|
|
%%_emacs_bytecompile(W) /usr/bin/emacs -batch --no-init-file --no-site-file --eval '(push nil load-path)' %%{-W:--eval '(setq byte-compile-error-on-warn t)' }-f batch-byte-compile %%*
|
2009-01-18 16:22:07 +00:00
|
|
|
EOF
|
|
|
|
|
2004-09-09 04:31:22 +00:00
|
|
|
%install
|
2023-09-24 20:38:47 +00:00
|
|
|
cd build-pgtk
|
2020-08-18 10:15:32 +00:00
|
|
|
%make_install
|
2010-03-30 00:01:45 +00:00
|
|
|
cd ..
|
2005-02-28 08:09:28 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# Let alternatives manage the symlink
|
2007-09-11 17:56:57 +00:00
|
|
|
rm %{buildroot}%{_bindir}/emacs
|
2010-08-19 14:29:36 +00:00
|
|
|
touch %{buildroot}%{_bindir}/emacs
|
2007-06-26 17:00:50 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# Do not compress the files which implement compression itself (#484830)
|
2009-10-14 12:18:40 +00:00
|
|
|
gunzip %{buildroot}%{_datadir}/emacs/%{version}/lisp/jka-compr.el.gz
|
|
|
|
gunzip %{buildroot}%{_datadir}/emacs/%{version}/lisp/jka-cmpr-hook.el.gz
|
|
|
|
|
2023-09-24 20:38:47 +00:00
|
|
|
# Install the emacs with GTK toolkit
|
|
|
|
install -p -m 0755 build-gtk+x11/src/emacs %{buildroot}%{_bindir}/emacs-%{version}-gtk+x11
|
|
|
|
|
|
|
|
# Install the emacs with Lucid toolkit
|
2017-07-14 20:18:20 +00:00
|
|
|
install -p -m 0755 build-lucid/src/emacs %{buildroot}%{_bindir}/emacs-%{version}-lucid
|
|
|
|
|
2023-09-24 20:58:28 +00:00
|
|
|
# Install the emacs without graphical display
|
|
|
|
install -p -m 0755 build-nw/src/emacs %{buildroot}%{_bindir}/emacs-%{version}-nw
|
|
|
|
ln -s emacs-%{version}-nw %{buildroot}%{_bindir}/emacs-%{version}-nox
|
|
|
|
ln -s emacs-nw %{buildroot}%{_bindir}/emacs-nox
|
2004-09-09 04:31:22 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# Make sure movemail isn't setgid
|
2007-09-11 17:56:57 +00:00
|
|
|
chmod 755 %{buildroot}%{emacs_libexecdir}/movemail
|
2007-06-26 17:00:50 +00:00
|
|
|
|
2007-09-11 17:56:57 +00:00
|
|
|
mkdir -p %{buildroot}%{site_lisp}
|
2020-04-16 19:59:20 +00:00
|
|
|
install -p -m 0644 %SOURCE5 %{buildroot}%{site_lisp}/site-start.el
|
|
|
|
install -p -m 0644 %SOURCE6 %{buildroot}%{site_lisp}
|
2007-06-26 17:00:50 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# This solves bz#474958, "update-directory-autoloads" now finally
|
|
|
|
# works the path is different each version, so we'll generate it here
|
2009-10-19 09:02:05 +00:00
|
|
|
echo "(setq source-directory \"%{_datadir}/emacs/%{version}/\")" \
|
|
|
|
>> %{buildroot}%{site_lisp}/site-start.el
|
|
|
|
|
2007-09-11 17:56:57 +00:00
|
|
|
mv %{buildroot}%{_bindir}/{etags,etags.emacs}
|
2012-01-20 15:35:22 +00:00
|
|
|
mv %{buildroot}%{_mandir}/man1/{ctags.1.gz,gctags.1.gz}
|
|
|
|
mv %{buildroot}%{_mandir}/man1/{etags.1.gz,etags.emacs.1.gz}
|
2007-09-11 17:56:57 +00:00
|
|
|
mv %{buildroot}%{_bindir}/{ctags,gctags}
|
2013-04-03 15:20:36 +00:00
|
|
|
# BZ 927996
|
|
|
|
mv %{buildroot}%{_infodir}/{info.info.gz,info.gz}
|
2004-09-09 04:31:22 +00:00
|
|
|
|
2007-09-11 17:56:57 +00:00
|
|
|
mkdir -p %{buildroot}%{site_lisp}/site-start.d
|
2004-09-09 04:31:22 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# Default initialization file
|
2007-09-11 17:56:57 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/skel
|
2020-04-16 19:59:20 +00:00
|
|
|
install -p -m 0644 %SOURCE4 %{buildroot}%{_sysconfdir}/skel/.emacs
|
2006-02-27 13:47:17 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# Install pkgconfig file
|
2007-09-11 17:56:57 +00:00
|
|
|
mkdir -p %{buildroot}/%{pkgconfig}
|
2009-05-18 11:02:30 +00:00
|
|
|
install -p -m 0644 emacs.pc %{buildroot}/%{pkgconfig}
|
2007-08-13 19:20:38 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# Install rpm macro definition file
|
2014-02-03 10:31:33 +00:00
|
|
|
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
|
|
|
|
install -p -m 0644 macros.emacs %{buildroot}%{_rpmconfigdir}/macros.d/
|
2009-01-18 16:22:07 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# Installing emacs-terminal binary
|
2020-04-16 19:59:20 +00:00
|
|
|
install -p -m 755 %SOURCE8 %{buildroot}%{_bindir}/emacs-terminal
|
2010-05-20 12:43:35 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# After everything is installed, remove info dir
|
2007-09-11 17:56:57 +00:00
|
|
|
rm -f %{buildroot}%{_infodir}/dir
|
2005-06-23 15:39:11 +00:00
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# Install desktop files
|
2010-05-20 12:43:35 +00:00
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
|
2020-04-16 19:59:20 +00:00
|
|
|
%SOURCE7
|
2008-04-23 14:48:36 +00:00
|
|
|
|
2023-09-24 20:38:47 +00:00
|
|
|
# Install a wrapper to avoid running the Wayland-only build on X11
|
|
|
|
install -p -m 0755 %SOURCE9 %{buildroot}%{_bindir}/emacs-desktop
|
|
|
|
|
2021-05-25 15:51:17 +00:00
|
|
|
# Remove duplicate desktop-related files
|
|
|
|
rm %{buildroot}%{_datadir}/%{name}/%{version}/etc/%{name}.{desktop,service}
|
|
|
|
|
2022-01-08 13:26:58 +00:00
|
|
|
# We don't ship the client variants yet
|
|
|
|
# https://src.fedoraproject.org/rpms/emacs/pull-request/12
|
|
|
|
rm %{buildroot}%{_datadir}/applications/emacsclient.desktop
|
|
|
|
rm %{buildroot}%{_datadir}/applications/emacsclient-mail.desktop
|
|
|
|
|
2004-09-09 04:31:22 +00:00
|
|
|
#
|
2011-01-11 09:06:06 +00:00
|
|
|
# Create file lists
|
2004-09-09 04:31:22 +00:00
|
|
|
#
|
2005-06-23 15:39:11 +00:00
|
|
|
rm -f *-filelist {common,el}-*-files
|
|
|
|
|
2004-09-09 04:36:23 +00:00
|
|
|
( TOPDIR=${PWD}
|
2007-09-11 17:56:57 +00:00
|
|
|
cd %{buildroot}
|
2004-09-09 04:31:22 +00:00
|
|
|
|
2023-04-14 22:19:42 +00:00
|
|
|
find .%{_datadir}/emacs/%{version}/lisp .%{site_lisp} \
|
|
|
|
\( -type f -name '*.elc' -fprint $TOPDIR/common-lisp-none-elc-files \) -o \( -type d -fprintf $TOPDIR/common-lisp-dir-files "%%%%dir %%p\n" \) -o \( -name '*.el.gz' -fprint $TOPDIR/el-bytecomped-files -o -fprint $TOPDIR/common-not-comped-files \)
|
2007-06-26 17:00:50 +00:00
|
|
|
|
|
|
|
)
|
2004-09-09 04:31:22 +00:00
|
|
|
|
2023-01-17 23:34:04 +00:00
|
|
|
# Sorted list of info files
|
2023-07-31 22:38:52 +00:00
|
|
|
%define info_files auth autotype bovine calc ccmode cl dbus dired-x ebrowse ede ediff edt efaq eglot eieio eintr elisp emacs-gnutls emacs-mime emacs epa erc ert eshell eudc eww flymake forms gnus htmlfontify idlwave ido mairix-el message mh-e modus-themes newsticker nxml-mode octave-mode org pcl-cvs pgg rcirc reftex remember sasl sc semantic ses sieve smtpmail speedbar srecode todo-mode tramp transient url use-package vhdl-mode vip viper vtable widget wisent woman
|
2023-01-17 23:34:04 +00:00
|
|
|
|
|
|
|
for info_f in %info_files; do
|
|
|
|
echo "%{_infodir}/${info_f}.info*" >> info-filelist
|
|
|
|
done
|
|
|
|
# info.gz is a rename of info.info.gz and thus needs special handling
|
|
|
|
echo "%{_infodir}/info*" >> info-filelist
|
|
|
|
|
2011-01-11 09:06:06 +00:00
|
|
|
# Put the lists together after filtering ./usr to /usr
|
2005-02-18 05:59:24 +00:00
|
|
|
sed -i -e "s|\.%{_prefix}|%{_prefix}|" *-files
|
2023-04-14 22:19:42 +00:00
|
|
|
grep -vhE '%{site_lisp}(|/(default\.el|site-start\.d|site-start\.el))$' {common,el}-*-files > common-filelist
|
2004-09-09 04:31:22 +00:00
|
|
|
|
2016-03-04 12:44:47 +00:00
|
|
|
# Remove old icon
|
|
|
|
rm %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/emacs-document23.svg
|
|
|
|
|
2022-01-08 13:26:58 +00:00
|
|
|
# Install all the pdmp with fingerprints
|
2023-09-24 20:38:47 +00:00
|
|
|
pgtk_pdmp="emacs-$(./build-pgtk/src/emacs --fingerprint 2>&1 | sed 's/.* //').pdmp"
|
|
|
|
install -p -m 0644 build-pgtk/src/emacs.pdmp %{buildroot}%{emacs_libexecdir}/${pgtk_pdmp}
|
|
|
|
|
|
|
|
gtkx11_pdmp="emacs-$(./build-gtk+x11/src/emacs --fingerprint 2>&1 | sed 's/.* //').pdmp"
|
|
|
|
install -p -m 0644 build-gtk+x11/src/emacs.pdmp %{buildroot}%{emacs_libexecdir}/${gtkx11_pdmp}
|
2022-01-08 13:26:58 +00:00
|
|
|
|
|
|
|
lucid_pdmp="emacs-$(./build-lucid/src/emacs --fingerprint 2>&1 | sed 's/.* //').pdmp"
|
|
|
|
install -p -m 0644 build-lucid/src/emacs.pdmp %{buildroot}%{emacs_libexecdir}/${lucid_pdmp}
|
|
|
|
|
2023-09-24 20:58:28 +00:00
|
|
|
nw_pdmp="emacs-$(./build-nw/src/emacs --fingerprint 2>&1 | sed 's/.* //').pdmp"
|
|
|
|
install -p -m 0644 build-nw/src/emacs.pdmp %{buildroot}%{emacs_libexecdir}/${nw_pdmp}
|
2022-01-08 13:26:58 +00:00
|
|
|
|
|
|
|
# Install native compiled Lisp of all builds
|
2023-09-24 20:38:47 +00:00
|
|
|
pgtk_comp_native_ver=$(ls -1 build-pgtk/native-lisp)
|
|
|
|
gtkx11_comp_native_ver=$(ls -1 build-gtk+x11/native-lisp)
|
2022-01-08 13:26:58 +00:00
|
|
|
lucid_comp_native_ver=$(ls -1 build-lucid/native-lisp)
|
2023-09-24 20:58:28 +00:00
|
|
|
nw_comp_native_ver=$(ls -1 build-nw/native-lisp)
|
2023-09-24 20:38:47 +00:00
|
|
|
cp -ar build-pgtk/native-lisp/${pgtk_comp_native_ver} %{buildroot}%{native_lisp}
|
|
|
|
cp -ar build-gtk+x11/native-lisp/${gtkx11_comp_native_ver} %{buildroot}%{native_lisp}
|
2022-01-08 13:26:58 +00:00
|
|
|
cp -ar build-lucid/native-lisp/${lucid_comp_native_ver} %{buildroot}%{native_lisp}
|
2023-09-24 20:58:28 +00:00
|
|
|
cp -ar build-nw/native-lisp/${nw_comp_native_ver} %{buildroot}%{native_lisp}
|
2022-01-08 13:26:58 +00:00
|
|
|
|
2023-01-17 23:36:03 +00:00
|
|
|
(TOPDIR=${PWD}
|
|
|
|
cd %{buildroot}
|
2023-09-24 20:38:47 +00:00
|
|
|
find .%{native_lisp}/${gtkx11_comp_native_ver} \( -type f -name '*eln' -fprintf $TOPDIR/gtk+x11-eln-filelist "%%%%attr(755,-,-) %%p\n" \) -o \( -type d -fprintf $TOPDIR/gtk+x11-dirs "%%%%dir %%p\n" \)
|
|
|
|
)
|
|
|
|
(TOPDIR=${PWD}
|
|
|
|
cd %{buildroot}
|
|
|
|
find .%{native_lisp}/${pgtk_comp_native_ver} \( -type f -name '*eln' -fprintf $TOPDIR/pgtk-eln-filelist "%%%%attr(755,-,-) %%p\n" \) -o \( -type d -fprintf $TOPDIR/pgtk-dirs "%%%%dir %%p\n" \)
|
2023-01-17 23:36:03 +00:00
|
|
|
)
|
|
|
|
(TOPDIR=${PWD}
|
|
|
|
cd %{buildroot}
|
|
|
|
find .%{native_lisp}/${lucid_comp_native_ver} \( -type f -name '*eln' -fprintf $TOPDIR/lucid-eln-filelist "%%%%attr(755,-,-) %%p\n" \) -o \( -type d -fprintf $TOPDIR/lucid-dirs "%%%%dir %%p\n" \)
|
|
|
|
)
|
|
|
|
(TOPDIR=${PWD}
|
|
|
|
cd %{buildroot}
|
2023-09-24 20:58:28 +00:00
|
|
|
find .%{native_lisp}/${nw_comp_native_ver} \( -type f -name '*eln' -fprintf $TOPDIR/nw-eln-filelist "%%%%attr(755,-,-) %%p\n" \) -o \( -type d -fprintf $TOPDIR/nw-dirs "%%%%dir %%p\n" \)
|
2023-01-17 23:36:03 +00:00
|
|
|
)
|
2023-09-24 20:38:47 +00:00
|
|
|
echo %{emacs_libexecdir}/${pgtk_pdmp} >> pgtk-eln-filelist
|
|
|
|
echo %{emacs_libexecdir}/${gtkx11_pdmp} >> gtk+x11-eln-filelist
|
2023-01-17 23:36:03 +00:00
|
|
|
echo %{emacs_libexecdir}/${lucid_pdmp} >> lucid-eln-filelist
|
2023-09-24 20:58:28 +00:00
|
|
|
echo %{emacs_libexecdir}/${nw_pdmp} >> nw-eln-filelist
|
2023-01-17 23:36:03 +00:00
|
|
|
|
|
|
|
# remove leading . from filelists
|
|
|
|
sed -i -e "s|\.%{native_lisp}|%{native_lisp}|" *-eln-filelist *-dirs
|
2022-01-08 13:26:58 +00:00
|
|
|
|
2022-12-01 14:38:00 +00:00
|
|
|
# remove exec permissions from eln files to prevent the debuginfo extractor from
|
|
|
|
# trying to extract debuginfo from them
|
|
|
|
find %{buildroot}%{_libdir}/ -name '*eln' -type f | xargs chmod -x
|
|
|
|
|
2023-01-27 14:38:19 +00:00
|
|
|
# ensure native files are newer than byte-code files
|
|
|
|
# see: https://bugzilla.redhat.com/show_bug.cgi?id=2157979#c11
|
|
|
|
find %{buildroot}%{_libdir}/ -name '*eln' -type f | xargs touch
|
|
|
|
|
2021-06-05 13:24:21 +00:00
|
|
|
%check
|
2022-01-08 13:26:58 +00:00
|
|
|
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/*.metainfo.xml
|
2021-06-05 13:24:21 +00:00
|
|
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop
|
|
|
|
|
2011-03-15 17:45:17 +00:00
|
|
|
%preun
|
2023-11-07 20:57:46 +00:00
|
|
|
/usr/sbin/alternatives --remove emacs %{_bindir}/emacs-%{version} || :
|
2009-03-04 17:33:41 +00:00
|
|
|
|
2011-03-15 17:45:17 +00:00
|
|
|
%posttrans
|
2023-11-07 20:57:46 +00:00
|
|
|
/usr/sbin/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version} 80 || :
|
2007-05-22 14:32:18 +00:00
|
|
|
|
2017-07-14 20:18:20 +00:00
|
|
|
%preun lucid
|
2023-11-07 20:57:46 +00:00
|
|
|
/usr/sbin/alternatives --remove emacs %{_bindir}/emacs-%{version}-lucid || :
|
|
|
|
/usr/sbin/alternatives --remove emacs-lucid %{_bindir}/emacs-%{version}-lucid || :
|
2017-07-14 20:18:20 +00:00
|
|
|
|
|
|
|
%posttrans lucid
|
2023-11-07 20:57:46 +00:00
|
|
|
/usr/sbin/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-lucid 70 || :
|
|
|
|
/usr/sbin/alternatives --install %{_bindir}/emacs-lucid emacs-lucid %{_bindir}/emacs-%{version}-lucid 60 || :
|
2017-07-14 20:18:20 +00:00
|
|
|
|
2023-09-24 20:38:47 +00:00
|
|
|
%preun gtk+x11
|
2023-11-07 20:57:46 +00:00
|
|
|
/usr/sbin/alternatives --remove emacs %{_bindir}/emacs-%{version}-gtk+x11 || :
|
|
|
|
/usr/sbin/alternatives --remove emacs-gtk+x11 %{_bindir}/emacs-%{version}-gtk+x11 || :
|
2023-09-24 20:38:47 +00:00
|
|
|
|
|
|
|
%posttrans gtk+x11
|
2023-11-07 20:57:46 +00:00
|
|
|
/usr/sbin/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-gtk+x11 75 || :
|
|
|
|
/usr/sbin/alternatives --install %{_bindir}/emacs-gtk+x11 emacs-gtk+x11 %{_bindir}/emacs-%{version}-gtk+x11 60 || :
|
2023-09-24 20:38:47 +00:00
|
|
|
|
2023-09-24 20:58:28 +00:00
|
|
|
%preun nw
|
2023-11-07 20:57:46 +00:00
|
|
|
/usr/sbin/alternatives --remove emacs %{_bindir}/emacs-%{version}-nw || :
|
|
|
|
/usr/sbin/alternatives --remove emacs-nw %{_bindir}/emacs-%{version}-nw || :
|
2011-03-15 17:45:17 +00:00
|
|
|
|
2023-09-24 20:58:28 +00:00
|
|
|
%posttrans nw
|
2023-11-07 20:57:46 +00:00
|
|
|
/usr/sbin/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-nw 70 || :
|
|
|
|
/usr/sbin/alternatives --install %{_bindir}/emacs-nw emacs-nw %{_bindir}/emacs-%{version}-nw 60 || :
|
2007-06-26 17:00:50 +00:00
|
|
|
|
2004-09-09 04:36:23 +00:00
|
|
|
%preun common
|
2023-11-07 20:57:46 +00:00
|
|
|
/usr/sbin/alternatives --remove emacs.etags %{_bindir}/etags.emacs || :
|
2004-09-09 04:31:22 +00:00
|
|
|
|
2007-11-19 19:47:05 +00:00
|
|
|
%posttrans common
|
2023-11-07 20:57:46 +00:00
|
|
|
/usr/sbin/alternatives --install %{_bindir}/etags emacs.etags %{_bindir}/etags.emacs 80 \
|
2021-06-13 17:34:51 +00:00
|
|
|
--slave %{_mandir}/man1/etags.1.gz emacs.etags.man %{_mandir}/man1/etags.emacs.1.gz || :
|
2007-11-19 19:47:05 +00:00
|
|
|
|
2023-09-24 20:38:47 +00:00
|
|
|
%files -f pgtk-eln-filelist -f pgtk-dirs
|
2004-09-09 04:36:23 +00:00
|
|
|
%{_bindir}/emacs-%{version}
|
2010-08-19 14:29:36 +00:00
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs
|
2023-09-24 20:38:47 +00:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnu.emacs.defaults.gschema.xml
|
|
|
|
|
|
|
|
%files gtk+x11 -f gtk+x11-eln-filelist -f gtk+x11-dirs
|
|
|
|
%{_bindir}/emacs-%{version}-gtk+x11
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs-gtk+x11
|
2009-05-18 11:02:30 +00:00
|
|
|
|
2023-01-17 23:36:03 +00:00
|
|
|
%files lucid -f lucid-eln-filelist -f lucid-dirs
|
2017-07-14 20:18:20 +00:00
|
|
|
%{_bindir}/emacs-%{version}-lucid
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs-lucid
|
|
|
|
|
2023-09-24 20:58:28 +00:00
|
|
|
%files nw -f nw-eln-filelist -f nw-dirs
|
- update to 21.4 movemail vulnerability release
- no longer need movemail-CAN-2005-0100.patch
- replace %{_bindir}/emacs alternatives with a wrapper script (Warren
Togami) to prevent it from disappearing when upgrading (Michal
Jaegermann, 154326)
- suffix the X emacs binaries with -x and the no X binaries with -nox
- the wrapper script %{_bindir}/emacs-%%version runs emacs-x if installed
or otherwise emacs-nox. %{_bindir}/emacs is a symlink to the wrapper
- make emacs and emacs-nox own the subdirs in %{_libexecdir}
- add a bunch of fixes from debian's emacs21_21.4a-1 patch:
battery-acpi-support.dpatch, bzero-and-have-stdlib.dpatch,
coding-region-leak.dpatch, detect-coding-iso2022.dpatch,
fix-batch-mode-signal-handling.dpatch, pcl-cvs-format.dpatch,
python-completion-ignored-extensions.dpatch,
remote-files-permissions.dpatch, save-buffer.dpatch,
scroll-margin.dpatch, xfree86-4.3-modifiers.dpatch
- add fix-x-vs-no-x-diffs.dpatch
- define emacs_libexecdir
- build both emacs and emacs-nox as %%{version}.1 and move common DOC file
to emacs-common
- suffix version in fns-%%{version}.1.el with -x and -nox respectively
- add 100 to elisp patches
2005-04-10 07:22:59 +00:00
|
|
|
%{_bindir}/emacs-%{version}-nox
|
2023-09-24 20:58:28 +00:00
|
|
|
%{_bindir}/emacs-%{version}-nw
|
|
|
|
%{_bindir}/emacs-nox
|
2014-08-18 09:00:54 +00:00
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs
|
2023-09-24 20:58:28 +00:00
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs-nw
|
2004-09-09 04:36:23 +00:00
|
|
|
|
2024-04-26 23:33:11 +00:00
|
|
|
%files -n emacsclient
|
|
|
|
%license etc/COPYING
|
|
|
|
%{_bindir}/emacsclient
|
|
|
|
%{_mandir}/man1/emacsclient.1*
|
|
|
|
|
2023-04-14 22:19:42 +00:00
|
|
|
%files common -f common-filelist -f info-filelist
|
2004-09-09 04:35:28 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/skel/.emacs
|
2014-02-03 10:31:33 +00:00
|
|
|
%{_rpmconfigdir}/macros.d/macros.emacs
|
2017-02-02 00:52:37 +00:00
|
|
|
%license etc/COPYING
|
|
|
|
%doc doc/NEWS BUGS README
|
2011-05-26 12:49:54 +00:00
|
|
|
%{_bindir}/ebrowse
|
2023-09-24 20:38:47 +00:00
|
|
|
%{_bindir}/emacs-desktop
|
2011-05-26 12:49:54 +00:00
|
|
|
%{_bindir}/etags.emacs
|
|
|
|
%{_bindir}/gctags
|
2023-04-10 20:36:11 +00:00
|
|
|
%{_datadir}/applications/emacs.desktop
|
|
|
|
%{_datadir}/applications/emacs-mail.desktop
|
|
|
|
%{_metainfodir}/%{name}.metainfo.xml
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/emacs.png
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/emacs.svg
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/emacs.ico
|
|
|
|
%{_datadir}/icons/hicolor/scalable/mimetypes/emacs-document.svg
|
2023-01-16 23:21:13 +00:00
|
|
|
%{_mandir}/man1/ebrowse.1*
|
|
|
|
%{_mandir}/man1/emacs.1*
|
|
|
|
%{_mandir}/man1/etags.emacs.1*
|
|
|
|
%{_mandir}/man1/gctags.1*
|
2004-09-09 04:35:28 +00:00
|
|
|
%dir %{_datadir}/emacs/%{version}
|
|
|
|
%{_datadir}/emacs/%{version}/etc
|
|
|
|
%{_datadir}/emacs/%{version}/site-lisp
|
2023-01-16 23:18:09 +00:00
|
|
|
%dir %{emacs_libexecdir}/
|
|
|
|
%{emacs_libexecdir}/movemail
|
|
|
|
%{emacs_libexecdir}/hexl
|
|
|
|
%{emacs_libexecdir}/rcs2log
|
2014-08-13 07:24:03 +00:00
|
|
|
%{_userunitdir}/emacs.service
|
2023-04-14 22:19:42 +00:00
|
|
|
%attr(0644,root,root) %config(noreplace) %{site_lisp}/default.el
|
|
|
|
%attr(0644,root,root) %config %{site_lisp}/site-start.el
|
2007-09-11 17:56:57 +00:00
|
|
|
%{pkgconfig}/emacs.pc
|
2004-09-09 04:31:22 +00:00
|
|
|
|
2010-08-03 14:55:47 +00:00
|
|
|
%files terminal
|
|
|
|
%{_bindir}/emacs-terminal
|
|
|
|
%{_datadir}/applications/emacs-terminal.desktop
|
|
|
|
|
2019-04-18 08:57:33 +00:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/emacs-module.h
|
|
|
|
|
2004-09-09 04:33:25 +00:00
|
|
|
%changelog
|
2023-09-24 20:03:37 +00:00
|
|
|
%autochangelog
|