From 55c03c83ae3e5ede49dba80aee4582918c823764 Mon Sep 17 00:00:00 2001 From: Bo Ren Date: Fri, 15 Jul 2022 14:34:36 +0800 Subject: [PATCH] add doc sub package --- ansible-core.spec | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/ansible-core.spec b/ansible-core.spec index 07024e2..ed70fe7 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: 4%{?dist} +Release: 4%{anolis_release}%{?dist} ExcludeArch: i686 Group: Development/Libraries @@ -73,6 +74,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 @@ -113,6 +116,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 @@ -196,7 +207,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* @@ -208,10 +218,16 @@ 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 -* Tue Jul 19 2022 Dimitri Savineau - 2.12.2-4 +* Tue Jul 19 2022 Dimitri Savineau - 2.12.2-4.0.1 - fix facts delegation loop overwrite (rhbz#2109263) +* 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