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