From 1551b8600c032c1c504aa582fdf46098aeb503ef Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Tue, 18 Oct 2022 10:18:43 +0800 Subject: [PATCH] optimise spec file & add doc package --- os-prober.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/os-prober.spec b/os-prober.spec index eca42e0..23449c6 100644 --- a/os-prober.spec +++ b/os-prober.spec @@ -1,6 +1,7 @@ +%define anolis_release 2 Name: os-prober Version: 1.79 -Release: 1%{?dist} +Release: %{anolis_release}%{?dist} Summary: Probes disks on the system for installed operating systems License: GPLv2+ and GPL+ @@ -15,6 +16,14 @@ This package detects other OSes available on a system and outputs the results in a generic machine-readable format. Support for new OSes and Linux distributions can be added easily. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %autosetup -n %{name} @@ -53,15 +62,23 @@ if [ "$ARCH" = x86 ]; then %{buildroot}%{_libexecdir}/os-probes/mounted fi +%generate_compatibility_deps + %files -%doc README TODO debian/changelog +%dir %{abidir} %license debian/copyright %{_bindir}/* +%{abidir}/*-option.list %{_libexecdir}/* %{_datadir}/%{name} %{_var}/lib/%{name} +%files doc +%doc README TODO debian/changelog %changelog +* Tue Oct 18 2022 mgb01105731 - 1.79-2 +- optimise spec file & add doc package + * Mon Mar 14 2022 forrest_ly - 1.79-1 - Init for Anolis OS 23 -- Gitee