]> git.pld-linux.org Git - packages/sg3_utils.git/blob - sg3_utils.spec
- updated to 1.38
[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.38
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:  ee60a79cd4eb4fa8cebb83c0e9c3707c
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 %prep
60 %setup -q
61
62 cp -p scripts/README README.scripts
63
64 %build
65 %configure
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 install scripts/rescan-scsi-bus.sh $RPM_BUILD_ROOT%{_bindir}
75
76 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
77 install scripts/59-scsi-sg3_utils.rules $RPM_BUILD_ROOT/lib/udev/rules.d
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post   -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
84
85 %files
86 %defattr(644,root,root,755)
87 %doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.scripts README.sg_start TODO
88 %attr(755,root,root) %{_bindir}/rescan-scsi-bus.sh
89 %attr(755,root,root) %{_bindir}/scsi_*
90 %attr(755,root,root) %{_bindir}/sg_*
91 %attr(755,root,root) %{_bindir}/sginfo
92 %attr(755,root,root) %{_bindir}/sgm_dd
93 %attr(755,root,root) %{_bindir}/sgp_dd
94 %attr(755,root,root) %{_libdir}/libsgutils2.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libsgutils2.so.2
96 /lib/udev/rules.d/59-scsi-sg3_utils.rules
97 %{_mandir}/man8/rescan-scsi-bus.sh.8*
98 %{_mandir}/man8/scsi_*.8*
99 %{_mandir}/man8/sg3_utils.8*
100 %{_mandir}/man8/sg_*.8*
101 %{_mandir}/man8/sginfo.8*
102 %{_mandir}/man8/sgm_dd.8*
103 %{_mandir}/man8/sgp_dd.8*
104
105 %files devel
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libsgutils2.so
108 %{_libdir}/libsgutils2.la
109 %{_includedir}/scsi/sg_*.h
110
111 %files static
112 %defattr(644,root,root,755)
113 %{_libdir}/libsgutils2.a
This page took 0.051838 seconds and 3 git commands to generate.