]> git.pld-linux.org Git - packages/sg3_utils.git/blame - sg3_utils.spec
up to 1.46
[packages/sg3_utils.git] / sg3_utils.spec
CommitLineData
e517cb6e 1Summary: Utilities and test programs for the Linux sg version 3 device driver
07829b0c 2Summary(pl.UTF-8): Programy narzędziowe i testowe dla linuksowego sterownika sg w wersji 3
e517cb6e 3Name: sg3_utils
c36da4c1 4Version: 1.46
b342d8fb 5Release: 1
0711b6dc 6License: GPL v2 (utilities), BSD (library)
e517cb6e 7Group: Applications/System
61352f4e 8Source0: http://sg.danny.cz/sg/p/%{name}-%{version}.tar.xz
c36da4c1 9# Source0-md5: 11854fedf831adfd39438dc5ac9202e9
7cbb11c6 10Patch0: %{name}-rescan-scsi-bus.sh.patch
0e0eee25 11URL: http://sg.danny.cz/sg/sg3_utils.html
61352f4e
JB
12BuildRequires: tar >= 1:1.22
13BuildRequires: xz
ce5c7ddf
JB
14# see scripts/rescan-scsi-bus.sh /Id:
15Provides: rescan-scsi-bus = 1.57
548bebb9 16Provides: sg_utils
ce5c7ddf 17Obsoletes: rescan-scsi-bus < 1.57
41213606 18Obsoletes: scsiutils
e160c3c1 19Obsoletes: sg_utils
e517cb6e
JB
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
e160c3c1 22%undefine __cxx
23
e517cb6e
JB
24%description
25This package contains some utilities and test programs for the Linux
26sg (version 3) device driver. This driver is found in the Linux 2.4+
27kernels.
28
70e7ead6
JR
29%description -l pl.UTF-8
30Ten pakiet zawiera trochę programów narzędziowych i testowych dla
31sterownika urządzeń sg w wersji 3. Ten sterownik jest obecny w jądrach
e517cb6e
JB
32Linuksa 2.4+.
33
d244ee12 34%package devel
979dbd48
JB
35Summary: Header files for sgutils2 library
36Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sgutils2
d244ee12
JB
37License: BSD
38Group: Development/Libraries
39Requires: %{name} = %{version}-%{release}
40
41%description devel
979dbd48 42Header files for sgutils2 library.
d244ee12 43
70e7ead6 44%description devel -l pl.UTF-8
979dbd48 45Pliki nagłówkowe biblioteki sgutils2.
d244ee12
JB
46
47%package static
979dbd48
JB
48Summary: Static sgutils2 library
49Summary(pl.UTF-8): Statyczna biblioteka sgutils2
d244ee12
JB
50License: BSD
51Group: Development/Libraries
52Requires: %{name}-devel = %{version}-%{release}
53
54%description static
979dbd48 55Static version of sgutils2 library.
d244ee12 56
70e7ead6 57%description static -l pl.UTF-8
979dbd48 58Statyczna wersja biblioteki sgutils2.
d244ee12 59
e517cb6e
JB
60%prep
61%setup -q
e517cb6e 62
ce5c7ddf
JB
63cp -p scripts/README README.scripts
64
e517cb6e 65%build
eff261e9
JB
66%configure
67%{__make}
e517cb6e
JB
68
69%install
70rm -rf $RPM_BUILD_ROOT
71
72%{__make} install \
eff261e9 73 DESTDIR=$RPM_BUILD_ROOT
e517cb6e 74
ce5c7ddf
JB
75install scripts/rescan-scsi-bus.sh $RPM_BUILD_ROOT%{_bindir}
76
77install -d $RPM_BUILD_ROOT/lib/udev/rules.d
8896b1df 78install 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
84rm -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
This page took 0.073902 seconds and 4 git commands to generate.