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