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