From 0d262bbdde7b1109a051e720c3a1cce8e09cd223 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sun, 9 Oct 2022 10:45:58 +0800 Subject: [PATCH] add doc package --- libcbor.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/libcbor.spec b/libcbor.spec index 241ac46..48f43c6 100644 --- a/libcbor.spec +++ b/libcbor.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: libcbor Version: 0.7.0 Release: %{anolis_release}%{?dist} @@ -19,9 +19,17 @@ BuildRequires: make %description libcbor is a C library for parsing and generating CBOR. +%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 devel Summary: Development files for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel contains libraries and header files for %{name}. @@ -47,10 +55,12 @@ cp doc/build/man/* %{buildroot}%{_mandir}/man1 %files %license LICENSE.md -%doc README.md %{_libdir}/libcbor.so.0* %{_mandir}/man1/libcbor.1* +%files doc +%doc README.md + %files devel %{_includedir}/cbor.h %{_includedir}/cbor/*.h @@ -59,5 +69,8 @@ cp doc/build/man/* %{buildroot}%{_mandir}/man1 %{_libdir}/pkgconfig/libcbor.pc %changelog +* Sun Oct 09 2022 mgb01105731 - 0.7.0-2 +- add doc package + * Wed Mar 23 2022 Chunmei Xu - 0.7.0-1 - init from upstream 0.7.0 -- Gitee