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