From 4697ceba9348a2de14b07da24e9fab099d34835e Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 30 Sep 2022 14:52:43 +0800 Subject: [PATCH] add doc package --- sysfsutils.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/sysfsutils.spec b/sysfsutils.spec index 16452b7..5722187 100644 --- a/sysfsutils.spec +++ b/sysfsutils.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global so_major_version 2 %global so_minor_version 0 @@ -23,6 +23,14 @@ BuildRequires: gcc This package's purpose is to provide a set of utilities for interfacing with sysfs. +%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 -n libsysfs Summary: Shared library for interfacing with sysfs License: LGPLv2+ @@ -55,10 +63,13 @@ find %{buildroot} -type f -name "*.la" -delete %files %license COPYING cmd/GPL -%doc AUTHORS README CREDITS docs/libsysfs.txt +%doc CREDITS docs/libsysfs.txt %{_bindir}/systool %{_mandir}/man1/systool.1.gz +%files doc +%doc AUTHORS README + %files -n libsysfs %license COPYING lib/LGPL /%{_libdir}/libsysfs.so.%{so_major_version} @@ -73,5 +84,8 @@ find %{buildroot} -type f -name "*.la" -delete %changelog +* Fri Sep 30 2022 mgb01105731 - 2.1.1-2 +- add doc package + * Wed Mar 09 2022 Chunmei Xu - 2.1.1-1 - init from upstream 2.1.1 -- Gitee