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