]>
Commit | Line | Data |
---|---|---|
e517cb6e | 1 | Summary: Utilities and test programs for the Linux sg version 3 device driver |
07829b0c | 2 | Summary(pl.UTF-8): Programy narzędziowe i testowe dla linuksowego sterownika sg w wersji 3 |
e517cb6e | 3 | Name: sg3_utils |
c36da4c1 | 4 | Version: 1.46 |
b342d8fb | 5 | Release: 1 |
0711b6dc | 6 | License: GPL v2 (utilities), BSD (library) |
e517cb6e | 7 | Group: Applications/System |
61352f4e | 8 | Source0: http://sg.danny.cz/sg/p/%{name}-%{version}.tar.xz |
c36da4c1 | 9 | # Source0-md5: 11854fedf831adfd39438dc5ac9202e9 |
7cbb11c6 | 10 | Patch0: %{name}-rescan-scsi-bus.sh.patch |
0e0eee25 | 11 | URL: http://sg.danny.cz/sg/sg3_utils.html |
61352f4e JB |
12 | BuildRequires: tar >= 1:1.22 |
13 | BuildRequires: xz | |
ce5c7ddf JB |
14 | # see scripts/rescan-scsi-bus.sh /Id: |
15 | Provides: rescan-scsi-bus = 1.57 | |
548bebb9 | 16 | Provides: sg_utils |
ce5c7ddf | 17 | Obsoletes: rescan-scsi-bus < 1.57 |
41213606 | 18 | Obsoletes: scsiutils |
e160c3c1 | 19 | Obsoletes: sg_utils |
e517cb6e JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
e160c3c1 | 22 | %undefine __cxx |
23 | ||
e517cb6e JB |
24 | %description |
25 | This package contains some utilities and test programs for the Linux | |
26 | sg (version 3) device driver. This driver is found in the Linux 2.4+ | |
27 | kernels. | |
28 | ||
70e7ead6 JR |
29 | %description -l pl.UTF-8 |
30 | Ten pakiet zawiera trochę programów narzędziowych i testowych dla | |
31 | sterownika urządzeń sg w wersji 3. Ten sterownik jest obecny w jądrach | |
e517cb6e JB |
32 | Linuksa 2.4+. |
33 | ||
d244ee12 | 34 | %package devel |
979dbd48 JB |
35 | Summary: Header files for sgutils2 library |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sgutils2 | |
d244ee12 JB |
37 | License: BSD |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | ||
41 | %description devel | |
979dbd48 | 42 | Header files for sgutils2 library. |
d244ee12 | 43 | |
70e7ead6 | 44 | %description devel -l pl.UTF-8 |
979dbd48 | 45 | Pliki nagłówkowe biblioteki sgutils2. |
d244ee12 JB |
46 | |
47 | %package static | |
979dbd48 JB |
48 | Summary: Static sgutils2 library |
49 | Summary(pl.UTF-8): Statyczna biblioteka sgutils2 | |
d244ee12 JB |
50 | License: BSD |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
979dbd48 | 55 | Static version of sgutils2 library. |
d244ee12 | 56 | |
70e7ead6 | 57 | %description static -l pl.UTF-8 |
979dbd48 | 58 | Statyczna wersja biblioteki sgutils2. |
d244ee12 | 59 | |
e517cb6e JB |
60 | %prep |
61 | %setup -q | |
e517cb6e | 62 | |
ce5c7ddf JB |
63 | cp -p scripts/README README.scripts |
64 | ||
e517cb6e | 65 | %build |
eff261e9 JB |
66 | %configure |
67 | %{__make} | |
e517cb6e JB |
68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} install \ | |
eff261e9 | 73 | DESTDIR=$RPM_BUILD_ROOT |
e517cb6e | 74 | |
ce5c7ddf JB |
75 | install scripts/rescan-scsi-bus.sh $RPM_BUILD_ROOT%{_bindir} |
76 | ||
77 | install -d $RPM_BUILD_ROOT/lib/udev/rules.d | |
8896b1df | 78 | install scripts/*.rules $RPM_BUILD_ROOT/lib/udev/rules.d |
0e0eee25 | 79 | |
5d4b243a JB |
80 | # no external dependencies |
81 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsgutils2.la | |
82 | ||
e517cb6e JB |
83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
d244ee12 JB |
86 | %post -p /sbin/ldconfig |
87 | %postun -p /sbin/ldconfig | |
88 | ||
e517cb6e JB |
89 | %files |
90 | %defattr(644,root,root,755) | |
91d90f05 | 91 | %doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.scripts README.sg_start |
ce5c7ddf | 92 | %attr(755,root,root) %{_bindir}/rescan-scsi-bus.sh |
0e0eee25 JB |
93 | %attr(755,root,root) %{_bindir}/scsi_* |
94 | %attr(755,root,root) %{_bindir}/sg_* | |
95 | %attr(755,root,root) %{_bindir}/sginfo | |
96 | %attr(755,root,root) %{_bindir}/sgm_dd | |
97 | %attr(755,root,root) %{_bindir}/sgp_dd | |
b342d8fb JB |
98 | %attr(755,root,root) %{_libdir}/libsgutils2-%{version}.so.*.*.* |
99 | %attr(755,root,root) %ghost %{_libdir}/libsgutils2-%{version}.so.2 | |
100 | /lib/udev/rules.d/40-usb-blacklist.rules | |
101 | /lib/udev/rules.d/54-before-scsi-sg3_id.rules | |
8896b1df JB |
102 | /lib/udev/rules.d/55-scsi-sg3_id.rules |
103 | /lib/udev/rules.d/58-scsi-sg3_symlink.rules | |
b342d8fb JB |
104 | /lib/udev/rules.d/59-fc-wwpn-id.rules |
105 | /lib/udev/rules.d/59-scsi-cciss_id.rules | |
ce5c7ddf | 106 | %{_mandir}/man8/rescan-scsi-bus.sh.8* |
0e0eee25 JB |
107 | %{_mandir}/man8/scsi_*.8* |
108 | %{_mandir}/man8/sg3_utils.8* | |
109 | %{_mandir}/man8/sg_*.8* | |
110 | %{_mandir}/man8/sginfo.8* | |
111 | %{_mandir}/man8/sgm_dd.8* | |
112 | %{_mandir}/man8/sgp_dd.8* | |
d244ee12 JB |
113 | |
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
979dbd48 | 116 | %attr(755,root,root) %{_libdir}/libsgutils2.so |
d244ee12 JB |
117 | %{_includedir}/scsi/sg_*.h |
118 | ||
119 | %files static | |
120 | %defattr(644,root,root,755) | |
979dbd48 | 121 | %{_libdir}/libsgutils2.a |