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