]> git.pld-linux.org Git - packages/detect.git/blame - detect.spec
- updated gettext BR
[packages/detect.git] / detect.spec
CommitLineData
f978f45c 1Summary: Hardware detection library
8371fbd8 2Summary(pl.UTF-8): Biblioteka wykrywająca sprzęt
f978f45c
PG
3Name: detect
4Version: 0.9.72
97bad5d9 5Release: 3
f978f45c
PG
6License: GPL
7Group: Applications/System
45051d33 8Source0: ftp://ftp.linux-mandrake.com/pub/harddrake/SOURCES/%{name}-%{version}.tar.bz2
3e051dc9 9# Source0-md5: 0e001355ad217ce907c5ce95673ab4a4
47ab3315 10Patch0: %{name}-sound.patch
f367ceaf 11Patch1: %{name}-po.patch.bz2
47ab3315
KK
12# Patch1-md5: b01b0b1f10895628ab0f40daa855d2e9
13Patch2: %{name}-ppc.patch
14Patch3: %{name}-ppc2.patch
15Patch4: %{name}-ia64-io-h.patch
16Patch5: %{name}-kver-ppc.patch
17Patch6: %{name}-0.9.72-alpha.patch
18Patch7: %{name}-0.9.72-cpu-detect-ppc.patch
97bad5d9 19Patch8: %{name}-acam.patch
f978f45c 20URL: http://www.linux-mandrake.com/harddrake/
f978f45c
PG
21BuildRequires: autoconf
22BuildRequires: automake
23BuildRequires: bison
5962103e 24BuildRequires: gettext-tools
90d5f9b2
JB
25%ifarch %{ix86}
26BuildRequires: isapnptools-devel
27%endif
28BuildRequires: libtool
f978f45c 29BuildRequires: texinfo
f367ceaf 30%ifarch %{ix86}
f978f45c 31Requires: isapnptools >= 1.21
f978f45c
PG
32%endif
33Requires: %{name}-libs = %{version}
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
f367ceaf
PG
37Libdetect is a library for hardware detection. The API is easy to
38learn. The following hardware can be detected: CPU, Memory, Disk &
39partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound
40cards, Video cards, Scanners.
f978f45c 41
3afb13a5
JR
42%description -l pl.UTF-8
43libdetect to biblioteka do wykrywania sprzętu. Jej API jest łatwe do
44nauczenia. Może wykryć następujący sprzęt: procesor, pamięć, dyski i
45partycje, karty sieciowe, stacje dysków, modemy, myszy, SCSI, karty
46dźwiękowe, karty graficzne, skanery.
6d883a14 47
f978f45c 48%package libs
6d883a14 49Summary: The detect library itself, necessary to run the detect utility
8371fbd8 50Summary(pl.UTF-8): Właściwa biblioteka, niezbędna do działania narzędzia detect
f978f45c 51Group: Libraries
6d883a14 52Obsoletes: libdetect
f978f45c
PG
53
54%description libs
f367ceaf
PG
55Libdetect is a library for hardware detection. The API is easy to
56learn. The following hardware can be detected: CPU, Memory, Disk &
57partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound
58cards, Video cards, Scanners. This package contains the detect library
59itself, necessary to run the detect utility.
f978f45c 60
3afb13a5
JR
61%description libs -l pl.UTF-8
62libdetect to biblioteka do wykrywania sprzętu. Jej API jest łatwe do
63nauczenia. Może wykryć następujący sprzęt: procesor, pamięć, dyski i
64partycje, karty sieciowe, stacje dysków, modemy, myszy, SCSI, karty
65dźwiękowe, karty graficzne, skanery. Ten pakiet zawiera właściwą
66bibliotekę, niezbędną do działania narzędzia wykrywającego (polecenia
6d883a14
JB
67detect).
68
f978f45c 69%package libs-devel
6d883a14 70Summary: Header files for developing apps which will use detect
8371fbd8 71Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów używających detect
f978f45c
PG
72Group: Development/Libraries
73Requires: detect-libs = %{version}
f978f45c 74Obsoletes: detect-devel
6d883a14 75Obsoletes: libdetect-devel
f978f45c
PG
76
77%description libs-devel
6d883a14
JB
78Header files for developing apps which will use detect library.
79
3afb13a5
JR
80%description libs-devel -l pl.UTF-8
81Pliki nagłówkowe do tworzenia programów używających biblioteki detect.
f978f45c
PG
82
83%package libs-static
6d883a14 84Summary: Static detect library
8371fbd8 85Summary(pl.UTF-8): Statyczna biblioteka detect
f978f45c 86Group: Development/Libraries
d2bdf155 87Requires: %{name}-libs-devel = %{version}
f978f45c
PG
88
89%description libs-static
6d883a14 90Static version of detect library.
f978f45c 91
3afb13a5 92%description libs-static -l pl.UTF-8
6d883a14 93Statyczna 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
110ma acconfig.h config.h.in
f978f45c
PG
111
112%build
113rm -f missing
f367ceaf 114CFLAGS="%{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 122cat po/Makefile.in > po/Makefile
f367ceaf 123%{__make}
f978f45c
PG
124
125%install
f367ceaf 126rm -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
134rm -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
This page took 0.274314 seconds and 4 git commands to generate.