]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without python # Python binding | |
4 | %bcond_without tcl # Tcl binding | |
5 | %bcond_without ruby # Ruby binding | |
6 | # | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | %define pdir RRDp | |
9 | Summary: RRDtool - round robin database | |
10 | Summary(pl.UTF-8): RRDtool - baza danych typu round-robin | |
11 | Summary(pt_BR.UTF-8): Round Robin Database, uma ferramenta para construção de gráficos | |
12 | Summary(ru.UTF-8): RRDtool - база данных с "циклическим обновлением" | |
13 | Summary(uk.UTF-8): RRDtool - це система зберігання та показу серійних даних | |
14 | Name: rrdtool | |
15 | Version: 1.4.5 | |
16 | Release: 1 | |
17 | License: GPL v2+ + FLOSS exception | |
18 | Group: Applications/Databases | |
19 | Source0: http://oss.oetiker.ch/rrdtool/pub/%{name}-%{version}.tar.gz | |
20 | # Source0-md5: 4d116dba9a0888d8aaac179e35d3980a | |
21 | Patch0: %{name}-tcl-path.patch | |
22 | URL: http://oss.oetiker.ch/rrdtool/ | |
23 | BuildRequires: autoconf >= 2.60 | |
24 | BuildRequires: automake | |
25 | BuildRequires: cairo-devel >= 1.4.6 | |
26 | BuildRequires: gettext-devel >= 0.18 | |
27 | BuildRequires: glib2-devel >= 1:2.12.12 | |
28 | BuildRequires: intltool | |
29 | BuildRequires: libdbi-devel | |
30 | BuildRequires: libtool | |
31 | BuildRequires: libxml2-devel >= 2.6.31 | |
32 | BuildRequires: lua51-devel >= 5.1 | |
33 | BuildRequires: pango-devel >= 1:1.17 | |
34 | BuildRequires: perl-devel >= 1:5.8.0 | |
35 | BuildRequires: pkgconfig | |
36 | %if %{with python} | |
37 | BuildRequires: python >= 2.3 | |
38 | BuildRequires: python-devel >= 2.3 | |
39 | %endif | |
40 | BuildRequires: rpm-perlprov | |
41 | BuildRequires: rpm-pythonprov | |
42 | BuildRequires: rpmbuild(macros) >= 1.272 | |
43 | %{?with_ruby:BuildRequires: ruby-devel} | |
44 | %{?with_tcl:BuildRequires: tcl-devel} | |
45 | Requires: cairo >= 1.4.6 | |
46 | Requires: glib2 >= 1:2.12.12 | |
47 | Requires: libxml2 >= 2.6.31 | |
48 | Requires: pango >= 1:1.17 | |
49 | Suggests: fonts-TTF-DejaVu | |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
51 | ||
52 | %description | |
53 | RRD is the Acronym for Round Robin Database. RRD is a system to store | |
54 | and display time-series data (i.e. network bandwidth, machine-room | |
55 | temperature, server load average). It stores the data in a very | |
56 | compact way that will not expand over time, and it presents useful | |
57 | graphs by processing the data to enforce a certain data density. It | |
58 | can be used either via simple wrapper scripts (from shell or Perl) or | |
59 | via frontends that poll network devices and put a friendly user | |
60 | interface on it. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | RRD jest akronimem Round Robin Database. Jest to system pozwalający na | |
64 | składowanie i wyświetlanie czasowych serii danych (np. przepustowość | |
65 | sieci, temperatura w pomieszczeniu, obciążenie serwera). Składuje dane | |
66 | w "skondensowanej" postaci, która nie rozrasta się z biegiem czasu | |
67 | oraz pozwala na produkowanie wykresów z użytecznymi danymi. Może być | |
68 | używane poprzez prosty skrypcik (shell lub perl), frontendy czy inne | |
69 | interfejsy użytkownika. | |
70 | ||
71 | %description -l pt_BR.UTF-8 | |
72 | RRD e' um sistema para armazenar e apresentar series temporais de | |
73 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). | |
74 | Os dados são armazenados em uma forma compacta que não se expande com | |
75 | o tempo, e gráficos podem ser apresentados processando-se esses dados. | |
76 | RRD pode ser utilizado com wrapper scripts (em shell ou Perl) ou | |
77 | através de front-ends. | |
78 | ||
79 | %description -l ru.UTF-8 | |
80 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
81 | обновлением"). RRD - система для сохранения и показа информации за | |
82 | определенный промежуток времени (например скорость передачи данных в | |
83 | сети, температуру в машинном зале, среднюю загрузку сервера). Она | |
84 | сохраняет данные в очень компактной форме, так что данные не будут | |
85 | занимать все больше и больше места с течением времени и предоставляет | |
86 | разумное графическое представление информации. Может быть использована | |
87 | как из простых скриптов (shell, perl, etc) или встроена в программы, | |
88 | которые опрашивают сетевые устройства и показывают данные в удобном | |
89 | для пользователя виде. | |
90 | ||
91 | %description -l uk.UTF-8 | |
92 | Назва RRD - це акронім для Round Robin Database. RRD - це система | |
93 | зберігання та показу серійних даних (наприклад, полоси каналу, | |
94 | температура гермозони, завантаження сервера). RRD зберігає дані дуже | |
95 | компактно і так, що розмір бази даних не збільшується з часом, та | |
96 | презентує корисні графіки обробляючи дані з тим, щоб встановити | |
97 | потрібну щільність вибірки в часі. RRD можна використовувати як через | |
98 | прості wrapper-скрипти, так і через фронтенди, що опитують мережеві | |
99 | пристрої та надають дружній інтерфейс користувача. | |
100 | ||
101 | %package devel | |
102 | Summary: RRDtool development | |
103 | Summary(pl.UTF-8): Narzędzia programistyczne pakietu RRDtool | |
104 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão da librrd | |
105 | Summary(ru.UTF-8): RRDtool - Заголовки, необходимые для разработки | |
106 | Summary(uk.UTF-8): RRDtool - бібліотечні лінки та файли хедерів | |
107 | Group: Development/Libraries | |
108 | Requires: %{name} = %{version}-%{release} | |
109 | Requires: cairo-devel >= 1.4.6 | |
110 | Requires: glib2-devel >= 1:2.12.12 | |
111 | Requires: libdbi-devel | |
112 | Requires: libxml2-devel >= 2.6.31 | |
113 | Requires: pango-devel >= 1:1.17 | |
114 | ||
115 | %description devel | |
116 | RRDtool development files. | |
117 | ||
118 | %description devel -l pl.UTF-8 | |
119 | Narzędzia programistyczne pakietu RRDtool. | |
120 | ||
121 | %description devel -l pt_BR.UTF-8 | |
122 | RRD e' um sistema para armazenar e apresentar series temporais de | |
123 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). | |
124 | ||
125 | Este pacote contem arquivos de desenvolvimento do RRD. | |
126 | ||
127 | %description devel -l ru.UTF-8 | |
128 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
129 | обновлением"). RRD - система для сохранения и показа информации за | |
130 | определенный промежуток времени (например скорость передачи данных в | |
131 | сети, температуру в машинном зале, среднюю загрузку сервера). | |
132 | ||
133 | Этот пакет позволяет создавать программы, которые используют это | |
134 | библиотеку непосредственно. | |
135 | ||
136 | %description devel -l uk.UTF-8 | |
137 | RRDtool - библиотечные линки и файлы хедеров. | |
138 | ||
139 | %package static | |
140 | Summary: RRDtool static library | |
141 | Summary(pl.UTF-8): Statyczne biblioteki RRDtool | |
142 | Summary(pt_BR.UTF-8): Biblioteca estática librrd | |
143 | Summary(ru.UTF-8): RRDtool - Статические библиотеки | |
144 | Summary(uk.UTF-8): Статичні бібліотеки RRDtool | |
145 | Group: Development/Libraries | |
146 | Requires: %{name}-devel = %{version}-%{release} | |
147 | ||
148 | %description static | |
149 | RRDtool static library. | |
150 | ||
151 | %description static -l pl.UTF-8 | |
152 | Statyczne biblioteki RRDtool. | |
153 | ||
154 | %description static -l pt_BR.UTF-8 | |
155 | RRD e' um sistema para armazenar e apresentar series temporais de | |
156 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). | |
157 | ||
158 | Este pacote contem a biblioteca estática do RRD. | |
159 | ||
160 | %description static -l ru.UTF-8 | |
161 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
162 | обновлением"). RRD - система для сохранения и показа информации за | |
163 | определенный промежуток времени (например скорость передачи данных в | |
164 | сети, температуру в машинном зале, среднюю загрузку сервера). Этот | |
165 | пакет позволяет создавать статически слинкованные программы, которые | |
166 | используют это библиотеку непосредственно. | |
167 | ||
168 | %description static -l uk.UTF-8 | |
169 | Статичні бібліотеки для розробки програм, що використовують RRDtool. | |
170 | ||
171 | %package -n lua-rrdtool | |
172 | Summary: RRD module for Lua | |
173 | Summary(pl.UTF-8): Moduł RRD dla języka Lua | |
174 | Group: Development/Languages | |
175 | Requires: %{name} = %{version}-%{release} | |
176 | Requires: lua51 | |
177 | ||
178 | %description -n lua-rrdtool | |
179 | Lua interface to RRDtool. | |
180 | ||
181 | %description -n lua-rrdtool -l pl.UTF-8 | |
182 | Interfejs języka Lua do RRDtoola. | |
183 | ||
184 | %package -n perl-rrdtool | |
185 | Summary: Access RRDtool from Perl | |
186 | Summary(pl.UTF-8): Dostęp do RRDtoola z poziomu Perla | |
187 | Group: Development/Languages/Perl | |
188 | Requires: %{name} = %{version}-%{release} | |
189 | ||
190 | %description -n perl-rrdtool | |
191 | Perl modules to access RRDtool: RRDs to access RRDtool as shared | |
192 | module and RRDp to access RRDtool via a set of pipes. | |
193 | ||
194 | %description -n perl-rrdtool -l pl.UTF-8 | |
195 | Moduły Perla pozwalające na dostęp do RRDtoola: RRDs do dostępu do | |
196 | RRDtoola jako modułu dzielonego oraz RRDp do dostępu poprzez zestaw | |
197 | potoków. | |
198 | ||
199 | %package -n python-rrdtool | |
200 | Summary: Python interface to RRDtool | |
201 | Summary(pl.UTF-8): Pythonowy interfejs do RRDtoola | |
202 | Group: Development/Languages/Python | |
203 | Requires: %{name} = %{version}-%{release} | |
204 | %pyrequires_eq python-libs | |
205 | ||
206 | %description -n python-rrdtool | |
207 | Python interface to RRDtool, the graphing and logging utility. | |
208 | ||
209 | %description -n python-rrdtool -l pl.UTF-8 | |
210 | Interfejs Pythona do RRDtoola - narzędzia do tworzenia wykresów i | |
211 | logowania. | |
212 | ||
213 | %package -n ruby-rrdtool | |
214 | Summary: Ruby interface to RRDtool | |
215 | Summary(pl.UTF-8): Interfejs języka Ruby do RRDtoola | |
216 | Group: Development/Languages/Python | |
217 | Requires: %{name} = %{version}-%{release} | |
218 | %{?ruby_mod_ver_requires_eq} | |
219 | ||
220 | %description -n ruby-rrdtool | |
221 | Ruby interface to RRDtool, the graphing and logging utility. | |
222 | ||
223 | %description -n ruby-rrdtool -l pl.UTF-8 | |
224 | Interfejs języka Ruby do RRDtoola - narzędzia do tworzenia wykresów i | |
225 | logowania. | |
226 | ||
227 | %package -n tcl-rrdtool | |
228 | Summary: Tcl extension to access the RRD library | |
229 | Summary(pl.UTF-8): Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl | |
230 | Group: Development/Languages/Tcl | |
231 | Requires: %{name} = %{version}-%{release} | |
232 | Requires: tcl | |
233 | ||
234 | %description -n tcl-rrdtool | |
235 | Tcl extension to access the RRD library. | |
236 | ||
237 | %description -n tcl-rrdtool -l pl.UTF-8 | |
238 | Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl. | |
239 | ||
240 | %prep | |
241 | %setup -q | |
242 | %patch0 -p1 | |
243 | ||
244 | sed -i -e 's#\$TCL_PACKAGE_PATH#%{_prefix}/lib#g' configure.ac | |
245 | sed -i -e 's#/lib/lua/#/%{_lib}/lua/#g' configure.ac | |
246 | ||
247 | %build | |
248 | %{__libtoolize} | |
249 | %{__aclocal} -I m4 | |
250 | %{__autoconf} | |
251 | %{__autoheader} | |
252 | %{__automake} | |
253 | %configure \ | |
254 | LUA=/usr/bin/lua51 \ | |
255 | --disable-silent-rules \ | |
256 | %{!?with_tcl:--disable-tcl} \ | |
257 | %{!?with_ruby:--disable-ruby} \ | |
258 | --with-perl-options="INSTALLDIRS=vendor" | |
259 | ||
260 | # empty RUBY_MAKE_OPTIONS as workaround for some make weirdness | |
261 | # (tried to install without DESTDIR on plain make) | |
262 | %{__make} \ | |
263 | RUBY_MAKE_OPTIONS= \ | |
264 | LUA_CFLAGS=-I/usr/include/lua51 | |
265 | ||
266 | %install | |
267 | rm -rf $RPM_BUILD_ROOT | |
268 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
269 | ||
270 | %{__make} install \ | |
271 | DESTDIR=$RPM_BUILD_ROOT \ | |
272 | perl_sitearch=%{perl_vendorarch} \ | |
273 | pythondir=%{py_sitedir} \ | |
274 | examplesdir=%{_examplesdir}/%{name}-%{version} \ | |
275 | RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_archdir} | |
276 | ||
277 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lua/5.1/*.{la,a} | |
278 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/RRDs/.packlist | |
279 | ||
280 | %clean | |
281 | rm -rf $RPM_BUILD_ROOT | |
282 | ||
283 | %post -p /sbin/ldconfig | |
284 | %postun -p /sbin/ldconfig | |
285 | ||
286 | %files | |
287 | %defattr(644,root,root,755) | |
288 | %doc CHANGES CONTRIBUTORS NEWS README THREADS TODO doc/*.html | |
289 | %attr(755,root,root) %{_bindir}/rrd* | |
290 | %attr(755,root,root) %{_libdir}/librrd.so.*.*.* | |
291 | %attr(755,root,root) %ghost %{_libdir}/librrd.so.4 | |
292 | %attr(755,root,root) %{_libdir}/librrd_th.so.*.*.* | |
293 | %attr(755,root,root) %ghost %{_libdir}/librrd_th.so.4 | |
294 | %{_mandir}/man1/bin_dec_hex.1* | |
295 | %{_mandir}/man1/cdeftutorial.1* | |
296 | %{_mandir}/man1/rpntutorial.1* | |
297 | %{_mandir}/man1/rrd*.1* | |
298 | ||
299 | %files devel | |
300 | %defattr(644,root,root,755) | |
301 | %attr(755,root,root) %{_libdir}/librrd.so | |
302 | %attr(755,root,root) %{_libdir}/librrd_th.so | |
303 | %{_libdir}/librrd.la | |
304 | %{_libdir}/librrd_th.la | |
305 | %{_includedir}/rrd*.h | |
306 | %{_pkgconfigdir}/librrd.pc | |
307 | %{_examplesdir}/%{name}-%{version} | |
308 | %{_mandir}/man3/librrd.3* | |
309 | ||
310 | %files static | |
311 | %defattr(644,root,root,755) | |
312 | %{_libdir}/librrd.a | |
313 | %{_libdir}/librrd_th.a | |
314 | ||
315 | %files -n lua-rrdtool | |
316 | %defattr(644,root,root,755) | |
317 | %attr(755,root,root) %{_libdir}/lua/5.1/rrd.so* | |
318 | ||
319 | %files -n perl-rrdtool | |
320 | %defattr(644,root,root,755) | |
321 | %{perl_vendorlib}/RRDp.pm | |
322 | %{perl_vendorarch}/RRDs.pm | |
323 | %dir %{perl_vendorarch}/auto/RRDs | |
324 | %{perl_vendorarch}/auto/RRDs/RRDs.bs | |
325 | %attr(755,root,root) %{perl_vendorarch}/auto/RRDs/RRDs.so | |
326 | %{_mandir}/man3/RRDp.3* | |
327 | %{_mandir}/man3/RRDs.3* | |
328 | ||
329 | %if %{with python} | |
330 | %files -n python-rrdtool | |
331 | %defattr(644,root,root,755) | |
332 | %attr(755,root,root) %{py_sitedir}/rrdtoolmodule.so | |
333 | %if "%{py_ver}" > "2.4" | |
334 | %{py_sitedir}/py_rrdtool-*.egg-info | |
335 | %endif | |
336 | %endif | |
337 | ||
338 | %if %{with ruby} | |
339 | %files -n ruby-rrdtool | |
340 | %defattr(644,root,root,755) | |
341 | %attr(755,root,root) %{ruby_archdir}/RRD.so | |
342 | %endif | |
343 | ||
344 | %if %{with tcl} | |
345 | %files -n tcl-rrdtool | |
346 | %defattr(644,root,root,755) | |
347 | %attr(755,root,root) %{_libdir}/tclrrd%{version}.so | |
348 | %{_prefix}/lib/tclrrd%{version} | |
349 | %endif |