diff --git a/sg3_utils.spec b/sg3_utils.spec index ed3a2ae9dd61de01c07ea9664713c4cc1533876a..03adaab770f69cb2284edd84343251205a8a7233 100644 --- a/sg3_utils.spec +++ b/sg3_utils.spec @@ -1,9 +1,10 @@ +%define anolis_release .0.1 %global rescan_script rescan-scsi-bus.sh Summary: Utilities for devices that use SCSI command sets Name: sg3_utils Version: 1.44 -Release: 5%{?dist} +Release: 5%{anolis_release}%{?dist} License: GPLv2+ and BSD Group: Applications/System Source0: http://sg.danny.cz/sg/p/sg3_utils-%{version}.tar.xz @@ -24,7 +25,8 @@ URL: http://sg.danny.cz/sg/sg3_utils.html Requires: %{name}-libs%{?_isa} = %{version}-%{release} BuildRequires: systemd - +Requires: glibc +Provides: /usr/bin/sg_sync %description Collection of Linux utilities for devices that use the SCSI command set. @@ -56,6 +58,14 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} This package contains the %{name} library and its header files for developing applications. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %autosetup -p 1 @@ -94,7 +104,6 @@ install -p -m 755 scripts/fc_wwpn_id $RPM_BUILD_ROOT/usr/lib/udev %files -%doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.sg_start %{_bindir}/* %{_mandir}/man8/* %{_udevrulesdir}/61-scsi-sg3_id.rules @@ -111,8 +120,13 @@ install -p -m 755 scripts/fc_wwpn_id $RPM_BUILD_ROOT/usr/lib/udev %{_includedir}/scsi/*.h %{_libdir}/*.so +%files doc +%doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.sg_start %changelog +* Sun Jul 17 2022 Xiaoping Liu - 1.44-5.0.1 +- Add doc sub package + * Thu Jan 02 2020 Tomas Bzatek - 1.44-5 - Reorder the udev rules to run after 60-persistent-storage.rules (RHBZ #1785062)