From 35f5db042268263e6ab45ca47360cd99a478a499 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Mon, 18 Jul 2022 09:46:23 +0800 Subject: [PATCH] Add doc sub package --- libasyncns.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/libasyncns.spec b/libasyncns.spec index 181bc48..b347a3f 100644 --- a/libasyncns.spec +++ b/libasyncns.spec @@ -1,6 +1,7 @@ +%define anolis_release .0.1 Name: libasyncns Version: 0.8 -Release: 14%{?dist} +Release: 14%{anolis_release}%{?dist} Summary: Asynchronous Name Service Library Group: System Environment/Libraries Source0: http://0pointer.de/lennart/projects/libasyncns/libasyncns-%{version}.tar.gz @@ -8,10 +9,21 @@ License: LGPLv2+ Url: http://0pointer.de/lennart/projects/libasyncns/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: glibc + %description A small and lightweight library that implements easy to use asynchronous wrappers around the libc NSS functions getaddrinfo(), res_query() and related. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name}. + %package devel Summary: Development Files for libasyncns Client Development Group: Development/Libraries @@ -42,9 +54,11 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) -%doc README LICENSE %{_libdir}/libasyncns.so.* +%files doc +%doc README LICENSE + %files devel %defattr(-,root,root) %{_includedir}/asyncns.h @@ -52,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/libasyncns.pc %changelog +* Mon Jul 17 2022 mgb01105731 - 0.8-14.0.1 +- Add doc sub package + * Wed Feb 07 2018 Fedora Release Engineering - 0.8-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee