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