From 25af6a05ef5b67ee5919bead0c44bb89d044b58e Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Mon, 31 Aug 2015 12:21:22 +0000 Subject: [PATCH] - moved udev rules to subpackage, they break /dev/disk/* entries for non-scsi devices using scsi subsystem (ie. USB disks), on the other hand they are needed for multipath --- sg3_utils.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/sg3_utils.spec b/sg3_utils.spec index 9d36359..bcfb3b8 100644 --- a/sg3_utils.spec +++ b/sg3_utils.spec @@ -57,6 +57,19 @@ Static version of sgutils2 library. %description static -l pl.UTF-8 Statyczna wersja biblioteki sgutils2. +%package udev +Summary: Udev rules for sg3_utils +Summary(pl.UTF-8): Reguły udev dla sg3_utils +License: BSD +Group: Applications/System +Requires: %{name} = %{version}-%{release} + +%description udev +Udev rules for sg3_utils. + +%description udev -l pl.UTF-8 +Reguły udev dla sg3_utils + %prep %setup -q %patch0 -p1 @@ -98,8 +111,6 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/sgp_dd %attr(755,root,root) %{_libdir}/libsgutils2.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libsgutils2.so.2 -/lib/udev/rules.d/55-scsi-sg3_id.rules -/lib/udev/rules.d/58-scsi-sg3_symlink.rules %{_mandir}/man8/rescan-scsi-bus.sh.8* %{_mandir}/man8/scsi_*.8* %{_mandir}/man8/sg3_utils.8* @@ -116,3 +127,8 @@ rm -rf $RPM_BUILD_ROOT %files static %defattr(644,root,root,755) %{_libdir}/libsgutils2.a + +%files udev +%defattr(644,root,root,755) +/lib/udev/rules.d/55-scsi-sg3_id.rules +/lib/udev/rules.d/58-scsi-sg3_symlink.rules -- 2.46.0