]>
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 |
ae6611d4 | 18 | Version: 1.4.5 |
ba6feeac | 19 | Release: 5 |
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 |
ae6611d4 | 23 | # Source0-md5: 4d116dba9a0888d8aaac179e35d3980a |
455b789f | 24 | Patch0: %{name}-tcl-path.patch |
ba6feeac | 25 | Patch1: %{name}-am.patch |
fb24adae | 26 | URL: http://oss.oetiker.ch/rrdtool/ |
82117606 | 27 | BuildRequires: autoconf >= 2.60 |
455b789f | 28 | BuildRequires: automake |
82117606 JB |
29 | BuildRequires: cairo-devel >= 1.4.6 |
30 | BuildRequires: gettext-devel >= 0.18 | |
31 | BuildRequires: glib2-devel >= 1:2.12.12 | |
ba6feeac | 32 | BuildRequires: groff |
de9013f2 | 33 | BuildRequires: intltool |
d84cd5cf | 34 | BuildRequires: libdbi-devel |
1bed9ed9 | 35 | BuildRequires: libtool |
82117606 | 36 | BuildRequires: libxml2-devel >= 2.6.31 |
6709d520 | 37 | BuildRequires: lua51 >= 5.1 |
82117606 JB |
38 | BuildRequires: lua51-devel >= 5.1 |
39 | BuildRequires: pango-devel >= 1:1.17 | |
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} | |
82117606 JB |
51 | Requires: cairo >= 1.4.6 |
52 | Requires: glib2 >= 1:2.12.12 | |
53 | Requires: libxml2 >= 2.6.31 | |
54 | Requires: pango >= 1:1.17 | |
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} |
82117606 JB |
115 | Requires: cairo-devel >= 1.4.6 |
116 | Requires: glib2-devel >= 1:2.12.12 | |
d84cd5cf | 117 | Requires: libdbi-devel |
82117606 JB |
118 | Requires: libxml2-devel >= 2.6.31 |
119 | Requires: pango-devel >= 1:1.17 | |
0b1f22e5 | 120 | |
2b7e312b | 121 | %description devel |
52087078 | 122 | RRDtool development files. |
5c73d7ab | 123 | |
b866ac6b JR |
124 | %description devel -l pl.UTF-8 |
125 | Narzędzia programistyczne pakietu RRDtool. | |
2b7e312b | 126 | |
b866ac6b | 127 | %description devel -l pt_BR.UTF-8 |
7f366ed7 | 128 | RRD e' um sistema para armazenar e apresentar series temporais de |
b866ac6b | 129 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). |
7f366ed7 | 130 | |
131 | Este pacote contem arquivos de desenvolvimento do RRD. | |
132 | ||
b866ac6b JR |
133 | %description devel -l ru.UTF-8 |
134 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
135 | обновлением"). RRD - система для сохранения и показа информации за | |
136 | определенный промежуток времени (например скорость передачи данных в | |
137 | сети, температуру в машинном зале, среднюю загрузку сервера). | |
276d47c0 | 138 | |
b866ac6b JR |
139 | Этот пакет позволяет создавать программы, которые используют это |
140 | библиотеку непосредственно. | |
276d47c0 | 141 | |
b866ac6b JR |
142 | %description devel -l uk.UTF-8 |
143 | RRDtool - библиотечные линки и файлы хедеров. | |
276d47c0 | 144 | |
2b7e312b | 145 | %package static |
52087078 | 146 | Summary: RRDtool static library |
851c0eda ER |
147 | Summary(pl.UTF-8): Statyczne biblioteki RRDtool |
148 | Summary(pt_BR.UTF-8): Biblioteca estática librrd | |
149 | Summary(ru.UTF-8): RRDtool - Статические библиотеки | |
150 | Summary(uk.UTF-8): Статичні бібліотеки RRDtool | |
2b7e312b | 151 | Group: Development/Libraries |
abade533 | 152 | Requires: %{name}-devel = %{version}-%{release} |
5c73d7ab | 153 | |
2b7e312b | 154 | %description static |
52087078 | 155 | RRDtool static library. |
5c73d7ab | 156 | |
b866ac6b | 157 | %description static -l pl.UTF-8 |
482aa046 | 158 | Statyczne biblioteki RRDtool. |
9eb47203 | 159 | |
b866ac6b | 160 | %description static -l pt_BR.UTF-8 |
7f366ed7 | 161 | RRD e' um sistema para armazenar e apresentar series temporais de |
b866ac6b | 162 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). |
7f366ed7 | 163 | |
b866ac6b | 164 | Este pacote contem a biblioteca estática do RRD. |
7f366ed7 | 165 | |
b866ac6b JR |
166 | %description static -l ru.UTF-8 |
167 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
168 | обновлением"). RRD - система для сохранения и показа информации за | |
169 | определенный промежуток времени (например скорость передачи данных в | |
170 | сети, температуру в машинном зале, среднюю загрузку сервера). Этот | |
171 | пакет позволяет создавать статически слинкованные программы, которые | |
172 | используют это библиотеку непосредственно. | |
276d47c0 | 173 | |
b866ac6b JR |
174 | %description static -l uk.UTF-8 |
175 | Статичні бібліотеки для розробки програм, що використовують RRDtool. | |
276d47c0 | 176 | |
82117606 JB |
177 | %package -n lua-rrdtool |
178 | Summary: RRD module for Lua | |
179 | Summary(pl.UTF-8): Moduł RRD dla języka Lua | |
180 | Group: Development/Languages | |
181 | Requires: %{name} = %{version}-%{release} | |
182 | Requires: lua51 | |
183 | ||
184 | %description -n lua-rrdtool | |
185 | Lua interface to RRDtool. | |
186 | ||
187 | %description -n lua-rrdtool -l pl.UTF-8 | |
188 | Interfejs języka Lua do RRDtoola. | |
189 | ||
d91652c1 JB |
190 | %package -n perl-rrdtool |
191 | Summary: Access RRDtool from Perl | |
851c0eda | 192 | Summary(pl.UTF-8): Dostęp do RRDtoola z poziomu Perla |
d91652c1 JB |
193 | Group: Development/Languages/Perl |
194 | Requires: %{name} = %{version}-%{release} | |
195 | ||
196 | %description -n perl-rrdtool | |
197 | Perl modules to access RRDtool: RRDs to access RRDtool as shared | |
198 | module and RRDp to access RRDtool via a set of pipes. | |
199 | ||
b866ac6b JR |
200 | %description -n perl-rrdtool -l pl.UTF-8 |
201 | Moduły Perla pozwalające na dostęp do RRDtoola: RRDs do dostępu do | |
202 | RRDtoola jako modułu dzielonego oraz RRDp do dostępu poprzez zestaw | |
203 | potoków. | |
d91652c1 | 204 | |
8a20d376 JB |
205 | %package -n python-rrdtool |
206 | Summary: Python interface to RRDtool | |
851c0eda | 207 | Summary(pl.UTF-8): Pythonowy interfejs do RRDtoola |
8a20d376 JB |
208 | Group: Development/Languages/Python |
209 | Requires: %{name} = %{version}-%{release} | |
96b3cd4d | 210 | %pyrequires_eq python-libs |
8a20d376 JB |
211 | |
212 | %description -n python-rrdtool | |
213 | Python interface to RRDtool, the graphing and logging utility. | |
214 | ||
b866ac6b JR |
215 | %description -n python-rrdtool -l pl.UTF-8 |
216 | Interfejs Pythona do RRDtoola - narzędzia do tworzenia wykresów i | |
8a20d376 JB |
217 | logowania. |
218 | ||
2d179bb9 JB |
219 | %package -n ruby-rrdtool |
220 | Summary: Ruby interface to RRDtool | |
221 | Summary(pl.UTF-8): Interfejs języka Ruby do RRDtoola | |
222 | Group: Development/Languages/Python | |
223 | Requires: %{name} = %{version}-%{release} | |
224 | %{?ruby_mod_ver_requires_eq} | |
225 | ||
226 | %description -n ruby-rrdtool | |
227 | Ruby interface to RRDtool, the graphing and logging utility. | |
228 | ||
229 | %description -n ruby-rrdtool -l pl.UTF-8 | |
230 | Interfejs języka Ruby do RRDtoola - narzędzia do tworzenia wykresów i | |
231 | logowania. | |
232 | ||
8a20d376 JB |
233 | %package -n tcl-rrdtool |
234 | Summary: Tcl extension to access the RRD library | |
851c0eda | 235 | Summary(pl.UTF-8): Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl |
8a20d376 JB |
236 | Group: Development/Languages/Tcl |
237 | Requires: %{name} = %{version}-%{release} | |
96b3cd4d | 238 | Requires: tcl |
8a20d376 JB |
239 | |
240 | %description -n tcl-rrdtool | |
241 | Tcl extension to access the RRD library. | |
242 | ||
b866ac6b JR |
243 | %description -n tcl-rrdtool -l pl.UTF-8 |
244 | Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl. | |
8a20d376 | 245 | |
9eb47203 AF |
246 | %prep |
247 | %setup -q | |
49633ebf | 248 | %patch0 -p1 |
ba6feeac | 249 | %patch1 -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 | |
ca5899e5 | 289 | %clean |
290 | rm -rf $RPM_BUILD_ROOT | |
9eb47203 | 291 | |
819616f2 | 292 | %post -p /sbin/ldconfig |
293 | %postun -p /sbin/ldconfig | |
7b80d295 | 294 | |
9eb47203 | 295 | %files |
2505a4b4 | 296 | %defattr(644,root,root,755) |
d142dcfc | 297 | %doc CHANGES CONTRIBUTORS NEWS README THREADS TODO doc/*.html |
2b7e312b | 298 | %attr(755,root,root) %{_bindir}/rrd* |
d142dcfc | 299 | %attr(755,root,root) %{_libdir}/librrd.so.*.*.* |
2d179bb9 | 300 | %attr(755,root,root) %ghost %{_libdir}/librrd.so.4 |
d142dcfc | 301 | %attr(755,root,root) %{_libdir}/librrd_th.so.*.*.* |
2d179bb9 | 302 | %attr(755,root,root) %ghost %{_libdir}/librrd_th.so.4 |
1bed9ed9 JB |
303 | %{_mandir}/man1/bin_dec_hex.1* |
304 | %{_mandir}/man1/cdeftutorial.1* | |
305 | %{_mandir}/man1/rpntutorial.1* | |
306 | %{_mandir}/man1/rrd*.1* | |
d142dcfc | 307 | |
ca5899e5 | 308 | %files devel |
5c73d7ab | 309 | %defattr(644,root,root,755) |
6bc681c9 JB |
310 | %attr(755,root,root) %{_libdir}/librrd.so |
311 | %attr(755,root,root) %{_libdir}/librrd_th.so | |
d142dcfc | 312 | %{_libdir}/librrd_th.la |
f0e0ceda | 313 | %{_includedir}/rrd*.h |
82117606 | 314 | %{_pkgconfigdir}/librrd.pc |
a96b6640 | 315 | %{_examplesdir}/%{name}-%{version} |
4a4932fb | 316 | %{_mandir}/man3/librrd.3* |
2b7e312b | 317 | |
318 | %files static | |
5c73d7ab | 319 | %defattr(644,root,root,755) |
ca5899e5 | 320 | %{_libdir}/librrd.a |
d142dcfc | 321 | %{_libdir}/librrd_th.a |
d91652c1 | 322 | |
82117606 JB |
323 | %files -n lua-rrdtool |
324 | %defattr(644,root,root,755) | |
325 | %attr(755,root,root) %{_libdir}/lua/5.1/rrd.so* | |
326 | ||
d91652c1 JB |
327 | %files -n perl-rrdtool |
328 | %defattr(644,root,root,755) | |
329 | %{perl_vendorlib}/RRDp.pm | |
330 | %{perl_vendorarch}/RRDs.pm | |
331 | %dir %{perl_vendorarch}/auto/RRDs | |
332 | %{perl_vendorarch}/auto/RRDs/RRDs.bs | |
333 | %attr(755,root,root) %{perl_vendorarch}/auto/RRDs/RRDs.so | |
334 | %{_mandir}/man3/RRDp.3* | |
335 | %{_mandir}/man3/RRDs.3* | |
8a20d376 | 336 | |
7f892b70 | 337 | %if %{with python} |
8a20d376 JB |
338 | %files -n python-rrdtool |
339 | %defattr(644,root,root,755) | |
340 | %attr(755,root,root) %{py_sitedir}/rrdtoolmodule.so | |
fb24adae | 341 | %if "%{py_ver}" > "2.4" |
6bc681c9 | 342 | %{py_sitedir}/py_rrdtool-*.egg-info |
7f892b70 | 343 | %endif |
fb24adae | 344 | %endif |
8a20d376 | 345 | |
9cd8bffa | 346 | %if %{with ruby} |
2d179bb9 JB |
347 | %files -n ruby-rrdtool |
348 | %defattr(644,root,root,755) | |
349 | %attr(755,root,root) %{ruby_archdir}/RRD.so | |
9cd8bffa | 350 | %endif |
2d179bb9 | 351 | |
9cd8bffa | 352 | %if %{with tcl} |
8a20d376 JB |
353 | %files -n tcl-rrdtool |
354 | %defattr(644,root,root,755) | |
355 | %attr(755,root,root) %{_libdir}/tclrrd%{version}.so | |
cafb9221 | 356 | %{_prefix}/lib/tclrrd%{version} |
9cd8bffa | 357 | %endif |