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