]> TLD Linux GIT Repositories - packages/sg3_utils.git/blob - sg3_utils.spec
- from PLD
[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.40
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:  4bfdb74d20dd1dac12150c9ba0be6120
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/*.rules $RPM_BUILD_ROOT/lib/udev/rules.d
78
79 # no external dependencies
80 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsgutils2.la
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post   -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
87
88 %files
89 %defattr(644,root,root,755)
90 %doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.scripts README.sg_start TODO
91 %attr(755,root,root) %{_bindir}/rescan-scsi-bus.sh
92 %attr(755,root,root) %{_bindir}/scsi_*
93 %attr(755,root,root) %{_bindir}/sg_*
94 %attr(755,root,root) %{_bindir}/sginfo
95 %attr(755,root,root) %{_bindir}/sgm_dd
96 %attr(755,root,root) %{_bindir}/sgp_dd
97 %attr(755,root,root) %{_libdir}/libsgutils2.so.*.*.*
98 %attr(755,root,root) %ghost %{_libdir}/libsgutils2.so.2
99 /lib/udev/rules.d/55-scsi-sg3_id.rules
100 /lib/udev/rules.d/58-scsi-sg3_symlink.rules
101 %{_mandir}/man8/rescan-scsi-bus.sh.8*
102 %{_mandir}/man8/scsi_*.8*
103 %{_mandir}/man8/sg3_utils.8*
104 %{_mandir}/man8/sg_*.8*
105 %{_mandir}/man8/sginfo.8*
106 %{_mandir}/man8/sgm_dd.8*
107 %{_mandir}/man8/sgp_dd.8*
108
109 %files devel
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/libsgutils2.so
112 %{_includedir}/scsi/sg_*.h
113
114 %files static
115 %defattr(644,root,root,755)
116 %{_libdir}/libsgutils2.a