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