]> git.pld-linux.org Git - packages/sg3_utils.git/blob - sg3_utils.spec
up to 1.46
[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.46
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:  11854fedf831adfd39438dc5ac9202e9
10 Patch0:         %{name}-rescan-scsi-bus.sh.patch
11 URL:            http://sg.danny.cz/sg/sg3_utils.html
12 BuildRequires:  tar >= 1:1.22
13 BuildRequires:  xz
14 # see scripts/rescan-scsi-bus.sh /Id:
15 Provides:       rescan-scsi-bus = 1.57
16 Provides:       sg_utils
17 Obsoletes:      rescan-scsi-bus < 1.57
18 Obsoletes:      scsiutils
19 Obsoletes:      sg_utils
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %undefine       __cxx
23
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
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
32 Linuksa 2.4+.
33
34 %package devel
35 Summary:        Header files for sgutils2 library
36 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki sgutils2
37 License:        BSD
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40
41 %description devel
42 Header files for sgutils2 library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki sgutils2.
46
47 %package static
48 Summary:        Static sgutils2 library
49 Summary(pl.UTF-8):      Statyczna biblioteka sgutils2
50 License:        BSD
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static version of sgutils2 library.
56
57 %description static -l pl.UTF-8
58 Statyczna wersja biblioteki sgutils2.
59
60 %prep
61 %setup -q
62
63 cp -p scripts/README README.scripts
64
65 %build
66 %configure
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %{__make} install \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 install scripts/rescan-scsi-bus.sh $RPM_BUILD_ROOT%{_bindir}
76
77 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
78 install scripts/*.rules $RPM_BUILD_ROOT/lib/udev/rules.d
79
80 # no external dependencies
81 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsgutils2.la
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.scripts README.sg_start
92 %attr(755,root,root) %{_bindir}/rescan-scsi-bus.sh
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
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
102 /lib/udev/rules.d/55-scsi-sg3_id.rules
103 /lib/udev/rules.d/58-scsi-sg3_symlink.rules
104 /lib/udev/rules.d/59-fc-wwpn-id.rules
105 /lib/udev/rules.d/59-scsi-cciss_id.rules
106 %{_mandir}/man8/rescan-scsi-bus.sh.8*
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*
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libsgutils2.so
117 %{_includedir}/scsi/sg_*.h
118
119 %files static
120 %defattr(644,root,root,755)
121 %{_libdir}/libsgutils2.a
This page took 0.168253 seconds and 3 git commands to generate.