- Remove patch to fix TexInfo references in manual as hit has been merged

upstream
  * 0002-compat.texi-Fix-references-to-Emacs-30.1-in-Support-.patch
- Update 0001-Add-install-target.patch to also install compat-macs.el
- Update to version 30.1.0.1:
  * compat-28: Fix 'named-let's TCO involving short-circuiting 'and'
- Update to version 30.1.0.0
  * compat-tests--color-approx-equal: Fix naming convention
  * compat-30: Add oklab color functions
  * compat-tests: Reenable disabled tests
- Update to version 30.0.2.0
  * compat-30: Rename trusted-content variable
- Update to version 30.0.1.0
  * compat-30: untrusted-content, trusted-files, trusted-content-p
  * compat-tests: Temporarily disable require-with-check test on 30
  * compat-30: Update require-with-check
  * compat.texi: Fix replace-string-in-region documentation (Fix gh#emacs-compat/compat#52)
  * compat.texi: Fix references to Emacs 30.1 in Support section (gh#emacs-compat/compat#49)
  * fix(compat.el): Package-Requires "seq" = 2.3 -> 2.23 (gh#emacs-compat/compat#31)

OBS-URL: https://build.opensuse.org/package/show/editors/emacs-compat?expand=0&rev=15
This commit is contained in:
Björn Bidar
2025-08-04 21:41:08 +00:00
committed by Git OBS Bridge
commit 21b7ce4b15
9 changed files with 347 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,82 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@thaodan.de>
Date: Wed, 27 Sep 2023 00:25:31 +0300
Subject: [PATCH] Add install target
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
---
Makefile | 33 +++++++++++++++++++++++++++++++--
1 file changed, 31 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index d584bc3f78f00d559200c144e8a62bb84c4fd385..5a065652a1be0b1be38607ee11dcef23ed03415b 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@
### Code:
.POSIX:
-.PHONY: all compile force-compile test clean check
+.PHONY: all compile force-compile test clean check install
.SUFFIXES: .el .elc
ifeq ($(CI),true)
@@ -37,18 +37,31 @@ ifeq ($(CI),true)
else
STRICT =
endif
+DESTDIR ?=
+PREFIX ?= /usr
+DATADIR ?= $(PREFIX)/share
+ELDIR ?= $(DATADIR)/emacs/site-lisp
+INFODIR ?= $(DATADIR)/info
EMACS = emacs
MAKEINFO = makeinfo
-BYTEC = compat-25.elc \
+GZIP = gzip
+INSTALL_INFO = install-info
+RUNTIME = compat-25.elc \
compat-26.elc \
compat-27.elc \
compat-28.elc \
compat-29.elc \
compat-30.elc \
compat.elc \
+ compat.elc
+DEVELOPMENT = \
compat-macs.elc \
compat-tests.elc
+BYTEC = $(RUNTIME) \
+ $(DEVELOPMENT) \
+INFOS = compat.info
+
all: compile
@@ -80,6 +93,22 @@ check:
sort | uniq > /tmp/compat-links
@diff /tmp/compat-defs /tmp/compat-links
+install: $(addprefix install-,compat-runtime-el compat-info)
+
+install-compat-runtime-el: $(RUNTIME) $(RUNTIME:.elc=.el) compat-macs.el
+
+install-compat-info: compat.info
+
+install-%-el:
+ $(if $<, install -m755 -d $(DESTDIR)$(ELDIR))
+ $(if $<, install -m644 $^ $(DESTDIR)$(ELDIR))
+
+install-%-info:
+ $(if $<, install -m755 -d $(DESTDIR)$(INFODIR))
+ $(if $<, $(INSTALL_INFO) --info-file=$< --info-dir=$(DESTDIR)$(INFODIR))
+ $(if $<, install -m644 $^ $(DESTDIR)$(INFODIR))
+ $(if $<, $(GZIP) -9nf $(DESTDIR)$(INFODIR)/$<)
+
$(BYTEC): compat-macs.el
.el.elc:

View File

@@ -0,0 +1,36 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@thaodan.de>
Date: Sat, 3 Aug 2024 20:03:38 +0300
Subject: [PATCH] compat.texi: Fix references to Emacs 30.1 in Support section
Fixes:
makeinfo compat.texi
compat.texi:2251: warning: node `Emacs 30.1' is next for `Emacs 29.1' in sectioning but not in menu
compat.texi:3316: warning: node `Emacs 29.1' is prev for `Emacs 30.1' in sectioning but not in menu
compat.texi:3316: warning: node `Support' is up for `Emacs 30.1' in sectioning but not in menu
compat.texi:300: node `Support' lacks menu item for `Emacs 30.1' despite being its Up target
make: *** [Makefile:116: compat.info] Error 1
---
compat.texi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/compat.texi b/compat.texi
index 41725d03bd2f8fd6065d0293b34ec0d390a54353..b7bb45c809b785927d4367a024fc746e4eda5242 100644
--- a/compat.texi
+++ b/compat.texi
@@ -74,6 +74,7 @@ Support
* Emacs 27.1:: Compatibility support for Emacs 27.1
* Emacs 28.1:: Compatibility support for Emacs 28.1
* Emacs 29.1:: Compatibility support for Emacs 29.1
+* Emacs 30.1:: Compatibility support for Emacs 30.1
@end detailmenu
@end menu
@@ -309,6 +310,7 @@ manage to provide for each Emacs version.
* Emacs 27.1:: Compatibility support for Emacs 27.1
* Emacs 28.1:: Compatibility support for Emacs 28.1
* Emacs 29.1:: Compatibility support for Emacs 29.1
+* Emacs 30.1:: Compatibility support for Emacs 30.1
@end menu
@node Emacs 25.1

18
_service Normal file
View File

@@ -0,0 +1,18 @@
<!-- -*- xml -*- !-->
<services>
<service name="obs_scm" mode="manual">
<param name="versionformat">@PARENT_TAG@</param>
<param name="url">https://github.com/emacs-compat/compat.git</param>
<param name="filename">compat</param>
<param name="scm">git</param>
<param name="revision">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">Björn Bidar &#60;bjorn.bidar@thaodan.de&#62;</param>
</service>
<service mode="manual" name="tar" />
<service mode="manual" name="recompress">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="manual"/>
</services>

3
compat-29.1.4.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aee63dc89c4b9db4cd1126abf2432e4f3c1ecb297e18159efb11ebe796d678a7
size 132891

3
compat-30.0.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:54ea97e2d97e955253c40de0bb537fe4d90d19d9ccee204fabf8d58ae77cec72
size 143002

102
emacs-compat.changes Normal file
View File

@@ -0,0 +1,102 @@
-------------------------------------------------------------------
Mon Aug 04 19:13:12 UTC 2025 - Björn Kettunen <bjorn.kettunen@thaodan.de>
- Remove patch to fix TexInfo references in manual as hit has been merged
upstream
* 0002-compat.texi-Fix-references-to-Emacs-30.1-in-Support-.patch
- Update 0001-Add-install-target.patch to also install compat-macs.el
- Update to version 30.1.0.1:
* compat-28: Fix 'named-let's TCO involving short-circuiting 'and'
- Update to version 30.1.0.0
* compat-tests--color-approx-equal: Fix naming convention
* compat-30: Add oklab color functions
* compat-tests: Reenable disabled tests
- Update to version 30.0.2.0
* compat-30: Rename trusted-content variable
- Update to version 30.0.1.0
* compat-30: untrusted-content, trusted-files, trusted-content-p
* compat-tests: Temporarily disable require-with-check test on 30
* compat-30: Update require-with-check
* compat.texi: Fix replace-string-in-region documentation (Fix gh#emacs-compat/compat#52)
* compat.texi: Fix references to Emacs 30.1 in Support section (gh#emacs-compat/compat#49)
-------------------------------------------------------------------
Thu Jan 9 12:13:53 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Install also compat-mac.el as native compilation search for it
-------------------------------------------------------------------
Sat Aug 3 17:21:16 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de>
- Add back the install_info macro's for Leap, info triggers
are not old enough for Leap
- Add patch to fix Texinfo references inside the manual:
0002-compat.texi-Fix-references-to-Emacs-30.1-in-Support-.patch
-------------------------------------------------------------------
Sat Aug 03 16:23:59 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de>
- Remove use deprecated install_info macro's
- Rebase 0001-Add-install-target.patch against new upstream version
- Update to version 30.0.0.0:
* compat-28: Mark =subr-native-elisp-p= as obsolete (renamed in Emacs 30).
* compat-30: New function =char-to-name=.
* compat-30: New function =obarray-clear=.
* compat-30: New function =interpreted-function-p=.
* compat-30: New function =primitive-function-p=.
* compat-30: New function =closurep=.
* compat-30: Add extended function =sort= with keyword arguments.
* compat-30: New function =value<=.
* compat-30: Add extended =copy-tree= with support for copying records with
non-nil optional second argument.
* compat-30: New macro =static-if=.
* compat-30: New alias =drop=.
* compat-30: New function =merge-ordered-lists=.
* compat-30: New variables =completion-lazy-hilit= and =completion-lazy-hilit-fn=
and new function =completion-lazy-hilit=.
* compat-30: New function =require-with-check=.
* compat-30: New functions =find-buffer= and =get-truename-buffer=.
* compat-30: Add extended =completion-metadata-get= with support for
=completion-category-overrides= and =completion-extra-properties=.
-------------------------------------------------------------------
Mon Mar 25 18:10:17 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de>
- Update to version 29.1.4.5:
* Update NEWS.org
* compat-tests: Fix compat-thing-at-mouse test
* Use https links everywhere
* compat.texi: Use @dfn{Extended Definitions}
* NEWS: Mention addition of compat.el to Emacs
* compat.texi: Update manual after the inclusion of compat.el in Emacs
* compat-tests: Fix commentary linter warnings
* compat-tests: Use should-equal
* compat--maybe-require: Rename macro to reduce churn
-------------------------------------------------------------------
Mon Feb 26 21:13:02 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de>
- Depend on emacs-devel to make sure Emacs packaging macros are installed when not building with emacs-eln
-------------------------------------------------------------------
Wed Jan 31 08:10:11 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de>
- Update to version 29.1.4.4:
* The maintainer field accepts only a single mail address
* fix(compat.el): Package-Requires "seq" = 2.3 -> 2.23 (gh#emacs-compat/compat#31)
* compat.texi: Fix typos
-------------------------------------------------------------------
Wed Sep 27 19:41:20 UTC 2023 - Björn Bidar <bjorn.bidar@thaodan.de>
- Initial packaging for OpenSuSE
- Include patch to add install targets to upstream makefiles
- Compat 29.1.4.2
* compat-28: Improve =make-separator-line= visuals on graphic displays
* compat-28: Add =native-comp-available-p=, which always returns nil
* compat-29: Add variable =lisp-directory=

79
emacs-compat.spec Normal file
View File

@@ -0,0 +1,79 @@
#
# spec file for package emacs-compat
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 Björn Kettunen
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global _name compat
%bcond_with check
Name: emacs-%{_name}
Version: 30.1.0.1
Release: 0
Summary: COMPATibility Library for Emacs Lisp
License: GPL-3.0-or-later
Group: Productivity/Text/Editors
URL: https://github.com/emacs-compat/compat
Source0: %{_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: emacs-devel
BuildRequires: emacs-nox
BuildRequires: info
BuildRequires: make
BuildRequires: makeinfo
Requires: emacs
Supplements: emacs
%if 0%{?suse_version} <= 1600
Requires(post): %install_info_prereq
Requires(preun): %install_info_prereq
%endif
# PATCH-FEATURE-UPSTREAM install targets PR 30
Patch1: 0001-Add-install-target.patch
%description
compat.el, the forwards-compatibility library for (GNU) Emacs Lisp, versions 24.4 and newer. The intended audience are package developers that are interested in using newer developments, without having to break compatibility.
%prep
%autosetup -p1 -n %{_name}-%{version}
%build
%make_build
%install
%make_install
%if %{with check}
%check
%make_build check
%make_build test
%endif
%if 0%{?suse_version} >= 1600
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{_name}.info.gz
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{_name}.info.gz
%endif
%files
%doc README.md
%license COPYING
%{_emacs_sitelispdir}/%{_name}*.el*
%{_infodir}/%{_name}*
%changelog