1 Summary: Utilities and test programs for the Linux sg version 3 device driver
2 Summary(pl.UTF-8): Programy narzędziowe i testowe dla linuksowego sterownika sg w wersji 3
6 License: GPL v2 (utilities), BSD (library)
7 Group: Applications/System
8 Source0: http://sg.danny.cz/sg/p/%{name}-%{version}.tar.xz
9 # Source0-md5: 913ac2c9069d2ba44e05565a445810ab
10 URL: http://sg.danny.cz/sg/sg3_utils.html
11 BuildRequires: tar >= 1:1.22
13 # see scripts/rescan-scsi-bus.sh /Id:
14 Provides: rescan-scsi-bus = 1.57
16 Obsoletes: rescan-scsi-bus < 1.57
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This package contains some utilities and test programs for the Linux
25 sg (version 3) device driver. This driver is found in the Linux 2.4+
28 %description -l pl.UTF-8
29 Ten pakiet zawiera trochę programów narzędziowych i testowych dla
30 sterownika urządzeń sg w wersji 3. Ten sterownik jest obecny w jądrach
34 Summary: Header files for sgutils2 library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sgutils2
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 Header files for sgutils2 library.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki sgutils2.
47 Summary: Static sgutils2 library
48 Summary(pl.UTF-8): Statyczna biblioteka sgutils2
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 Static version of sgutils2 library.
56 %description static -l pl.UTF-8
57 Statyczna wersja biblioteki sgutils2.
60 Summary: Udev rules for sg3_utils
61 Summary(pl.UTF-8): Reguły udev dla sg3_utils
63 Group: Applications/System
64 Requires: %{name} = %{version}-%{release}
67 Udev rules for sg3_utils.
69 %description udev -l pl.UTF-8
70 Reguły udev dla sg3_utils
75 cp -p scripts/README README.scripts
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
87 install scripts/rescan-scsi-bus.sh $RPM_BUILD_ROOT%{_bindir}
89 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
90 install scripts/*.rules $RPM_BUILD_ROOT/lib/udev/rules.d
92 # no external dependencies
93 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsgutils2.la
96 rm -rf $RPM_BUILD_ROOT
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
102 %defattr(644,root,root,755)
103 %doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.scripts README.sg_start
104 %attr(755,root,root) %{_bindir}/rescan-scsi-bus.sh
105 %attr(755,root,root) %{_bindir}/scsi_*
106 %attr(755,root,root) %{_bindir}/sg_*
107 %attr(755,root,root) %{_bindir}/sginfo
108 %attr(755,root,root) %{_bindir}/sgm_dd
109 %attr(755,root,root) %{_bindir}/sgp_dd
110 %attr(755,root,root) %{_libdir}/libsgutils2.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libsgutils2.so.2
112 %{_mandir}/man8/rescan-scsi-bus.sh.8*
113 %{_mandir}/man8/scsi_*.8*
114 %{_mandir}/man8/sg3_utils.8*
115 %{_mandir}/man8/sg_*.8*
116 %{_mandir}/man8/sginfo.8*
117 %{_mandir}/man8/sgm_dd.8*
118 %{_mandir}/man8/sgp_dd.8*
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libsgutils2.so
123 %{_includedir}/scsi/sg_*.h
126 %defattr(644,root,root,755)
127 %{_libdir}/libsgutils2.a
130 %defattr(644,root,root,755)
131 /lib/udev/rules.d/55-scsi-sg3_id.rules
132 /lib/udev/rules.d/58-scsi-sg3_symlink.rules