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