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