emacs-compat/emacs-compat.spec
Martin Pluskal cd0b56f5c2 Accepting request 1142979 from home:Thaodan:emacs
I want to add this package to submit further packages that depend on this package such as Jinx.

OBS-URL: https://build.opensuse.org/request/show/1142979
OBS-URL: https://build.opensuse.org/package/show/editors/emacs-compat?expand=0&rev=1
2024-01-31 10:44:18 +00:00

54 lines
1.3 KiB
RPMSpec

#
# spec file for package emacs-compat
#
# Copyright (c) 2024 Björn Bidar
%global _name compat
Name: emacs-%{_name}
Version: 29.1.4.4
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-nox
BuildRequires: make
BuildRequires: makeinfo
BuildRequires: info
Requires: emacs
Supplements: emacs
Requires(post): %{install_info_prereq}
Requires(preun):%{install_info_prereq}
# 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
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{_name}.info.gz
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{_name}.info.gz
%files
%doc README.md
%license COPYING
%{_emacs_sitelispdir}/%{_name}*.el*
%{_infodir}/%{_name}*
%changelog