]>
Commit | Line | Data |
---|---|---|
f978f45c | 1 | Summary: Hardware detection library |
8371fbd8 | 2 | Summary(pl.UTF-8): Biblioteka wykrywająca sprzęt |
f978f45c PG |
3 | Name: detect |
4 | Version: 0.9.72 | |
97bad5d9 | 5 | Release: 3 |
f978f45c PG |
6 | License: GPL |
7 | Group: Applications/System | |
45051d33 | 8 | Source0: ftp://ftp.linux-mandrake.com/pub/harddrake/SOURCES/%{name}-%{version}.tar.bz2 |
3e051dc9 | 9 | # Source0-md5: 0e001355ad217ce907c5ce95673ab4a4 |
47ab3315 | 10 | Patch0: %{name}-sound.patch |
f367ceaf | 11 | Patch1: %{name}-po.patch.bz2 |
47ab3315 KK |
12 | # Patch1-md5: b01b0b1f10895628ab0f40daa855d2e9 |
13 | Patch2: %{name}-ppc.patch | |
14 | Patch3: %{name}-ppc2.patch | |
15 | Patch4: %{name}-ia64-io-h.patch | |
16 | Patch5: %{name}-kver-ppc.patch | |
17 | Patch6: %{name}-0.9.72-alpha.patch | |
18 | Patch7: %{name}-0.9.72-cpu-detect-ppc.patch | |
97bad5d9 | 19 | Patch8: %{name}-acam.patch |
f978f45c | 20 | URL: http://www.linux-mandrake.com/harddrake/ |
f978f45c PG |
21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
23 | BuildRequires: bison | |
5962103e | 24 | BuildRequires: gettext-tools |
90d5f9b2 JB |
25 | %ifarch %{ix86} |
26 | BuildRequires: isapnptools-devel | |
27 | %endif | |
28 | BuildRequires: libtool | |
f978f45c | 29 | BuildRequires: texinfo |
f367ceaf | 30 | %ifarch %{ix86} |
f978f45c | 31 | Requires: isapnptools >= 1.21 |
f978f45c PG |
32 | %endif |
33 | Requires: %{name}-libs = %{version} | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
f367ceaf PG |
37 | Libdetect is a library for hardware detection. The API is easy to |
38 | learn. The following hardware can be detected: CPU, Memory, Disk & | |
39 | partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound | |
40 | cards, Video cards, Scanners. | |
f978f45c | 41 | |
3afb13a5 JR |
42 | %description -l pl.UTF-8 |
43 | libdetect to biblioteka do wykrywania sprzętu. Jej API jest łatwe do | |
44 | nauczenia. Może wykryć następujący sprzęt: procesor, pamięć, dyski i | |
45 | partycje, karty sieciowe, stacje dysków, modemy, myszy, SCSI, karty | |
46 | dźwiękowe, karty graficzne, skanery. | |
6d883a14 | 47 | |
f978f45c | 48 | %package libs |
6d883a14 | 49 | Summary: The detect library itself, necessary to run the detect utility |
8371fbd8 | 50 | Summary(pl.UTF-8): Właściwa biblioteka, niezbędna do działania narzędzia detect |
f978f45c | 51 | Group: Libraries |
6d883a14 | 52 | Obsoletes: libdetect |
f978f45c PG |
53 | |
54 | %description libs | |
f367ceaf PG |
55 | Libdetect is a library for hardware detection. The API is easy to |
56 | learn. The following hardware can be detected: CPU, Memory, Disk & | |
57 | partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound | |
58 | cards, Video cards, Scanners. This package contains the detect library | |
59 | itself, necessary to run the detect utility. | |
f978f45c | 60 | |
3afb13a5 JR |
61 | %description libs -l pl.UTF-8 |
62 | libdetect to biblioteka do wykrywania sprzętu. Jej API jest łatwe do | |
63 | nauczenia. Może wykryć następujący sprzęt: procesor, pamięć, dyski i | |
64 | partycje, karty sieciowe, stacje dysków, modemy, myszy, SCSI, karty | |
65 | dźwiękowe, karty graficzne, skanery. Ten pakiet zawiera właściwą | |
66 | bibliotekę, niezbędną do działania narzędzia wykrywającego (polecenia | |
6d883a14 JB |
67 | detect). |
68 | ||
f978f45c | 69 | %package libs-devel |
6d883a14 | 70 | Summary: Header files for developing apps which will use detect |
8371fbd8 | 71 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów używających detect |
f978f45c PG |
72 | Group: Development/Libraries |
73 | Requires: detect-libs = %{version} | |
f978f45c | 74 | Obsoletes: detect-devel |
6d883a14 | 75 | Obsoletes: libdetect-devel |
f978f45c PG |
76 | |
77 | %description libs-devel | |
6d883a14 JB |
78 | Header files for developing apps which will use detect library. |
79 | ||
3afb13a5 JR |
80 | %description libs-devel -l pl.UTF-8 |
81 | Pliki nagłówkowe do tworzenia programów używających biblioteki detect. | |
f978f45c PG |
82 | |
83 | %package libs-static | |
6d883a14 | 84 | Summary: Static detect library |
8371fbd8 | 85 | Summary(pl.UTF-8): Statyczna biblioteka detect |
f978f45c | 86 | Group: Development/Libraries |
d2bdf155 | 87 | Requires: %{name}-libs-devel = %{version} |
f978f45c PG |
88 | |
89 | %description libs-static | |
6d883a14 | 90 | Static version of detect library. |
f978f45c | 91 | |
3afb13a5 | 92 | %description libs-static -l pl.UTF-8 |
6d883a14 | 93 | Statyczna wersja biblioteki detect. |
f978f45c | 94 | |
6d883a14 | 95 | %prep |
3323fa4c | 96 | %setup -q -n %{name} |
f367ceaf | 97 | %patch0 -p1 |
f978f45c PG |
98 | %patch1 -p1 |
99 | %patch2 -p1 | |
100 | %patch3 -p1 | |
101 | %patch4 -p1 | |
102 | %ifarch ppc | |
103 | %patch5 -p1 | |
104 | %patch7 -p1 | |
105 | %endif | |
106 | %ifarch alpha | |
107 | %patch6 -p1 | |
108 | %endif | |
97bad5d9 | 109 | %patch8 -p1 |
110 | ma acconfig.h config.h.in | |
f978f45c PG |
111 | |
112 | %build | |
113 | rm -f missing | |
f367ceaf | 114 | CFLAGS="%{rpmcflags} -I%{_includedir}/isapnp" |
f978f45c PG |
115 | %{__libtoolize} |
116 | %{__gettextize} | |
90d5f9b2 | 117 | %{__aclocal} |
f978f45c PG |
118 | %{__autoconf} |
119 | %{__automake} | |
f1a81abb | 120 | %{__autoheader} |
f367ceaf | 121 | %configure |
f978f45c | 122 | cat po/Makefile.in > po/Makefile |
f367ceaf | 123 | %{__make} |
f978f45c PG |
124 | |
125 | %install | |
f367ceaf | 126 | rm -rf $RPM_BUILD_ROOT |
45432c0d | 127 | |
128 | %{__make} install \ | |
129 | DESTDIR=$RPM_BUILD_ROOT | |
f978f45c | 130 | |
f978f45c PG |
131 | %find_lang detect |
132 | ||
f978f45c PG |
133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
6d883a14 JB |
136 | %post libs -p /sbin/ldconfig |
137 | %postun libs -p /sbin/ldconfig | |
138 | ||
f978f45c PG |
139 | %files |
140 | %defattr(644,root,root,755) | |
45432c0d | 141 | %doc AUTHORS BUGS ChangeLog NEWS README docs/FAQ |
f978f45c PG |
142 | %attr(755,root,root) %{_sbindir}/detect |
143 | ||
144 | %files libs -f detect.lang | |
145 | %defattr(644,root,root,755) | |
45432c0d | 146 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
147 | %{_datadir}/detect | |
f978f45c PG |
148 | |
149 | %files libs-devel | |
150 | %defattr(644,root,root,755) | |
151 | %doc docs/{Programming,API,ISA-Structure,PCI-Structure} | |
45432c0d | 152 | %attr(755,root,root) %{_libdir}/lib*.so |
d2bdf155 | 153 | %{_libdir}/lib*.la |
f978f45c PG |
154 | %{_includedir}/detect.h |
155 | ||
156 | %files libs-static | |
157 | %defattr(644,root,root,755) | |
158 | %{_libdir}/libdetect.a |