From 496e52e1e9c79e88023862c6dae515ceae64ac1b Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sun, 9 Oct 2022 17:22:15 +0800 Subject: [PATCH] add doc package --- libdatrie.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/libdatrie.spec b/libdatrie.spec index d13200b..7c4bc7f 100644 --- a/libdatrie.spec +++ b/libdatrie.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: libdatrie Version: 0.2.13 Release: %{anolis_release}%{?dist} @@ -23,12 +23,20 @@ Details of the implementation: http://linux.thai.net/~thep/datrie/datrie.html %package devel Summary: Development files for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} %description devel This package contains libraries and header files for developing applications that use %{name}. +%package doc +Summary: Documentation files for %{name} +Requires: %{name}-devel = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -q @@ -56,7 +64,6 @@ 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 @@ -64,7 +71,13 @@ LD_LIBRARY_PATH=../datrie/.libs %make_build check %{_mandir}/man1/trietool* %{_pkgdocdir}-devel/*.{html,css,png,js,svg} +%files doc +%doc AUTHORS ChangeLog NEWS README* + %changelog +* Sun Oct 09 2022 mgb01105731 - 0.2.13-2 +- add doc package + * Sat Apr 02 2022 mgb01105731 - 0.2.13-1 - Init from upstream version 0.2.13 -- Gitee