1 Summary: Hardware detection library
2 Summary(pl): Biblioteka wykrywaj±ca sprzêt
7 Group: Applications/System
8 Source0: ftp://ftp.linux-mandrake.com/pub/harddrake/SOURCES/%{name}-%{version}.tar.bz2
9 Patch0: %{name}-sound.patch.bz2
10 Patch1: %{name}-po.patch.bz2
11 Patch2: %{name}-ppc.patch.bz2
12 Patch3: %{name}-ppc2.patch.bz2
13 Patch4: %{name}-ia64-io-h.patch.bz2
14 Patch5: %{name}-kver-ppc.patch.bz2
15 Patch6: %{name}-0.9.72-alpha.patch.bz2
16 Patch7: %{name}-0.9.72-cpu-detect-ppc.patch.bz2
17 URL: http://www.linux-mandrake.com/harddrake/
18 BuildRequires: autoconf
19 BuildRequires: automake
21 BuildRequires: gettext-devel
23 BuildRequires: isapnptools-devel
25 BuildRequires: libtool
26 BuildRequires: texinfo
28 Requires: isapnptools >= 1.21
31 Requires: %{name}-libs = %{version}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Libdetect is a library for hardware detection. The API is easy to
36 learn. The following hardware can be detected: CPU, Memory, Disk &
37 partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound
38 cards, Video cards, Scanners.
41 libdetect to biblioteka do wykrywania sprzêtu. Jej API jest ³atwe do
42 nauczenia. Mo¿e wykryæ nastêpuj±cy sprzêt: procesor, pamiêæ, dyski i
43 partycje, karty sieciowe, stacje dysków, modemy, myszy, SCSI, karty
44 d¼wiêkowe, karty graficzne, skanery.
47 Summary: The detect library itself, necessary to run the detect utility
48 Summary(pl): W³a¶ciwa biblioteka, niezbêdna do dzia³ania narzêdzia detect
53 Libdetect is a library for hardware detection. The API is easy to
54 learn. The following hardware can be detected: CPU, Memory, Disk &
55 partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound
56 cards, Video cards, Scanners. This package contains the detect library
57 itself, necessary to run the detect utility.
59 %description libs -l pl
60 libdetect to biblioteka do wykrywania sprzêtu. Jej API jest ³atwe do
61 nauczenia. Mo¿e wykryæ nastêpuj±cy sprzêt: procesor, pamiêæ, dyski i
62 partycje, karty sieciowe, stacje dysków, modemy, myszy, SCSI, karty
63 d¼wiêkowe, karty graficzne, skanery. Ten pakiet zawiera w³a¶ciw±
64 bibliotekê, niezbêdn± do dzia³ania narzêdzia wykrywaj±cego (polecenia
68 Summary: Header files for developing apps which will use detect
69 Summary(pl): Pliki nag³ówkowe do tworzenia programów u¿ywaj±cych detect
70 Group: Development/Libraries
71 Requires: detect-libs = %{version}
72 Obsoletes: detect-devel
73 Obsoletes: libdetect-devel
75 %description libs-devel
76 Header files for developing apps which will use detect library.
78 %description libs-devel -l pl
79 Pliki nag³ówkowe do tworzenia programów u¿ywaj±cych biblioteki detect.
82 Summary: Static detect library
83 Summary(pl0: Statyczna biblioteka detect
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}
87 %description libs-static
88 Static version of detect library.
90 %description libs-static -l pl
91 Statyczna wersja biblioteki detect.
110 CFLAGS="%{rpmcflags} -I%{_includedir}/isapnp"
118 cat po/Makefile.in > po/Makefile
122 rm -rf $RPM_BUILD_ROOT
125 # prefix=$RPM_BUILD_ROOT%{prefix} \
126 # mandir=$RPM_BUILD_ROOT%{_mandir} \
127 # libdir=$RPM_BUILD_ROOT%{_libdir} \
128 # sbindir=$RPM_BUILD_ROOT%{_sbindir} \
129 # datadir=$RPM_BUILD_ROOT%{_datadir} \
130 # includedir=$RPM_BUILD_ROOT%{_includedir}
132 #not installed by make install script
134 cd $RPM_BUILD_ROOT%{prefix}/lib && {
135 ln -s libdetect.so.0.0.0 libdetect.so.0
136 ln -s libdetect.so.0.0.0 libdetect.so
142 rm -rf $RPM_BUILD_ROOT
144 %post libs -p /sbin/ldconfig
145 %postun libs -p /sbin/ldconfig
148 %defattr(644,root,root,755)
149 %doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO VERSION docs/FAQ
150 %attr(755,root,root) %{_sbindir}/detect
152 %files libs -f detect.lang
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_libdir}/libdetect.so.*
157 %defattr(644,root,root,755)
158 %doc docs/{Programming,API,ISA-Structure,PCI-Structure}
159 %attr(755,root,root) %{_libdir}/libdetect.la
160 %attr(755,root,root) %{_libdir}/libdetect.so
161 %{_includedir}/detect.h
164 %defattr(644,root,root,755)
165 %{_libdir}/libdetect.a