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