From 7a09dc5ddedfab981c2c16b80a9730e29b83af55 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sun, 9 Oct 2022 14:27:04 +0800 Subject: [PATCH] add doc package --- satyr.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/satyr.spec b/satyr.spec index e204c60..6fc62f4 100644 --- a/satyr.spec +++ b/satyr.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: satyr Version: 0.39 @@ -38,6 +38,14 @@ potentially sensitive data to eliminate the need for review before submission. Included is a tool that can create microreports and perform some basic operations on them. +%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 libraries for %{name} Requires: %{name} = %{version}-%{release} @@ -69,16 +77,19 @@ Python 3 bindings for %{name}. find %{buildroot} -name "*.la" -delete +rm -f %{buildroot}%{_docdir}/%{name}/README.md %check make check %files %license COPYING -%doc README.md NEWS %{_bindir}/satyr %{_mandir}/man1/%{name}.1* %{_libdir}/lib*.so.* +%files doc +%doc README.md NEWS + %files devel %doc apidoc/html/*.{html,png,css,js} %{_includedir}/* @@ -90,5 +101,8 @@ make check %{python3_sitearch}/%{name}/* %changelog +* Sun Oct 09 2022 mgb01105731 - 0.39-2 +- add doc package + * Fri Apr 15 2022 happy_orange - 0.39-1 - Init package from upstream -- Gitee