]> git.pld-linux.org Git - packages/detect.git/blob - detect.spec
- tabs in preamble
[packages/detect.git] / detect.spec
1 Summary:        Hardware detection library
2 Summary(pl.UTF-8):      Biblioteka wykrywająca sprzęt
3 Name:           detect
4 Version:        0.9.72
5 Release:        3
6 License:        GPL
7 Group:          Applications/System
8 Source0:        ftp://ftp.linux-mandrake.com/pub/harddrake/SOURCES/%{name}-%{version}.tar.bz2
9 # Source0-md5:  0e001355ad217ce907c5ce95673ab4a4
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
18 Patch8:         %{name}-acam.patch
19 URL:            http://www.linux-mandrake.com/harddrake/
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  bison
23 BuildRequires:  gettext-devel
24 %ifarch %{ix86}
25 BuildRequires:  isapnptools-devel
26 %endif
27 BuildRequires:  libtool
28 BuildRequires:  texinfo
29 %ifarch %{ix86}
30 Requires:       isapnptools >= 1.21
31 %endif
32 Requires:       %{name}-libs = %{version}
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
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.
40
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.
46
47 %package libs
48 Summary:        The detect library itself, necessary to run the detect utility
49 Summary(pl.UTF-8):      Właściwa biblioteka, niezbędna do działania narzędzia detect
50 Group:          Libraries
51 Obsoletes:      libdetect
52
53 %description libs
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.
59
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
66 detect).
67
68 %package libs-devel
69 Summary:        Header files for developing apps which will use detect
70 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia programów używających detect
71 Group:          Development/Libraries
72 Requires:       detect-libs = %{version}
73 Obsoletes:      detect-devel
74 Obsoletes:      libdetect-devel
75
76 %description libs-devel
77 Header files for developing apps which will use detect library.
78
79 %description libs-devel -l pl.UTF-8
80 Pliki nagłówkowe do tworzenia programów używających biblioteki detect.
81
82 %package libs-static
83 Summary:        Static detect library
84 Summary(pl.UTF-8):      Statyczna biblioteka detect
85 Group:          Development/Libraries
86 Requires:       %{name}-libs-devel = %{version}
87
88 %description libs-static
89 Static version of detect library.
90
91 %description libs-static -l pl.UTF-8
92 Statyczna wersja biblioteki detect.
93
94 %prep
95 %setup -q -n %{name}
96 %patch0 -p1
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
108 %patch8 -p1
109 ma acconfig.h config.h.in
110
111 %build
112 rm -f missing
113 CFLAGS="%{rpmcflags} -I%{_includedir}/isapnp"
114 %{__libtoolize}
115 %{__gettextize}
116 %{__aclocal}
117 %{__autoconf}
118 %{__automake}
119 %{__autoheader}
120 %configure
121 cat po/Makefile.in > po/Makefile
122 %{__make}
123
124 %install
125 rm -rf $RPM_BUILD_ROOT
126
127 %{__make} install \
128         DESTDIR=$RPM_BUILD_ROOT
129
130 %find_lang detect
131
132 %clean
133 rm -rf $RPM_BUILD_ROOT
134
135 %post   libs -p /sbin/ldconfig
136 %postun libs -p /sbin/ldconfig
137
138 %files
139 %defattr(644,root,root,755)
140 %doc AUTHORS BUGS ChangeLog NEWS README docs/FAQ
141 %attr(755,root,root) %{_sbindir}/detect
142
143 %files libs -f detect.lang
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_libdir}/lib*.so.*.*
146 %{_datadir}/detect
147
148 %files libs-devel
149 %defattr(644,root,root,755)
150 %doc docs/{Programming,API,ISA-Structure,PCI-Structure}
151 %attr(755,root,root) %{_libdir}/lib*.so
152 %{_libdir}/lib*.la
153 %{_includedir}/detect.h
154
155 %files libs-static
156 %defattr(644,root,root,755)
157 %{_libdir}/libdetect.a
This page took 0.084146 seconds and 3 git commands to generate.