From a68f4137f2d2c7ca7a992fe43c648a6a3f046145 Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Mon, 18 Jul 2022 17:42:16 +0800 Subject: [PATCH] spec: add doc sub package --- libdatrie.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/libdatrie.spec b/libdatrie.spec index 219ea47..7fee868 100644 --- a/libdatrie.spec +++ b/libdatrie.spec @@ -1,6 +1,7 @@ +%define anolis_release .0.1 Name: libdatrie Version: 0.2.9 -Release: 7%{?dist} +Release: 7%{anolis_release}%{?dist} Summary: Implementation of Double-Array structure for representing trie License: LGPLv2+ URL: http://linux.thai.net/projects/datrie @@ -27,6 +28,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release} This package contains libraries and header files for developing applications that use %{name}. +%package devel-doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name}-devel = %{version}-%{release} + + +%description devel-doc +Doc pages for %{name} + %prep %setup -q %patch0 -p1 -b .docs @@ -57,15 +67,20 @@ LD_LIBRARY_PATH=../datrie/.libs %make_build check %{_libdir}/libdatrie.so.* %files devel -%doc AUTHORS ChangeLog NEWS README* %{_includedir}/datrie/ %{_libdir}/libdatrie.so %{_libdir}/pkgconfig/datrie-0.2.pc %{_bindir}/trietool* %{_mandir}/man1/trietool* %{_pkgdocdir}-devel/*.{html,css,png,js} + +%files devel-doc +%doc AUTHORS ChangeLog NEWS README* %changelog +* Fri Jul 15 2022 Chang Gao - 0.2.9-7.0.1 +- Add doc sub package + * Wed Feb 07 2018 Fedora Release Engineering - 0.2.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee