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