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