|
|
@ -4,38 +4,35 @@
|
|
|
|
Summary: GNU Emacs text editor
|
|
|
|
Summary: GNU Emacs text editor
|
|
|
|
Name: emacs
|
|
|
|
Name: emacs
|
|
|
|
Epoch: 1
|
|
|
|
Epoch: 1
|
|
|
|
Version: 27.2
|
|
|
|
Version: 26.1
|
|
|
|
Release: 10%{?dist}
|
|
|
|
Release: 12%{?dist}
|
|
|
|
License: GPLv3+ and CC0-1.0
|
|
|
|
License: GPLv3+ and CC0-1.0
|
|
|
|
URL: http://www.gnu.org/software/emacs/
|
|
|
|
URL: http://www.gnu.org/software/emacs/
|
|
|
|
|
|
|
|
Group: Applications/Editors
|
|
|
|
Source0: https://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz
|
|
|
|
Source0: https://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz.sig
|
|
|
|
Source1: emacs.desktop
|
|
|
|
# generate the keyring via:
|
|
|
|
Source3: dotemacs.el
|
|
|
|
# wget https://ftp.gnu.org/gnu/gnu-keyring.gpg
|
|
|
|
Source4: site-start.el
|
|
|
|
# gpg2 --keyring ./gnu-keyring.gpg --armor --export E6C9029C363AD41D787A8EBB91C1262F01EB8D39 > gpgkey-E6C9029C363AD41D787A8EBB91C1262F01EB8D39.gpg
|
|
|
|
Source5: default.el
|
|
|
|
Source2: gpgkey-E6C9029C363AD41D787A8EBB91C1262F01EB8D39.gpg
|
|
|
|
|
|
|
|
Source3: emacs.desktop
|
|
|
|
|
|
|
|
Source4: dotemacs.el
|
|
|
|
|
|
|
|
Source5: site-start.el
|
|
|
|
|
|
|
|
Source6: default.el
|
|
|
|
|
|
|
|
# Emacs Terminal Mode, #551949, #617355
|
|
|
|
# Emacs Terminal Mode, #551949, #617355
|
|
|
|
Source7: emacs-terminal.desktop
|
|
|
|
Source6: emacs-terminal.desktop
|
|
|
|
Source8: emacs-terminal.sh
|
|
|
|
Source7: emacs-terminal.sh
|
|
|
|
Source9: emacs.service
|
|
|
|
Source8: emacs.service
|
|
|
|
Source10: %{name}.appdata.xml
|
|
|
|
Source9: %{name}.appdata.xml
|
|
|
|
|
|
|
|
# rhbz#1810729
|
|
|
|
|
|
|
|
Source10: package-keyring.gpg
|
|
|
|
# rhbz#713600
|
|
|
|
# rhbz#713600
|
|
|
|
Patch1: emacs-spellchecker.patch
|
|
|
|
Patch1: emacs-spellchecker.patch
|
|
|
|
Patch2: emacs-system-crypto-policies.patch
|
|
|
|
Patch2: emacs-system-crypto-policies.patch
|
|
|
|
Patch3: emacs-glibc-2.34.patch
|
|
|
|
Patch3: emacs-ctags-local-command-execute-vulnerability.patch
|
|
|
|
Patch4: emacs-ctags-local-command-execute-vulnerability.patch
|
|
|
|
Patch4: emacs-mh-rmail-nonempty-dir.patch
|
|
|
|
Patch5: emacs-64KB-page-size-for-pdump.patch
|
|
|
|
Patch5: emacs-etags-local-command-injection-vulnerability.patch
|
|
|
|
Patch6: emacs-etags-local-command-injection-vulnerability.patch
|
|
|
|
Patch6: emacs-htmlfontify-command-injection-vulnerability.patch
|
|
|
|
Patch7: emacs-htmlfontify-command-injection-vulnerability.patch
|
|
|
|
Patch7: emacs-ob-latex-command-injection-vulnerability.patch
|
|
|
|
Patch8: emacs-ruby-mode-local-command-injection-vulnerability.patch
|
|
|
|
Patch8: emacs-consider-org-file-contents-unsafe.patch
|
|
|
|
Patch9: emacs-ob-latex-command-injection-vulnerability.patch
|
|
|
|
Patch9: emacs-org-link-expand-abbrev-unsafe-elisp.patch
|
|
|
|
Patch10: emacs-org-link-expand-abbrev-unsafe-elisp.patch
|
|
|
|
Patch10: emacs-mark-contents-untrusted.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
BuildRequires: atk-devel
|
|
|
|
BuildRequires: atk-devel
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: freetype-devel
|
|
|
|
BuildRequires: freetype-devel
|
|
|
@ -61,33 +58,26 @@ BuildRequires: librsvg2-devel
|
|
|
|
BuildRequires: m17n-lib-devel
|
|
|
|
BuildRequires: m17n-lib-devel
|
|
|
|
BuildRequires: libotf-devel
|
|
|
|
BuildRequires: libotf-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
|
|
|
|
BuildRequires: GConf2-devel
|
|
|
|
BuildRequires: alsa-lib-devel
|
|
|
|
BuildRequires: alsa-lib-devel
|
|
|
|
BuildRequires: gpm-devel
|
|
|
|
BuildRequires: gpm-devel
|
|
|
|
BuildRequires: liblockfile-devel
|
|
|
|
BuildRequires: liblockfile-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
|
|
|
BuildRequires: bzip2
|
|
|
|
BuildRequires: bzip2
|
|
|
|
BuildRequires: cairo
|
|
|
|
BuildRequires: cairo
|
|
|
|
BuildRequires: texinfo
|
|
|
|
BuildRequires: texinfo
|
|
|
|
BuildRequires: gzip
|
|
|
|
BuildRequires: gzip
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: libacl-devel
|
|
|
|
BuildRequires: libacl-devel
|
|
|
|
BuildRequires: harfbuzz-devel
|
|
|
|
|
|
|
|
BuildRequires: jansson-devel
|
|
|
|
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# For lucid
|
|
|
|
# For lucid
|
|
|
|
BuildRequires: Xaw3d-devel
|
|
|
|
BuildRequires: Xaw3d-devel
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch %{ix86}
|
|
|
|
%ifarch %{ix86}
|
|
|
|
BuildRequires: util-linux
|
|
|
|
BuildRequires: util-linux
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Emacs doesn't run without dejavu-sans-mono-fonts, rhbz#732422
|
|
|
|
# Emacs doesn't run without dejavu-sans-mono-fonts, rhbz#732422
|
|
|
|
Requires: desktop-file-utils
|
|
|
|
Requires: desktop-file-utils
|
|
|
@ -113,6 +103,7 @@ This package provides an emacs binary with support for X windows.
|
|
|
|
|
|
|
|
|
|
|
|
%package lucid
|
|
|
|
%package lucid
|
|
|
|
Summary: GNU Emacs text editor with LUCID toolkit X support
|
|
|
|
Summary: GNU Emacs text editor with LUCID toolkit X support
|
|
|
|
|
|
|
|
Group: Applications/Editors
|
|
|
|
Requires(preun): %{_sbindir}/alternatives
|
|
|
|
Requires(preun): %{_sbindir}/alternatives
|
|
|
|
Requires(posttrans): %{_sbindir}/alternatives
|
|
|
|
Requires(posttrans): %{_sbindir}/alternatives
|
|
|
|
Requires: emacs-common = %{epoch}:%{version}-%{release}
|
|
|
|
Requires: emacs-common = %{epoch}:%{version}-%{release}
|
|
|
@ -129,6 +120,7 @@ using LUCID toolkit.
|
|
|
|
|
|
|
|
|
|
|
|
%package nox
|
|
|
|
%package nox
|
|
|
|
Summary: GNU Emacs text editor without X support
|
|
|
|
Summary: GNU Emacs text editor without X support
|
|
|
|
|
|
|
|
Group: Applications/Editors
|
|
|
|
Requires(preun): %{_sbindir}/alternatives
|
|
|
|
Requires(preun): %{_sbindir}/alternatives
|
|
|
|
Requires(posttrans): %{_sbindir}/alternatives
|
|
|
|
Requires(posttrans): %{_sbindir}/alternatives
|
|
|
|
Requires: emacs-common = %{epoch}:%{version}-%{release}
|
|
|
|
Requires: emacs-common = %{epoch}:%{version}-%{release}
|
|
|
@ -148,8 +140,11 @@ Summary: Emacs common files
|
|
|
|
# The entire source code is GPLv3+ except lib-src/etags.c which is
|
|
|
|
# The entire source code is GPLv3+ except lib-src/etags.c which is
|
|
|
|
# also BSD. Manual (info) is GFDL.
|
|
|
|
# also BSD. Manual (info) is GFDL.
|
|
|
|
License: GPLv3+ and GFDL and BSD
|
|
|
|
License: GPLv3+ and GFDL and BSD
|
|
|
|
|
|
|
|
Group: Applications/Editors
|
|
|
|
|
|
|
|
Requires(preun): /sbin/install-info
|
|
|
|
Requires(preun): %{_sbindir}/alternatives
|
|
|
|
Requires(preun): %{_sbindir}/alternatives
|
|
|
|
Requires(posttrans): %{_sbindir}/alternatives
|
|
|
|
Requires(posttrans): %{_sbindir}/alternatives
|
|
|
|
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
Requires: %{name}-filesystem = %{epoch}:%{version}-%{release}
|
|
|
|
Requires: %{name}-filesystem = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: %{name}-el = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: %{name}-el = %{epoch}:%{version}-%{release}
|
|
|
|
Obsoletes: emacs-el < 1:24.3-29
|
|
|
|
Obsoletes: emacs-el < 1:24.3-29
|
|
|
@ -165,6 +160,7 @@ or emacs-nox.
|
|
|
|
|
|
|
|
|
|
|
|
%package terminal
|
|
|
|
%package terminal
|
|
|
|
Summary: A desktop menu item for GNU Emacs terminal.
|
|
|
|
Summary: A desktop menu item for GNU Emacs terminal.
|
|
|
|
|
|
|
|
Group: Applications/Editors
|
|
|
|
Requires: emacs = %{epoch}:%{version}-%{release}
|
|
|
|
Requires: emacs = %{epoch}:%{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
@ -177,36 +173,33 @@ removed when another terminal becomes capable of handling Malayalam.
|
|
|
|
|
|
|
|
|
|
|
|
%package filesystem
|
|
|
|
%package filesystem
|
|
|
|
Summary: Emacs filesystem layout
|
|
|
|
Summary: Emacs filesystem layout
|
|
|
|
|
|
|
|
Group: Applications/Editors
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description filesystem
|
|
|
|
%description filesystem
|
|
|
|
This package provides some directories which are required by other
|
|
|
|
This package provides some directories which are required by other
|
|
|
|
packages that add functionality to Emacs.
|
|
|
|
packages that add functionality to Emacs.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
|
|
|
Summary: Development header files for Emacs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
|
|
|
Development header files for Emacs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%patch1 -p1 -b .spellchecker
|
|
|
|
%patch1 -p1 -b .spellchecker
|
|
|
|
%patch2 -p1 -b .system-crypto-policies
|
|
|
|
%patch2 -p1 -b .system-crypto-policies
|
|
|
|
%patch3 -p1 -b .glibc2.34
|
|
|
|
%patch3 -p1 -b .ctags-local-command-execute-vulnerability
|
|
|
|
%patch4 -p1 -b .ctags-local-command-execute-vulnerability
|
|
|
|
%patch4 -p1 -b .mh-rmail-nonempty-dir.patch
|
|
|
|
%patch5 -p1 -b .64KB-page-size-for-pdump
|
|
|
|
%patch5 -p1 -b .etags-local-command-injection-vulnerability
|
|
|
|
%patch6 -p1 -b .etags-local-command-injection-vulnerability
|
|
|
|
%patch6 -p1 -b .htmlfontify-command-injection-vulnerability
|
|
|
|
%patch7 -p1 -b .htmlfontify-command-injection-vulnerability
|
|
|
|
%patch7 -p1 -b .ob-latex-command-injection-vulnerability
|
|
|
|
%patch8 -p1 -b .ruby-mode-local-command-injection-vulnerability
|
|
|
|
%patch8 -p1 -b .consider-org-file-contents-unsafe
|
|
|
|
%patch9 -p1 -b .ob-latex-command-injection-vulnerability
|
|
|
|
%patch9 -p1 -b .org-link-expand-abbrev-unsafe-elisp
|
|
|
|
%patch10 -p1 -b .org-link-expand-abbrev-unsafe-elisp
|
|
|
|
%patch10 -p1 -b .mark-contents-untrusted
|
|
|
|
autoconf
|
|
|
|
autoconf
|
|
|
|
|
|
|
|
|
|
|
|
# We prefer our emacs.desktop file
|
|
|
|
# We prefer our emacs.desktop file
|
|
|
|
cp %SOURCE3 etc/emacs.desktop
|
|
|
|
cp %SOURCE1 etc/emacs.desktop
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GPG key for GNU ELPA packages backported from Emacs 26.3 (#1810729)
|
|
|
|
|
|
|
|
cp %SOURCE10 etc/package-keyring.gpg
|
|
|
|
|
|
|
|
|
|
|
|
grep -v "tetris.elc" lisp/Makefile.in > lisp/Makefile.in.new \
|
|
|
|
grep -v "tetris.elc" lisp/Makefile.in > lisp/Makefile.in.new \
|
|
|
|
&& mv lisp/Makefile.in.new lisp/Makefile.in
|
|
|
|
&& mv lisp/Makefile.in.new lisp/Makefile.in
|
|
|
@ -246,8 +239,8 @@ ln -s ../../%{name}/%{version}/etc/NEWS doc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
export CFLAGS="-DMAIL_USE_LOCKF %{build_cflags}"
|
|
|
|
export CFLAGS="-DMAIL_USE_LOCKF $RPM_OPT_FLAGS"
|
|
|
|
%set_build_flags
|
|
|
|
export LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now -fpie"
|
|
|
|
|
|
|
|
|
|
|
|
# Build GTK+ binary
|
|
|
|
# Build GTK+ binary
|
|
|
|
mkdir build-gtk && cd build-gtk
|
|
|
|
mkdir build-gtk && cd build-gtk
|
|
|
@ -255,9 +248,9 @@ ln -s ../configure .
|
|
|
|
|
|
|
|
|
|
|
|
%configure --with-dbus --with-gif --with-jpeg --with-png --with-rsvg \
|
|
|
|
%configure --with-dbus --with-gif --with-jpeg --with-png --with-rsvg \
|
|
|
|
--with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no \
|
|
|
|
--with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no \
|
|
|
|
--with-modules --with-harfbuzz --with-cairo --with-json
|
|
|
|
--with-modules
|
|
|
|
make bootstrap
|
|
|
|
make bootstrap
|
|
|
|
%{setarch} %make_build
|
|
|
|
%{setarch} make %{?_smp_mflags}
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
|
|
# Build Lucid binary
|
|
|
|
# Build Lucid binary
|
|
|
@ -266,16 +259,16 @@ ln -s ../configure .
|
|
|
|
|
|
|
|
|
|
|
|
%configure --with-dbus --with-gif --with-jpeg --with-png --with-rsvg \
|
|
|
|
%configure --with-dbus --with-gif --with-jpeg --with-png --with-rsvg \
|
|
|
|
--with-tiff --with-xft --with-xpm --with-x-toolkit=lucid --with-gpm=no \
|
|
|
|
--with-tiff --with-xft --with-xpm --with-x-toolkit=lucid --with-gpm=no \
|
|
|
|
--with-modules --with-harfbuzz --with-cairo --with-json
|
|
|
|
--with-modules
|
|
|
|
make bootstrap
|
|
|
|
make bootstrap
|
|
|
|
%{setarch} %make_build
|
|
|
|
%{setarch} make %{?_smp_mflags}
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
|
|
# Build binary without X support
|
|
|
|
# Build binary without X support
|
|
|
|
mkdir build-nox && cd build-nox
|
|
|
|
mkdir build-nox && cd build-nox
|
|
|
|
ln -s ../configure .
|
|
|
|
ln -s ../configure .
|
|
|
|
%configure --with-x=no --with-modules --with-json
|
|
|
|
%configure --with-x=no --with-modules
|
|
|
|
%{setarch} %make_build
|
|
|
|
%{setarch} make %{?_smp_mflags}
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
|
|
# Remove versioned file so that we end up with .1 suffix and only one DOC file
|
|
|
|
# Remove versioned file so that we end up with .1 suffix and only one DOC file
|
|
|
@ -303,37 +296,29 @@ EOF
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
cd build-gtk
|
|
|
|
cd build-gtk
|
|
|
|
%make_install
|
|
|
|
make install INSTALL="%{__install} -p" DESTDIR=%{buildroot}
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
|
|
# Let alternatives manage the symlink
|
|
|
|
# Let alternatives manage the symlink
|
|
|
|
rm %{buildroot}%{_bindir}/emacs
|
|
|
|
rm %{buildroot}%{_bindir}/emacs
|
|
|
|
touch %{buildroot}%{_bindir}/emacs
|
|
|
|
touch %{buildroot}%{_bindir}/emacs
|
|
|
|
|
|
|
|
|
|
|
|
# Remove emacs.pdmp from common
|
|
|
|
|
|
|
|
rm %{buildroot}%{emacs_libexecdir}/emacs.pdmp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Do not compress the files which implement compression itself (#484830)
|
|
|
|
# Do not compress the files which implement compression itself (#484830)
|
|
|
|
gunzip %{buildroot}%{_datadir}/emacs/%{version}/lisp/jka-compr.el.gz
|
|
|
|
gunzip %{buildroot}%{_datadir}/emacs/%{version}/lisp/jka-compr.el.gz
|
|
|
|
gunzip %{buildroot}%{_datadir}/emacs/%{version}/lisp/jka-cmpr-hook.el.gz
|
|
|
|
gunzip %{buildroot}%{_datadir}/emacs/%{version}/lisp/jka-cmpr-hook.el.gz
|
|
|
|
|
|
|
|
|
|
|
|
# Install emacs.pdmp of the emacs with GTK+
|
|
|
|
|
|
|
|
install -p -m 0644 build-gtk/src/emacs.pdmp %{buildroot}%{_bindir}/emacs-%{version}.pdmp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install the emacs with LUCID toolkit
|
|
|
|
# Install the emacs with LUCID toolkit
|
|
|
|
install -p -m 0755 build-lucid/src/emacs %{buildroot}%{_bindir}/emacs-%{version}-lucid
|
|
|
|
install -p -m 0755 build-lucid/src/emacs %{buildroot}%{_bindir}/emacs-%{version}-lucid
|
|
|
|
install -p -m 0644 build-lucid/src/emacs.pdmp %{buildroot}%{_bindir}/emacs-%{version}-lucid.pdmp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install the emacs without X
|
|
|
|
# Install the emacs without X
|
|
|
|
install -p -m 0755 build-nox/src/emacs %{buildroot}%{_bindir}/emacs-%{version}-nox
|
|
|
|
install -p -m 0755 build-nox/src/emacs %{buildroot}%{_bindir}/emacs-%{version}-nox
|
|
|
|
install -p -m 0644 build-nox/src/emacs.pdmp %{buildroot}%{_bindir}/emacs-%{version}-nox.pdmp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Make sure movemail isn't setgid
|
|
|
|
# Make sure movemail isn't setgid
|
|
|
|
chmod 755 %{buildroot}%{emacs_libexecdir}/movemail
|
|
|
|
chmod 755 %{buildroot}%{emacs_libexecdir}/movemail
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{site_lisp}
|
|
|
|
mkdir -p %{buildroot}%{site_lisp}
|
|
|
|
install -p -m 0644 %SOURCE5 %{buildroot}%{site_lisp}/site-start.el
|
|
|
|
install -p -m 0644 %SOURCE4 %{buildroot}%{site_lisp}/site-start.el
|
|
|
|
install -p -m 0644 %SOURCE6 %{buildroot}%{site_lisp}
|
|
|
|
install -p -m 0644 %SOURCE5 %{buildroot}%{site_lisp}
|
|
|
|
|
|
|
|
|
|
|
|
# This solves bz#474958, "update-directory-autoloads" now finally
|
|
|
|
# This solves bz#474958, "update-directory-autoloads" now finally
|
|
|
|
# works the path is different each version, so we'll generate it here
|
|
|
|
# works the path is different each version, so we'll generate it here
|
|
|
@ -351,7 +336,7 @@ mkdir -p %{buildroot}%{site_lisp}/site-start.d
|
|
|
|
|
|
|
|
|
|
|
|
# Default initialization file
|
|
|
|
# Default initialization file
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/skel
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/skel
|
|
|
|
install -p -m 0644 %SOURCE4 %{buildroot}%{_sysconfdir}/skel/.emacs
|
|
|
|
install -p -m 0644 %SOURCE3 %{buildroot}%{_sysconfdir}/skel/.emacs
|
|
|
|
|
|
|
|
|
|
|
|
# Install pkgconfig file
|
|
|
|
# Install pkgconfig file
|
|
|
|
mkdir -p %{buildroot}/%{pkgconfig}
|
|
|
|
mkdir -p %{buildroot}/%{pkgconfig}
|
|
|
@ -359,32 +344,30 @@ install -p -m 0644 emacs.pc %{buildroot}/%{pkgconfig}
|
|
|
|
|
|
|
|
|
|
|
|
# Install app data
|
|
|
|
# Install app data
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/appdata
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/appdata
|
|
|
|
cp -a %SOURCE10 %{buildroot}/%{_datadir}/appdata
|
|
|
|
cp -a %SOURCE9 %{buildroot}/%{_datadir}/appdata
|
|
|
|
# Upstream ships its own appdata file, but it's quite terse.
|
|
|
|
|
|
|
|
rm %{buildroot}/%{_datadir}/metainfo/emacs.appdata.xml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install rpm macro definition file
|
|
|
|
# Install rpm macro definition file
|
|
|
|
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
|
|
|
|
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
|
|
|
|
install -p -m 0644 macros.emacs %{buildroot}%{_rpmconfigdir}/macros.d/
|
|
|
|
install -p -m 0644 macros.emacs %{buildroot}%{_rpmconfigdir}/macros.d/
|
|
|
|
|
|
|
|
|
|
|
|
# Installing emacs-terminal binary
|
|
|
|
# Installing emacs-terminal binary
|
|
|
|
install -p -m 755 %SOURCE8 %{buildroot}%{_bindir}/emacs-terminal
|
|
|
|
install -p -m 755 %SOURCE7 %{buildroot}%{_bindir}/emacs-terminal
|
|
|
|
|
|
|
|
|
|
|
|
# After everything is installed, remove info dir
|
|
|
|
# After everything is installed, remove info dir
|
|
|
|
rm -f %{buildroot}%{_infodir}/dir
|
|
|
|
rm -f %{buildroot}%{_infodir}/dir
|
|
|
|
|
|
|
|
|
|
|
|
# Installing service file
|
|
|
|
# Installing service file
|
|
|
|
mkdir -p %{buildroot}%{_userunitdir}
|
|
|
|
mkdir -p %{buildroot}%{_userunitdir}
|
|
|
|
install -p -m 0644 %SOURCE9 %{buildroot}%{_userunitdir}/emacs.service
|
|
|
|
install -p -m 0644 %SOURCE8 %{buildroot}%{_userunitdir}/emacs.service
|
|
|
|
# Emacs 26.1 installs the upstream unit file to /usr/lib64 on 64bit archs, we don't want that
|
|
|
|
# Emacs 26.1 installs the upstream unit file to /usr/lib64 on 64bit archs, we don't want that
|
|
|
|
rm -f %{buildroot}/usr/lib64/systemd/user/emacs.service
|
|
|
|
rm -f %{buildroot}/usr/lib64/systemd/user/emacs.service
|
|
|
|
|
|
|
|
|
|
|
|
# Install desktop files
|
|
|
|
# Install desktop files
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
|
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
|
|
|
|
%SOURCE3
|
|
|
|
%SOURCE1
|
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
|
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
|
|
|
|
%SOURCE7
|
|
|
|
%SOURCE6
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Create file lists
|
|
|
|
# Create file lists
|
|
|
@ -430,8 +413,18 @@ rm %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/emacs-document23.svg
|
|
|
|
%{_sbindir}/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-nox 70
|
|
|
|
%{_sbindir}/alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-nox 70
|
|
|
|
%{_sbindir}/alternatives --install %{_bindir}/emacs-nox emacs-nox %{_bindir}/emacs-%{version}-nox 60
|
|
|
|
%{_sbindir}/alternatives --install %{_bindir}/emacs-nox emacs-nox %{_bindir}/emacs-%{version}-nox 60
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post common
|
|
|
|
|
|
|
|
for f in %{info_files}; do
|
|
|
|
|
|
|
|
/sbin/install-info %{_infodir}/$f.info.gz %{_infodir}/dir 2> /dev/null || :
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%preun common
|
|
|
|
%preun common
|
|
|
|
%{_sbindir}/alternatives --remove emacs.etags %{_bindir}/etags.emacs
|
|
|
|
%{_sbindir}/alternatives --remove emacs.etags %{_bindir}/etags.emacs
|
|
|
|
|
|
|
|
if [ "$1" = 0 ]; then
|
|
|
|
|
|
|
|
for f in %{info_files}; do
|
|
|
|
|
|
|
|
/sbin/install-info --delete %{_infodir}/$f.info.gz %{_infodir}/dir 2> /dev/null || :
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%posttrans common
|
|
|
|
%posttrans common
|
|
|
|
%{_sbindir}/alternatives --install %{_bindir}/etags emacs.etags %{_bindir}/etags.emacs 80 \
|
|
|
|
%{_sbindir}/alternatives --install %{_bindir}/etags emacs.etags %{_bindir}/etags.emacs 80 \
|
|
|
@ -439,24 +432,20 @@ rm %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/emacs-document23.svg
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%{_bindir}/emacs-%{version}
|
|
|
|
%{_bindir}/emacs-%{version}
|
|
|
|
%{_bindir}/emacs-%{version}.pdmp
|
|
|
|
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs
|
|
|
|
%{_datadir}/applications/emacs.desktop
|
|
|
|
%{_datadir}/applications/emacs.desktop
|
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/emacs.png
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/emacs.png
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/emacs.svg
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/emacs.svg
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/emacs.ico
|
|
|
|
|
|
|
|
%{_datadir}/icons/hicolor/scalable/mimetypes/emacs-document.svg
|
|
|
|
%{_datadir}/icons/hicolor/scalable/mimetypes/emacs-document.svg
|
|
|
|
|
|
|
|
|
|
|
|
%files lucid
|
|
|
|
%files lucid
|
|
|
|
%{_bindir}/emacs-%{version}-lucid
|
|
|
|
%{_bindir}/emacs-%{version}-lucid
|
|
|
|
%{_bindir}/emacs-%{version}-lucid.pdmp
|
|
|
|
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs-lucid
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs-lucid
|
|
|
|
|
|
|
|
|
|
|
|
%files nox
|
|
|
|
%files nox
|
|
|
|
%{_bindir}/emacs-%{version}-nox
|
|
|
|
%{_bindir}/emacs-%{version}-nox
|
|
|
|
%{_bindir}/emacs-%{version}-nox.pdmp
|
|
|
|
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs-nox
|
|
|
|
%attr(0755,-,-) %ghost %{_bindir}/emacs-nox
|
|
|
|
|
|
|
|
|
|
|
@ -489,97 +478,47 @@ rm %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/emacs-document23.svg
|
|
|
|
%dir %{_datadir}/emacs/site-lisp
|
|
|
|
%dir %{_datadir}/emacs/site-lisp
|
|
|
|
%dir %{_datadir}/emacs/site-lisp/site-start.d
|
|
|
|
%dir %{_datadir}/emacs/site-lisp/site-start.d
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%{_includedir}/emacs-module.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Aug 23 2024 Jacek Migacz <jmigacz@redhat.com> - 1:27.2-10
|
|
|
|
* Fri Aug 23 2024 Jacek Migacz <jmigacz@redhat.com> - 1:26.1-12
|
|
|
|
|
|
|
|
- org-file-contents: Consider all remote files unsafe (CVE-2024-30205)
|
|
|
|
- org-link-expand-abbrev: Do not evaluate arbitrary unsafe Elisp code (CVE-2024-39331)
|
|
|
|
- org-link-expand-abbrev: Do not evaluate arbitrary unsafe Elisp code (CVE-2024-39331)
|
|
|
|
- Disable xwidgets (RHEL-33447)
|
|
|
|
- Make Gnus treats inline MIME contents as untrusted (CVE-2024-30203)
|
|
|
|
|
|
|
|
- Disable xwidgets (RHEL-14549)
|
|
|
|
* Sun Apr 02 2023 Jacek Migacz <jmigacz@redhat.com> - 1:27.2-9
|
|
|
|
|
|
|
|
- Fix etags local command injection vulnerability (#2175190)
|
|
|
|
|
|
|
|
- Fix htmlfontify.el command injection vulnerability (#2175179)
|
|
|
|
|
|
|
|
- Fix ruby-mode.el local command injection vulnerability (#2175142)
|
|
|
|
|
|
|
|
- Fix ob-latex.el command injection vulnerability (#2180590)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 10 2023 Jacek Migacz <jmigacz@redhat.com> - 1:27.2-8
|
|
|
|
|
|
|
|
- Use a 64KB page size for pdump (#1979804)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 04 2023 Jacek Migacz <jmigacz@redhat.com> - 1:27.2-7
|
|
|
|
* Tue Jul 25 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1:26.1-11
|
|
|
|
- Fix ctags local command execute vulnerability (#2149387)
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 22 2021 Jacek Migacz <jmigacz@redhat.com> - 1:27.2-6
|
|
|
|
* Wed Apr 12 2023 Jacek Migacz <jmigacz@redhat.com> - 1:26.1-11
|
|
|
|
- Adapt hardening options from _hardened_build macro (#2006856)
|
|
|
|
- Bump version
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 18 2021 Jacek Migacz <jmigacz@redhat.com> - 1:27.2-5
|
|
|
|
* Fri Apr 7 2023 Jacek Migacz <jmigacz@redhat.com> - 1:26.1-10
|
|
|
|
- Provide gating.yaml for CI (#1975151)
|
|
|
|
- Fix etags local command injection vulnerability (#2175189)
|
|
|
|
|
|
|
|
- Fix htmlfontify.el command injection vulnerability (#2175178)
|
|
|
|
|
|
|
|
- Fix ob-latex.el command injection vulnerability (#2180587)
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Jacek Migacz <jmigacz@redhat.com> - 1:27.2-4
|
|
|
|
* Tue Jan 10 2023 Jacek Migacz <jmigacz@redhat.com> - 1:26.1-9
|
|
|
|
- Fix FTBFS with glibc 2.34 (#1975151)
|
|
|
|
- Fix MH-E mail composition with GNU Mailutils (#1991156)
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:27.2-3
|
|
|
|
* Thu Jan 05 2023 Jacek Migacz <jmigacz@redhat.com> - 1:26.1-8
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Fix ctags local command execute vulnerability (#2149386)
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1:27.2-2
|
|
|
|
* Thu Aug 5 2021 Jacek Migacz <jmigacz@redhat.com> - 1:26.1-7
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- provide gating.yaml for CI
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Mar 27 2021 Bhavin Gandhi <bhavin7392@gmail.com> - 1:27.2-1
|
|
|
|
* Mon Jul 19 2021 Jacek Migacz <jmigacz@redhat.com> - 1:26.1-6
|
|
|
|
- emacs-27.2 is available
|
|
|
|
- a new GPG key for GNU ELPA packages (#1810729)
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:27.1-3
|
|
|
|
* Mon Sep 10 2018 Jan Synáček <jsynacek@redhat.com> - 1:26.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- review annocheck distro flag failures (#1624109)
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 18 2020 Jan Synáček <jsynacek@redhat.com> - 1:27.1-2
|
|
|
|
* Tue Aug 14 2018 Jan Synáček <jsynacek@redhat.com> - 1:26.1-4
|
|
|
|
- use make macros (original patch provided by Tom Stellard)
|
|
|
|
- remove ImageMagick dependency (#1564992)
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 11 2020 Bhavin Gandhi <bhavin7392@gmail.com> - 1:27.1-1
|
|
|
|
* Mon Aug 13 2018 Jan Synáček <jsynacek@redhat.com> - 1:26.1-3
|
|
|
|
- emacs-27.1 is available (#1867841)
|
|
|
|
|
|
|
|
- Add systemd-devel to support Type=notify in unit file
|
|
|
|
|
|
|
|
- Build with Cairo and Jansson support
|
|
|
|
|
|
|
|
- Remove ImageMagick dependency as it's no longer used
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:26.3-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 16 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 1:26.3-3
|
|
|
|
|
|
|
|
- Drop dependency on GConf2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:26.3-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Sep 08 2019 Maximiliano Sandoval <msandoval@protonmail.com> - 1:26.3-1
|
|
|
|
|
|
|
|
- emacs-26.3 is available (#1747101)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:26.2-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 17 2019 Jan Synáček <jsynacek@redhat.com> - 1:26.2-1
|
|
|
|
|
|
|
|
- emacs-26.2 is available (#1699434)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:26.1-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 28 2018 Michael Cronenworth <mike@cchtml.com> - 1:26.1-7
|
|
|
|
|
|
|
|
- Rebuild for new ImageMagick 6.9.10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 13 2018 Jan Synáček <jsynacek@redhat.com> - 1:26.1-6
|
|
|
|
|
|
|
|
- remove python dependencies, emacs*.py have not been there for a while
|
|
|
|
- remove python dependencies, emacs*.py have not been there for a while
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:26.1-5
|
|
|
|
* Mon Jun 18 2018 Jan Synáček <jsynacek@redhat.com> - 1:26.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
- remove build dependency on python2 (#1591707)
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1:26.1-4
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 26 2018 Jan Synáček <jsynacek@redhat.com> - 1:26.1-3
|
|
|
|
|
|
|
|
- Refix: Emacs crashes when loading color fonts (#1519038)
|
|
|
|
|
|
|
|
+ emacs SIGABRT after XProtocolError on displaying an email in Gnus (#1591223)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1:26.1-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 30 2018 Jan Synáček <jsynacek@redhat.com> - 1:26.1-1
|
|
|
|
* Wed May 30 2018 Jan Synáček <jsynacek@redhat.com> - 1:26.1-1
|
|
|
|
- emacs-26.1 is available (#1583433)
|
|
|
|
- emacs-26.1 is available (#1583433)
|
|
|
|