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