From adf32cc1c520c7cda23b741be2ef9e3a6ef4e1a0 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Thu, 29 Sep 2022 10:31:27 +0800 Subject: [PATCH] add doc package --- gettext.spec | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/gettext.spec b/gettext.spec index d398d11..10344e6 100644 --- a/gettext.spec +++ b/gettext.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %bcond_with jar %bcond_with java @@ -85,6 +85,13 @@ library and tools for creating, using, and modifying natural language catalogs and is a powerful and simple method for internationalizing programs. +%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 common-devel Summary: Common development files for %{name} @@ -284,9 +291,7 @@ export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$PWD/gettext-tools/intl/.libs %ldconfig_scriptlets libs %files -f %{name}.lang -%doc AUTHORS gettext-runtime/BUGS -%doc COPYING gettext-tools/misc/DISCLAIM README -%doc NEWS THANKS +%doc COPYING gettext-tools/misc/DISCLAIM %doc gettext-runtime/man/*.1.html %doc gettext-runtime/intl/COPYING* %{_bindir}/envsubst @@ -326,6 +331,9 @@ export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$PWD/gettext-tools/intl/.libs %dir %{_datadir}/%{name}-%{tarversion} %{_datadir}/%{name}-%{tarversion}/its +%files doc +%doc AUTHORS gettext-runtime/BUGS README NEWS THANKS + %files common-devel %{_datadir}/%{name}/archive.*.tar.xz @@ -384,6 +392,9 @@ export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$PWD/gettext-tools/intl/.libs %{_mandir}/man1/msghack.1* %changelog +* Thu Sep 29 2022 mgb01105731 - 0.21-2 +- add doc package + * Wed Mar 09 2022 Hongwei Qin - 0.21-1 - gettext-0.21 is available - Init for Anolis OS 23 -- Gitee