]> TLD Linux GIT Repositories - packages/sg3_utils.git/blob - sg3_utils.spec
- updated to 1.47
[packages/sg3_utils.git] / sg3_utils.spec
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
3 Name:           sg3_utils
4 Version:        1.45
5 Release:        1
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:  3a1ba25fe7b43577de4a5c1edb018526
10 URL:            http://sg.danny.cz/sg/sg3_utils.html
11 BuildRequires:  tar >= 1:1.22
12 BuildRequires:  xz
13 # see scripts/rescan-scsi-bus.sh /Id:
14 Provides:       rescan-scsi-bus = 1.57
15 Provides:       sg_utils
16 Obsoletes:      rescan-scsi-bus < 1.57
17 Obsoletes:      scsiutils
18 Obsoletes:      sg_utils
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %undefine       __cxx
22
23 %description
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+
26 kernels.
27
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
31 Linuksa 2.4+.
32
33 %package devel
34 Summary:        Header files for sgutils2 library
35 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki sgutils2
36 License:        BSD
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 Header files for sgutils2 library.
42
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki sgutils2.
45
46 %package static
47 Summary:        Static sgutils2 library
48 Summary(pl.UTF-8):      Statyczna biblioteka sgutils2
49 License:        BSD
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static version of sgutils2 library.
55
56 %description static -l pl.UTF-8
57 Statyczna wersja biblioteki sgutils2.
58
59 %package udev
60 Summary:        Udev rules for sg3_utils
61 Summary(pl.UTF-8):      Reguły udev dla sg3_utils
62 License:        BSD
63 Group:          Applications/System
64 Requires:       %{name} = %{version}-%{release}
65
66 %description udev
67 Udev rules for sg3_utils.
68
69 %description udev -l pl.UTF-8
70 Reguły udev dla sg3_utils
71
72 %prep
73 %setup -q
74
75 cp -p scripts/README README.scripts
76
77 %build
78 %configure
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 install scripts/rescan-scsi-bus.sh $RPM_BUILD_ROOT%{_bindir}
88
89 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
90 install scripts/*.rules $RPM_BUILD_ROOT/lib/udev/rules.d
91
92 # no external dependencies
93 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsgutils2.la
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post   -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
100
101 %files
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-%{version}.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libsgutils2-%{version}.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*
119
120 %files devel
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libsgutils2.so
123 %{_includedir}/scsi/sg_*.h
124
125 %files static
126 %defattr(644,root,root,755)
127 %{_libdir}/libsgutils2.a
128
129 %files udev
130 %defattr(644,root,root,755)
131 /lib/udev/rules.d/40-usb-blacklist.rules
132 /lib/udev/rules.d/54-before-scsi-sg3_id.rules
133 /lib/udev/rules.d/55-scsi-sg3_id.rules
134 /lib/udev/rules.d/58-scsi-sg3_symlink.rules
135 /lib/udev/rules.d/59-fc-wwpn-id.rules
136 /lib/udev/rules.d/59-scsi-cciss_id.rules