Avoid logs in *Async-native-compile-log* buffer

OBS-URL: https://build.opensuse.org/package/show/editors/emacs-compat?expand=0&rev=13
This commit is contained in:
Dr. Werner Fink 2025-01-09 12:20:24 +00:00 committed by Git OBS Bridge
commit f71ad8a813
9 changed files with 313 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,77 @@
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 | 34 ++++++++++++++++++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 3f298c9cd5f991fa394749215e4ec3665434ad9a..9d368d669d3f1d21486ed93bf3ac77c1625adde8 100644
--- a/Makefile
+++ b/Makefile
@@ -29,20 +29,34 @@
### Code:
.POSIX:
-.PHONY: all compile force-compile test clean check
+.PHONY: all compile force-compile test clean check install
.SUFFIXES: .el .elc
+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
@@ -74,6 +88,22 @@ check:
sort | uniq > /tmp/compat-links
@ (diff /tmp/compat-defs /tmp/compat-defs)
+install: $(addprefix install-,compat-runtime-el compat-info)
+
+install-compat-runtime-el: $(RUNTIME) $(RUNTIME:.elc=.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="disabled">
<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="disabled" name="tar" />
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="disabled"/>
</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

76
emacs-compat.changes Normal file
View File

@ -0,0 +1,76 @@
-------------------------------------------------------------------
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 (#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=

76
emacs-compat.spec Normal file
View File

@ -0,0 +1,76 @@
#
# spec file for package emacs-compat
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024 Björn Bidar
#
# 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
Name: emacs-%{_name}
Version: 30.0.0.0
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
# # PATCH-FEATURE-UPSTREAM Fix Texinfo references PR 49
Patch2: 0002-compat.texi-Fix-references-to-Emacs-30.1-in-Support-.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
install -m 0644 compat-macs.el %{buildroot}%{_emacs_sitelispdir}
%check
%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