- update to version 1.48 (rhbz#1944444)

This commit is contained in:
Dan Horák 2024-02-09 14:20:47 +01:00
parent 187ccad96a
commit f9a9f88104
3 changed files with 49 additions and 26 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ rescan-scsi-bus.sh-1.35
/sg3_utils-1.44.tar.xz /sg3_utils-1.44.tar.xz
/sg3_utils-1.45.tar.xz /sg3_utils-1.45.tar.xz
/sg3_utils-1.46.tar.xz /sg3_utils-1.46.tar.xz
/sg3_utils-1.48.tar.xz

View File

@ -1,14 +1,15 @@
%global rescan_script rescan-scsi-bus.sh %global rescan_script rescan-scsi-bus.sh
%global _udevlibdir %{_prefix}/lib/udev
Summary: Utilities for devices that use SCSI command sets Summary: Utilities for devices that use SCSI command sets
Name: sg3_utils Name: sg3_utils
Version: 1.46 Version: 1.48
Release: 7%{?dist} Release: 1%{?dist}
License: GPLv2+ and BSD License: GPL-2.0-or-later AND BSD-2-Clause
Source0: http://sg.danny.cz/sg/p/sg3_utils-%{version}.tar.xz URL: https://sg.danny.cz/sg/sg3_utils.html
Source2: scsi-rescan.8 Source0: https://sg.danny.cz/sg/p/sg3_utils-%{version}.tar.xz
Source1: scsi-rescan.8
URL: http://sg.danny.cz/sg/sg3_utils.html
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release}
BuildRequires: make BuildRequires: make
BuildRequires: gcc BuildRequires: gcc
@ -43,9 +44,11 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
This package contains the %{name} library and its header files for This package contains the %{name} library and its header files for
developing applications. developing applications.
%prep %prep
%autosetup -p 1 %autosetup -p 1
%build %build
%configure --disable-static %configure --disable-static
@ -58,46 +61,65 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%install %install
%make_install %make_install
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la rm -rf %{buildroot}%{_libdir}/*.la
install -p -m 755 scripts/%{rescan_script} $RPM_BUILD_ROOT%{_bindir} install -p -m 755 scripts/%{rescan_script} %{buildroot}%{_bindir}
( cd $RPM_BUILD_ROOT%{_bindir}; ln -sf %{rescan_script} scsi-rescan ) ( cd %{buildroot}%{_bindir}; ln -sf %{rescan_script} scsi-rescan )
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man8 install -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man8
# install all extra udev rules # install all extra udev rules
mkdir -p $RPM_BUILD_ROOT%{_udevrulesdir} mkdir -p %{buildroot}%{_udevrulesdir}
mkdir -p $RPM_BUILD_ROOT/usr/lib/udev mkdir -p %{buildroot}%{_udevlibdir}
install -p -m 644 scripts/40-usb-blacklist.rules $RPM_BUILD_ROOT%{_udevrulesdir} install -p -m 644 scripts/40-usb-blacklist.rules %{buildroot}%{_udevrulesdir}
# need to run after 60-persistent-storage.rules # need to run after 60-persistent-storage.rules
install -p -m 644 scripts/55-scsi-sg3_id.rules $RPM_BUILD_ROOT%{_udevrulesdir}/61-scsi-sg3_id.rules install -p -m 644 scripts/55-scsi-sg3_id.rules %{buildroot}%{_udevrulesdir}/61-scsi-sg3_id.rules
# need to run after 62-multipath.rules # need to run after 62-multipath.rules
install -p -m 644 scripts/58-scsi-sg3_symlink.rules $RPM_BUILD_ROOT%{_udevrulesdir}/63-scsi-sg3_symlink.rules install -p -m 644 scripts/58-scsi-sg3_symlink.rules %{buildroot}%{_udevrulesdir}/63-scsi-sg3_symlink.rules
install -p -m 644 scripts/59-scsi-cciss_id.rules $RPM_BUILD_ROOT%{_udevrulesdir}/65-scsi-cciss_id.rules install -p -m 644 scripts/59-scsi-cciss_id.rules %{buildroot}%{_udevrulesdir}/65-scsi-cciss_id.rules
install -p -m 644 scripts/59-fc-wwpn-id.rules $RPM_BUILD_ROOT%{_udevrulesdir}/63-fc-wwpn-id.rules install -p -m 644 scripts/59-fc-wwpn-id.rules %{buildroot}%{_udevrulesdir}/63-fc-wwpn-id.rules
install -p -m 755 scripts/fc_wwpn_id $RPM_BUILD_ROOT/usr/lib/udev install -p -m 755 scripts/fc_wwpn_id %{buildroot}%{_udevlibdir}
%files %files
%doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.sg_start %license BSD_LICENSE COPYING
%{_bindir}/* %doc AUTHORS COVERAGE CREDITS ChangeLog README README.sg_start
%{_mandir}/man8/* %{_bindir}/scsi_*
%{_bindir}/sg_*
%{_bindir}/rescan-scsi-bus.sh
%{_bindir}/scsi-rescan
%{_bindir}/sginfo
%{_bindir}/sgm_dd
%{_bindir}/sgp_dd
%{_mandir}/man8/scsi_*.8*
%{_mandir}/man8/sg_*.8*
%{_mandir}/man8/rescan-scsi-bus.sh.8*
%{_mandir}/man8/scsi-rescan.8*
%{_mandir}/man8/sginfo.8*
%{_mandir}/man8/sgm_dd.8*
%{_mandir}/man8/sgp_dd.8*
%{_mandir}/man8/%{name}.8*
%{_mandir}/man8/%{name}_json.8*
%{_udevrulesdir}/61-scsi-sg3_id.rules %{_udevrulesdir}/61-scsi-sg3_id.rules
%{_udevrulesdir}/63-scsi-sg3_symlink.rules %{_udevrulesdir}/63-scsi-sg3_symlink.rules
%{_udevrulesdir}/63-fc-wwpn-id.rules %{_udevrulesdir}/63-fc-wwpn-id.rules
%{_udevrulesdir}/65-scsi-cciss_id.rules %{_udevrulesdir}/65-scsi-cciss_id.rules
%{_udevrulesdir}/40-usb-blacklist.rules %{_udevrulesdir}/40-usb-blacklist.rules
/usr/lib/udev/fc_wwpn_id %{_udevlibdir}/fc_wwpn_id
%files libs %files libs
%doc BSD_LICENSE COPYING %doc BSD_LICENSE COPYING
%{_libdir}/*.so.* %{_libdir}/libsgutils2-%{version}.so.*
%files devel %files devel
%{_includedir}/scsi/*.h %{_includedir}/scsi/*.h
%{_libdir}/*.so %{_libdir}/libsgutils2.so
%changelog %changelog
* Fri Feb 09 2024 Dan Horák <dan@danny.cz> - 1.48-1
- update to version 1.48 (rhbz#1944444)
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.46-7 * Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.46-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (sg3_utils-1.46.tar.xz) = 0b4caab97ccc11fb45e88219e460b37c6ff69b8f3c79e513279aef51783ff22399d141253abdbf55db198db0815bc39d30e9b1e3bd7dda5e15c5f4dae3fe89cf SHA512 (sg3_utils-1.48.tar.xz) = d4f586ac8a4ba9b5de5885657785e25251c8a42913332d6eca38f92b546c06e8e8aa0553c4b5c04f553cf2d0a9e4f34827f65ba596ef65e43dec36b4345f444a