]>
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 |
ad60f976 | 18 | Version: 1.4.7 |
0519d506 | 19 | Release: 2 |
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 |
ad60f976 | 23 | # Source0-md5: ffe369d8921b4dfdeaaf43812100c38f |
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 |
79b12f3f | 29 | BuildRequires: cairo-devel >= 1.10.2 |
82117606 | 30 | BuildRequires: gettext-devel >= 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 | |
6709d520 | 38 | BuildRequires: lua51 >= 5.1 |
82117606 | 39 | BuildRequires: lua51-devel >= 5.1 |
79b12f3f | 40 | BuildRequires: pango-devel >= 1:1.28.4 |
feed1e47 | 41 | BuildRequires: perl-devel >= 1:5.8.0 |
d142dcfc | 42 | BuildRequires: pkgconfig |
7f892b70 | 43 | %if %{with python} |
82117606 JB |
44 | BuildRequires: python >= 2.3 |
45 | BuildRequires: python-devel >= 2.3 | |
7f892b70 | 46 | %endif |
feed1e47 | 47 | BuildRequires: rpm-perlprov |
0c91e87b | 48 | BuildRequires: rpm-pythonprov |
2d179bb9 | 49 | BuildRequires: rpmbuild(macros) >= 1.272 |
9cd8bffa JK |
50 | %{?with_ruby:BuildRequires: ruby-devel} |
51 | %{?with_tcl:BuildRequires: tcl-devel} | |
79b12f3f JB |
52 | Requires: cairo >= 1.10.2 |
53 | Requires: glib2 >= 1:2.28.7 | |
54 | Requires: libxml2 >= 1:2.7.8 | |
55 | Requires: pango >= 1:1.28.4 | |
674fe612 | 56 | Suggests: fonts-TTF-DejaVu |
8b2446dd | 57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9eb47203 AF |
58 | |
59 | %description | |
2b7e312b | 60 | RRD is the Acronym for Round Robin Database. RRD is a system to store |
61 | and display time-series data (i.e. network bandwidth, machine-room | |
62 | temperature, server load average). It stores the data in a very | |
63 | compact way that will not expand over time, and it presents useful | |
64 | graphs by processing the data to enforce a certain data density. It | |
65 | can be used either via simple wrapper scripts (from shell or Perl) or | |
66 | via frontends that poll network devices and put a friendly user | |
67 | interface on it. | |
68 | ||
b866ac6b JR |
69 | %description -l pl.UTF-8 |
70 | RRD jest akronimem Round Robin Database. Jest to system pozwalający na | |
71 | składowanie i wyświetlanie czasowych serii danych (np. przepustowość | |
72 | sieci, temperatura w pomieszczeniu, obciążenie serwera). Składuje dane | |
73 | w "skondensowanej" postaci, która nie rozrasta się z biegiem czasu | |
74 | oraz pozwala na produkowanie wykresów z użytecznymi danymi. Może być | |
75 | używane poprzez prosty skrypcik (shell lub perl), frontendy czy inne | |
76 | interfejsy użytkownika. | |
edc21ec8 | 77 | |
b866ac6b | 78 | %description -l pt_BR.UTF-8 |
7f366ed7 | 79 | RRD e' um sistema para armazenar e apresentar series temporais de |
b866ac6b JR |
80 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). |
81 | Os dados são armazenados em uma forma compacta que não se expande com | |
82 | o tempo, e gráficos podem ser apresentados processando-se esses dados. | |
7f366ed7 | 83 | RRD pode ser utilizado com wrapper scripts (em shell ou Perl) ou |
b866ac6b JR |
84 | através de front-ends. |
85 | ||
86 | %description -l ru.UTF-8 | |
87 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
88 | обновлением"). RRD - система для сохранения и показа информации за | |
89 | определенный промежуток времени (например скорость передачи данных в | |
90 | сети, температуру в машинном зале, среднюю загрузку сервера). Она | |
91 | сохраняет данные в очень компактной форме, так что данные не будут | |
92 | занимать все больше и больше места с течением времени и предоставляет | |
93 | разумное графическое представление информации. Может быть использована | |
94 | как из простых скриптов (shell, perl, etc) или встроена в программы, | |
95 | которые опрашивают сетевые устройства и показывают данные в удобном | |
96 | для пользователя виде. | |
97 | ||
98 | %description -l uk.UTF-8 | |
99 | Назва RRD - це акронім для Round Robin Database. RRD - це система | |
100 | зберігання та показу серійних даних (наприклад, полоси каналу, | |
101 | температура гермозони, завантаження сервера). RRD зберігає дані дуже | |
102 | компактно і так, що розмір бази даних не збільшується з часом, та | |
103 | презентує корисні графіки обробляючи дані з тим, щоб встановити | |
104 | потрібну щільність вибірки в часі. RRD можна використовувати як через | |
105 | прості wrapper-скрипти, так і через фронтенди, що опитують мережеві | |
106 | пристрої та надають дружній інтерфейс користувача. | |
276d47c0 | 107 | |
2b7e312b | 108 | %package devel |
52087078 | 109 | Summary: RRDtool development |
851c0eda ER |
110 | Summary(pl.UTF-8): Narzędzia programistyczne pakietu RRDtool |
111 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão da librrd | |
112 | Summary(ru.UTF-8): RRDtool - Заголовки, необходимые для разработки | |
113 | Summary(uk.UTF-8): RRDtool - бібліотечні лінки та файли хедерів | |
2b7e312b | 114 | Group: Development/Libraries |
abade533 | 115 | Requires: %{name} = %{version}-%{release} |
79b12f3f JB |
116 | Requires: cairo-devel >= 1.10.2 |
117 | Requires: glib2-devel >= 1:2.28.7 | |
d84cd5cf | 118 | Requires: libdbi-devel |
79b12f3f JB |
119 | Requires: libwrap-devel |
120 | Requires: libxml2-devel >= 1:2.7.8 | |
121 | Requires: pango-devel >= 1:1.28.4 | |
0b1f22e5 | 122 | |
2b7e312b | 123 | %description devel |
52087078 | 124 | RRDtool development files. |
5c73d7ab | 125 | |
b866ac6b JR |
126 | %description devel -l pl.UTF-8 |
127 | Narzędzia programistyczne pakietu RRDtool. | |
2b7e312b | 128 | |
b866ac6b | 129 | %description devel -l pt_BR.UTF-8 |
7f366ed7 | 130 | RRD e' um sistema para armazenar e apresentar series temporais de |
b866ac6b | 131 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). |
7f366ed7 | 132 | |
133 | Este pacote contem arquivos de desenvolvimento do RRD. | |
134 | ||
b866ac6b JR |
135 | %description devel -l ru.UTF-8 |
136 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
137 | обновлением"). RRD - система для сохранения и показа информации за | |
138 | определенный промежуток времени (например скорость передачи данных в | |
139 | сети, температуру в машинном зале, среднюю загрузку сервера). | |
276d47c0 | 140 | |
b866ac6b JR |
141 | Этот пакет позволяет создавать программы, которые используют это |
142 | библиотеку непосредственно. | |
276d47c0 | 143 | |
b866ac6b JR |
144 | %description devel -l uk.UTF-8 |
145 | RRDtool - библиотечные линки и файлы хедеров. | |
276d47c0 | 146 | |
2b7e312b | 147 | %package static |
52087078 | 148 | Summary: RRDtool static library |
851c0eda ER |
149 | Summary(pl.UTF-8): Statyczne biblioteki RRDtool |
150 | Summary(pt_BR.UTF-8): Biblioteca estática librrd | |
151 | Summary(ru.UTF-8): RRDtool - Статические библиотеки | |
152 | Summary(uk.UTF-8): Статичні бібліотеки RRDtool | |
2b7e312b | 153 | Group: Development/Libraries |
abade533 | 154 | Requires: %{name}-devel = %{version}-%{release} |
5c73d7ab | 155 | |
2b7e312b | 156 | %description static |
52087078 | 157 | RRDtool static library. |
5c73d7ab | 158 | |
b866ac6b | 159 | %description static -l pl.UTF-8 |
482aa046 | 160 | Statyczne biblioteki RRDtool. |
9eb47203 | 161 | |
b866ac6b | 162 | %description static -l pt_BR.UTF-8 |
7f366ed7 | 163 | RRD e' um sistema para armazenar e apresentar series temporais de |
b866ac6b | 164 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). |
7f366ed7 | 165 | |
b866ac6b | 166 | Este pacote contem a biblioteca estática do RRD. |
7f366ed7 | 167 | |
b866ac6b JR |
168 | %description static -l ru.UTF-8 |
169 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
170 | обновлением"). RRD - система для сохранения и показа информации за | |
171 | определенный промежуток времени (например скорость передачи данных в | |
172 | сети, температуру в машинном зале, среднюю загрузку сервера). Этот | |
173 | пакет позволяет создавать статически слинкованные программы, которые | |
174 | используют это библиотеку непосредственно. | |
276d47c0 | 175 | |
b866ac6b JR |
176 | %description static -l uk.UTF-8 |
177 | Статичні бібліотеки для розробки програм, що використовують RRDtool. | |
276d47c0 | 178 | |
82117606 JB |
179 | %package -n lua-rrdtool |
180 | Summary: RRD module for Lua | |
181 | Summary(pl.UTF-8): Moduł RRD dla języka Lua | |
182 | Group: Development/Languages | |
183 | Requires: %{name} = %{version}-%{release} | |
184 | Requires: lua51 | |
185 | ||
186 | %description -n lua-rrdtool | |
187 | Lua interface to RRDtool. | |
188 | ||
189 | %description -n lua-rrdtool -l pl.UTF-8 | |
190 | Interfejs języka Lua do RRDtoola. | |
191 | ||
d91652c1 JB |
192 | %package -n perl-rrdtool |
193 | Summary: Access RRDtool from Perl | |
851c0eda | 194 | Summary(pl.UTF-8): Dostęp do RRDtoola z poziomu Perla |
d91652c1 JB |
195 | Group: Development/Languages/Perl |
196 | Requires: %{name} = %{version}-%{release} | |
197 | ||
198 | %description -n perl-rrdtool | |
199 | Perl modules to access RRDtool: RRDs to access RRDtool as shared | |
200 | module and RRDp to access RRDtool via a set of pipes. | |
201 | ||
b866ac6b JR |
202 | %description -n perl-rrdtool -l pl.UTF-8 |
203 | Moduły Perla pozwalające na dostęp do RRDtoola: RRDs do dostępu do | |
204 | RRDtoola jako modułu dzielonego oraz RRDp do dostępu poprzez zestaw | |
205 | potoków. | |
d91652c1 | 206 | |
8a20d376 JB |
207 | %package -n python-rrdtool |
208 | Summary: Python interface to RRDtool | |
851c0eda | 209 | Summary(pl.UTF-8): Pythonowy interfejs do RRDtoola |
8a20d376 JB |
210 | Group: Development/Languages/Python |
211 | Requires: %{name} = %{version}-%{release} | |
96b3cd4d | 212 | %pyrequires_eq python-libs |
8a20d376 JB |
213 | |
214 | %description -n python-rrdtool | |
215 | Python interface to RRDtool, the graphing and logging utility. | |
216 | ||
b866ac6b JR |
217 | %description -n python-rrdtool -l pl.UTF-8 |
218 | Interfejs Pythona do RRDtoola - narzędzia do tworzenia wykresów i | |
8a20d376 JB |
219 | logowania. |
220 | ||
2d179bb9 JB |
221 | %package -n ruby-rrdtool |
222 | Summary: Ruby interface to RRDtool | |
223 | Summary(pl.UTF-8): Interfejs języka Ruby do RRDtoola | |
224 | Group: Development/Languages/Python | |
225 | Requires: %{name} = %{version}-%{release} | |
226 | %{?ruby_mod_ver_requires_eq} | |
227 | ||
228 | %description -n ruby-rrdtool | |
229 | Ruby interface to RRDtool, the graphing and logging utility. | |
230 | ||
231 | %description -n ruby-rrdtool -l pl.UTF-8 | |
232 | Interfejs języka Ruby do RRDtoola - narzędzia do tworzenia wykresów i | |
233 | logowania. | |
234 | ||
8a20d376 JB |
235 | %package -n tcl-rrdtool |
236 | Summary: Tcl extension to access the RRD library | |
851c0eda | 237 | Summary(pl.UTF-8): Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl |
8a20d376 JB |
238 | Group: Development/Languages/Tcl |
239 | Requires: %{name} = %{version}-%{release} | |
96b3cd4d | 240 | Requires: tcl |
8a20d376 JB |
241 | |
242 | %description -n tcl-rrdtool | |
243 | Tcl extension to access the RRD library. | |
244 | ||
b866ac6b JR |
245 | %description -n tcl-rrdtool -l pl.UTF-8 |
246 | Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl. | |
8a20d376 | 247 | |
9eb47203 AF |
248 | %prep |
249 | %setup -q | |
49633ebf | 250 | %patch0 -p1 |
ba6feeac | 251 | %patch1 -p1 |
f0e0ceda AM |
252 | |
253 | sed -i -e 's#\$TCL_PACKAGE_PATH#%{_prefix}/lib#g' configure.ac | |
13138441 | 254 | sed -i -e 's#/lib/lua/#/%{_lib}/lua/#g' configure.ac |
e85ccde9 | 255 | |
9eb47203 | 256 | %build |
1bed9ed9 | 257 | %{__libtoolize} |
4a4932fb | 258 | %{__aclocal} -I m4 |
455b789f | 259 | %{__autoconf} |
1bed9ed9 | 260 | %{__autoheader} |
455b789f | 261 | %{__automake} |
ca5899e5 | 262 | %configure \ |
82117606 JB |
263 | LUA=/usr/bin/lua51 \ |
264 | --disable-silent-rules \ | |
9cd8bffa JK |
265 | %{!?with_tcl:--disable-tcl} \ |
266 | %{!?with_ruby:--disable-ruby} \ | |
d142dcfc | 267 | --with-perl-options="INSTALLDIRS=vendor" |
5985ed88 | 268 | |
6bc681c9 JB |
269 | # empty RUBY_MAKE_OPTIONS as workaround for some make weirdness |
270 | # (tried to install without DESTDIR on plain make) | |
271 | %{__make} \ | |
82117606 JB |
272 | RUBY_MAKE_OPTIONS= \ |
273 | LUA_CFLAGS=-I/usr/include/lua51 | |
9eb47203 AF |
274 | |
275 | %install | |
2b7e312b | 276 | rm -rf $RPM_BUILD_ROOT |
a96b6640 | 277 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
e9be865f | 278 | |
ae6611d4 | 279 | %{__make} install \ |
5064a93e | 280 | DESTDIR=$RPM_BUILD_ROOT \ |
d142dcfc | 281 | perl_sitearch=%{perl_vendorarch} \ |
8a20d376 | 282 | pythondir=%{py_sitedir} \ |
d848bbea MB |
283 | examplesdir=%{_examplesdir}/%{name}-%{version} \ |
284 | RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_archdir} | |
ca5899e5 | 285 | |
82117606 | 286 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lua/5.1/*.{la,a} |
d48e9d5a | 287 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/RRDs/.packlist |
288 | ||
289 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/librrd.la | |
ca5899e5 | 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 |