From 3a56fd8a00d7f0fc80dc82bbf87209b25f83649d2346299553a07fa4faa0a40e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= Date: Sat, 3 Aug 2024 16:42:37 +0000 Subject: [PATCH] - 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=. OBS-URL: https://build.opensuse.org/package/show/editors/emacs-compat?expand=0&rev=10 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + 0001-Add-install-target.patch | 77 +++++++++++++++++++++++++++++++++++ _service | 18 ++++++++ compat-29.1.4.5.tar.gz | 3 ++ compat-30.0.0.0.tar.gz | 3 ++ emacs-compat.changes | 63 ++++++++++++++++++++++++++++ emacs-compat.spec | 61 +++++++++++++++++++++++++++ 8 files changed, 249 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0001-Add-install-target.patch create mode 100644 _service create mode 100644 compat-29.1.4.5.tar.gz create mode 100644 compat-30.0.0.0.tar.gz create mode 100644 emacs-compat.changes create mode 100644 emacs-compat.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0001-Add-install-target.patch b/0001-Add-install-target.patch new file mode 100644 index 0000000..9f75317 --- /dev/null +++ b/0001-Add-install-target.patch @@ -0,0 +1,77 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= +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 +--- + 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: diff --git a/_service b/_service new file mode 100644 index 0000000..612bb78 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + + @PARENT_TAG@ + https://github.com/emacs-compat/compat.git + compat + git + @PARENT_TAG@ + enable + Björn Bidar <bjorn.bidar@thaodan.de> + + + + *.tar + gz + + + diff --git a/compat-29.1.4.5.tar.gz b/compat-29.1.4.5.tar.gz new file mode 100644 index 0000000..70dd026 --- /dev/null +++ b/compat-29.1.4.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aee63dc89c4b9db4cd1126abf2432e4f3c1ecb297e18159efb11ebe796d678a7 +size 132891 diff --git a/compat-30.0.0.0.tar.gz b/compat-30.0.0.0.tar.gz new file mode 100644 index 0000000..eaaf401 --- /dev/null +++ b/compat-30.0.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54ea97e2d97e955253c40de0bb537fe4d90d19d9ccee204fabf8d58ae77cec72 +size 143002 diff --git a/emacs-compat.changes b/emacs-compat.changes new file mode 100644 index 0000000..c2cef57 --- /dev/null +++ b/emacs-compat.changes @@ -0,0 +1,63 @@ +------------------------------------------------------------------- +Sat Aug 03 16:23:59 UTC 2024 - Björn Bidar + +- 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 + +- 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 + +- 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 + +- 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 + +- 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= + diff --git a/emacs-compat.spec b/emacs-compat.spec new file mode 100644 index 0000000..68f00aa --- /dev/null +++ b/emacs-compat.spec @@ -0,0 +1,61 @@ +# +# spec file for package emacs-compat +# +# Copyright (c) 2024 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 +# 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 + +%check + +%files +%doc README.md +%license COPYING +%{_emacs_sitelispdir}/%{_name}*.el* +%{_infodir}/%{_name}* + +%changelog