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