From acf52b09cb968581ec60704386a7f6217a1b9284 Mon Sep 17 00:00:00 2001 From: Shawn Wang Date: Sun, 26 Feb 2023 19:23:54 +0800 Subject: [PATCH] optimize the spec file Signed-off-by: Shawn Wang --- sg3_utils.spec | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/sg3_utils.spec b/sg3_utils.spec index fbc22e4..e6f1fea 100644 --- a/sg3_utils.spec +++ b/sg3_utils.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global rescan_script rescan-scsi-bus.sh Summary: Utilities for devices that use SCSI command sets @@ -44,6 +44,14 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} This package contains the %{name} library and its header files for developing applications. +%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 -p 1 @@ -78,9 +86,11 @@ install -p -m 644 scripts/59-scsi-cciss_id.rules $RPM_BUILD_ROOT%{_udevrulesdir} install -p -m 644 scripts/59-fc-wwpn-id.rules $RPM_BUILD_ROOT%{_udevrulesdir}/63-fc-wwpn-id.rules install -p -m 755 scripts/fc_wwpn_id $RPM_BUILD_ROOT/usr/lib/udev +%generate_compatibility_deps + %files -%doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.sg_start %{_bindir}/* +%{abidir}/*-option.list %{_mandir}/man8/* %{_udevrulesdir}/61-scsi-sg3_id.rules %{_udevrulesdir}/63-scsi-sg3_symlink.rules @@ -90,14 +100,21 @@ install -p -m 755 scripts/fc_wwpn_id $RPM_BUILD_ROOT/usr/lib/udev /usr/lib/udev/fc_wwpn_id %files libs -%doc BSD_LICENSE COPYING +%license BSD_LICENSE COPYING +%dir %{abidir} %{_libdir}/*.so.* +%{abidir}/*.dump %files devel %{_includedir}/scsi/*.h %{_libdir}/*.so +%files doc +%doc AUTHORS COVERAGE CREDITS ChangeLog README README.sg_start %changelog +* Sun Feb 26 2023 Shawn Wang - 1.47-2 +- optimize the spec file + * Fri Mar 11 2022 Chunmei Xu - 1.47-1 - init from upstream 1.47 -- Gitee