From b206ba30845d8eba4742ae7a2e10d253d2418dda Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Wed, 12 Oct 2022 14:53:19 +0800 Subject: [PATCH] add doc package --- xkeyboard-config.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/xkeyboard-config.spec b/xkeyboard-config.spec index 4517baf..a6cccc6 100644 --- a/xkeyboard-config.spec +++ b/xkeyboard-config.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global debug_package %{nil} Summary: X Keyboard Extension configuration data @@ -27,6 +27,14 @@ BuildRequires: git-core This package contains configuration data used by the X Keyboard Extension (XKB), which allows selection of keyboard layouts when using a graphical interface. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} @@ -59,15 +67,21 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/X11/xkb/compiled } %files -f files.list -f %{name}.lang -%doc AUTHORS README NEWS COPYING docs/README.* docs/HOWTO.* +%doc COPYING docs/README.* docs/HOWTO.* %{_mandir}/man7/xkeyboard-config.* %{_datadir}/X11/xkb/rules/xorg %{_datadir}/X11/xkb/rules/xorg.lst %{_datadir}/X11/xkb/rules/xorg.xml +%files doc +%doc AUTHORS README NEWS + %files devel %{_datadir}/pkgconfig/xkeyboard-config.pc %changelog +* Wed Oct 12 2022 mgb01105731 - 2.35.1-2 +- add doc package + * Tue Mar 8 2022 Liwei Ge - 2.35.1-1 - Init version from upstream v2.35.1 -- Gitee