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