From 575e1ccba7fa381dd507b4821812f53033e6deaa Mon Sep 17 00:00:00 2001 From: Bo Ren Date: Fri, 15 Jul 2022 14:34:36 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Bo Ren --- ansible-core.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/ansible-core.spec b/ansible-core.spec index 9a23b6f..140de76 100644 --- a/ansible-core.spec +++ b/ansible-core.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # We need this because we are no longer noarch, since our bundled deps might # conceivably need to compile arch-specific things. But we currently have no # useful debuginfo stuff. @@ -35,7 +36,7 @@ Name: ansible-core Summary: SSH-based configuration management, deployment, and task execution system Version: 2.12.2 -Release: 3.1%{?dist} +Release: 3.1%{anolis_release}%{?dist} ExcludeArch: i686 Group: Development/Libraries @@ -71,6 +72,8 @@ Provides: bundled(python-packaging) = %{packaging_version} Provides: bundled(python-pyparsing) = %{pyparsing_version} Provides: bundled(python-straightplugin) = %{straightplugin_version} +Provides: /usr/bin/ansible + BuildRequires: python38-devel # BuildRequires: python38-docutils BuildRequires: python38-jinja2 @@ -111,6 +114,14 @@ are transferred to managed machines automatically. This package installs the ansible-test command for testing modules and plugins developed for ansible. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q -T -b 2 -n packaging-ded06cedf6e20680eea0363fac894cb4a09e7831 %setup -q -T -b 3 -n pyparsing-6a844ee35ca5125490a28dbd6dd2d15b6498e605 @@ -193,7 +204,6 @@ cp -p lib/ansible_core.egg-info/PKG-INFO . %{_bindir}/ansible* %exclude %{_bindir}/ansible-test %config(noreplace) %{_sysconfdir}/ansible/ -%doc README.rst PKG-INFO COPYING # TODO(pabelanger): uncomment once we move back to tagged releases # %doc changelogs/CHANGELOG-v2.*.rst #%doc %{_mandir}/man1/ansible* @@ -205,7 +215,13 @@ cp -p lib/ansible_core.egg-info/PKG-INFO . %{_bindir}/ansible-test %{python38_sitelib}/ansible_test +%files doc +%doc README.rst PKG-INFO COPYING + %changelog +* Fri Jul 15 2022 Bo Ren - 2.12.2-3.1.0.1 +- Add doc sub package + * Thu Mar 10 2022 Dimitri Savineau - 2.12.2-3.1 - Rebuilt for rhel-8.6 -- Gitee