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