From cbe299e3c2be819372e82619e187e2557c1a432b Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Thu, 29 Sep 2022 15:28:30 +0800 Subject: [PATCH] add doc package --- emacs.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/emacs.spec b/emacs.spec index b3bab5d..b187039 100644 --- a/emacs.spec +++ b/emacs.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global _hardened_build 1 # This file is encoded in UTF-8. -*- coding: utf-8 -*- @@ -146,6 +146,14 @@ without leaving the editor. This package contains all the common files needed by emacs, emacs-lucid or emacs-nox. +%package doc +Summary: Documentation files for %{name} +Requires: %{name}-common = %{epoch}:%{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %package terminal Summary: A desktop menu item for GNU Emacs terminal. Requires: emacs = %{epoch}:%{version}-%{release} @@ -436,7 +444,6 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop %config(noreplace) %{_sysconfdir}/skel/.emacs %{_rpmconfigdir}/macros.d/macros.emacs %license etc/COPYING -%doc doc/NEWS BUGS README %{_bindir}/ebrowse %{_bindir}/emacsclient %{_bindir}/etags.emacs @@ -452,6 +459,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop %attr(0644,root,root) %config %{_datadir}/emacs/site-lisp/site-start.el %{pkgconfig}/emacs.pc +%files doc +%doc doc/NEWS BUGS README + %files terminal %{_bindir}/emacs-terminal %{_datadir}/applications/emacs-terminal.desktop @@ -465,6 +475,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop %{_includedir}/emacs-module.h %changelog +* Thu Sep 29 2022 mgb01105731 - 1:27.2-2 +- add doc package + * Wed Mar 23 2022 Dan Čermák - 1:27.2-11 - Include upstream version of bundled glib cdefs.h, fixes rhbz#2045136 -- Gitee