public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mercurial] rawhide: Drop obsolete Emacs support (rhbz#2545926)
@ 2026-11-26 22:46 Mads Kiilerich
  0 siblings, 0 replies; only message in thread
From: Mads Kiilerich @ 2026-11-26 22:46 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/mercurial
Branch : rawhide
Commit : 4454402478bb364f9b2b619669a41867b6fadf45
Author : Mads Kiilerich <mads@kiilerich.com>
Date   : 2026-11-26T23:32:11+01:00
Stats  : +4/-28 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mercurial/c/4454402478bb364f9b2b619669a41867b6fadf45?branch=rawhide

Log:
Drop obsolete Emacs support (rhbz#2545926)

---
diff --git a/mercurial-site-start.el b/mercurial-site-start.el
deleted file mode 100644
index f169f95..0000000
--- a/mercurial-site-start.el
+++ /dev/null
@@ -1,7 +0,0 @@
-(autoload 'hg-mode "mercurial" "HG mode." t)
-(autoload 'hg-help-overview "mercurial" "HG help." t)
-
-(autoload 'mq-mode "mq"
-  "MQ mode for Mercurial repositories with an MQ patch queue." t)
-(autoload 'mq-edit-mode "mq"
-  "MQ edit mode for editing patch descriptions." t)

diff --git a/mercurial.spec b/mercurial.spec
index dc3c390..f74aac9 100644
--- a/mercurial.spec
+++ b/mercurial.spec
@@ -10,7 +10,7 @@
 Summary: A fast, lightweight Source Control Management system
 Name: mercurial
 Version: 7.2.4
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 # Release: 1.rc1%%{?dist}
 
@@ -20,14 +20,11 @@ Release: 1%{?dist}
 License: GPL-2.0-or-later
 URL: https://mercurial-scm.org/
 Source0: https://www.mercurial-scm.org/release/%{name}-%{upstreamversion}.tar.gz
-Source1: mercurial-site-start.el
 # Patch cargo metadata for dependency versions available in Fedora
 Patch0:  mercurial-rust-metadata.patch
 Patch1:  mercurial_without_TLSv1_2.patch
 
 BuildRequires: make
-BuildRequires: emacs-el
-BuildRequires: emacs-nox
 BuildRequires: gcc
 BuildRequires: gettext
 BuildRequires: pkgconfig
@@ -41,7 +38,6 @@ BuildRequires: rust-packaging
 %endif
 
 Provides: hg = %{version}-%{release}
-Requires: emacs-filesystem
 Provides: mercurial-rust = %{version}-%{release}
 Obsoletes: mercurial-rust < %{version}-%{release}
 
@@ -198,26 +194,12 @@ install -D -m 755 -pv rust/target/release/librusthg.so \
 install -D -m 755 contrib/hgk       %{buildroot}%{_libexecdir}/mercurial/hgk
 install -m 755 contrib/hg-ssh       %{buildroot}%{_bindir}
 
-mkdir -p %{buildroot}%{_emacs_sitelispdir}/mercurial
-
-pushd contrib
-for file in mercurial.el mq.el; do
-  #emacs -batch -l mercurial.el --no-site-file -f batch-byte-compile $file
-  %{_emacs_bytecompile} $file
-  install -p -m 644 $file ${file}c %{buildroot}%{_emacs_sitelispdir}/mercurial
-  rm ${file}c
-done
-popd
-
 pushd contrib/chg
 make install DESTDIR=%{buildroot} PREFIX=%{_prefix} MANDIR=%{_mandir}/man1
 popd
 
-
 mkdir -p %{buildroot}%{_sysconfdir}/mercurial/hgrc.d
 
-mkdir -p %{buildroot}%{_emacs_sitestartdir} && install -m644 %SOURCE1 %{buildroot}%{_emacs_sitestartdir}
-
 cat >hgk.rc <<EOF
 [extensions]
 # enable hgk extension ('hg help' shows 'view' as a command)
@@ -253,8 +235,6 @@ rm -rf %{buildroot}%{python3_sitearch}/mercurial/locale
 %{python3_sitearch}/hgext/
 %{python3_sitearch}/hgext3rd/
 %{python3_sitearch}/hgdemandimport/
-%{_emacs_sitelispdir}/mercurial
-%{_emacs_sitestartdir}/*.el
 %{_bindir}/hg
 %{_bindir}/hg-ssh
 
@@ -280,6 +260,9 @@ rm -rf %{buildroot}%{python3_sitearch}/mercurial/locale
 
 
 %changelog
+* Thu Nov 26 2026 Mads Kiilerich <mads@kiilerich.com> - 7.2.4-2
+- Drop obsolete Emacs support (rhbz#2545926)
+
 * Tue Aug 11 2026 Mads Kiilerich <mads@kiilerich.com> - 7.2.4-1
 - mercurial 7.2.4
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-26 22:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 22:46 [rpms/mercurial] rawhide: Drop obsolete Emacs support (rhbz#2545926) Mads Kiilerich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox