From e71f2970db9d9f5b36b5823dc243bcdbcd8c4441 Mon Sep 17 00:00:00 2001 From: HangBo Fan Date: Sun, 17 Jul 2022 16:07:42 +0800 Subject: [PATCH] spec: add doc sub package --- xmlrpc-c.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/xmlrpc-c.spec b/xmlrpc-c.spec index c47e021..ebba44c 100644 --- a/xmlrpc-c.spec +++ b/xmlrpc-c.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %global advanced_branch 1 # Upstream libxml2 backend is completely broken since 2015 @@ -6,7 +7,7 @@ Name: xmlrpc-c Version: 1.51.0 -Release: 6%{?dist} +Release: 6%{anolis_release}%{?dist} Summary: Lightweight RPC library based on XML and HTTP # See doc/COPYING for details. # The Python 1.5.2 license used by a few files is just BSD. @@ -49,6 +50,7 @@ BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(libcurl) BuildRequires: readline-devel BuildRequires: ncurses-devel +Requires: glibc %package c++ Summary: C++ libraries for xmlrpc-c @@ -125,6 +127,15 @@ to a remote server using HTTP, and gets back the response as XML. This package contains some handy XML-RPC demo applications. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + + %prep %autosetup -Sgit @@ -142,7 +153,6 @@ This package contains some handy XML-RPC demo applications. %files %license doc/COPYING lib/abyss/license.txt -%doc doc/CREDITS doc/HISTORY %if ! %{with libxml2} %{_libdir}/libxmlrpc_xml*.so.* %endif @@ -191,7 +201,13 @@ This package contains some handy XML-RPC demo applications. %{_bindir}/xmlrpc_pstream %{_bindir}/xmlrpc_dumpserver +%files doc +%doc doc/CREDITS doc/HISTORY + %changelog +* Sat Jul 16 2022 Hangbo Fan - 1.51.0-6.0.1 +- Add doc sub package + * Thu Mar 03 2022 Rob Crittenden - 1.51.0-6 - Add missing validation of encoding (CVE-2022-25235) (#2058114) -- Gitee