]>
Commit | Line | Data |
---|---|---|
ca581a4b JB |
1 | # TODO: |
2 | # - SysV init script for rrdcached, post/postun/etc. | |
9e5b7287 | 3 | # |
7f892b70 | 4 | # Conditional build: |
ca581a4b JB |
5 | %bcond_without lua # LUA binding |
6 | %bcond_without perl # Perl binding | |
7 | %bcond_without python # Python binding | |
8 | %bcond_without ruby # Ruby binding | |
9 | %bcond_without tcl # Tcl binding | |
5704b2cc | 10 | %bcond_without ceph # Ceph (RADOS) storage support |
ca581a4b JB |
11 | %bcond_without rrd_graph # all rrd_graph functions (depend on cairo+pango) |
12 | %bcond_without rrdcgi # building of rrdcgi (depends on rrd_graph) | |
30f15aac ER |
13 | |
14 | %if %{without rrd_graph} | |
15 | %undefine with_rrdcgi | |
16 | %endif | |
17fc3a1a | 17 | |
cafb9221 | 18 | %define pdir RRDp |
2b7e312b | 19 | Summary: RRDtool - round robin database |
851c0eda ER |
20 | Summary(pl.UTF-8): RRDtool - baza danych typu round-robin |
21 | Summary(pt_BR.UTF-8): Round Robin Database, uma ferramenta para construção de gráficos | |
22 | Summary(ru.UTF-8): RRDtool - база данных с "циклическим обновлением" | |
23 | Summary(uk.UTF-8): RRDtool - це система зберігання та показу серійних даних | |
2b7e312b | 24 | Name: rrdtool |
30224d2d | 25 | Version: 1.7.2 |
a89dbf38 | 26 | Release: 3 |
e1c0a957 | 27 | License: GPL v2+ + FLOSS exception |
2b7e312b | 28 | Group: Applications/Databases |
a560ea2c | 29 | Source0: https://oss.oetiker.ch/rrdtool/pub/%{name}-%{version}.tar.gz |
30224d2d | 30 | # Source0-md5: 638e3a0a1609d97e9f82e8832759dcd2 |
455b789f | 31 | Patch0: %{name}-tcl-path.patch |
ca581a4b | 32 | Patch1: %{name}-missing.patch |
30224d2d | 33 | Patch2: %{name}-build.patch |
fb24adae | 34 | URL: http://oss.oetiker.ch/rrdtool/ |
82117606 | 35 | BuildRequires: autoconf >= 2.60 |
455b789f | 36 | BuildRequires: automake |
ca581a4b | 37 | %{?with_ceph:BuildRequires: ceph-devel} |
6bf8ffa1 | 38 | BuildRequires: gettext-tools >= 0.18 |
79b12f3f | 39 | BuildRequires: glib2-devel >= 1:2.28.7 |
ba6feeac | 40 | BuildRequires: groff |
d84cd5cf | 41 | BuildRequires: libdbi-devel |
1bed9ed9 | 42 | BuildRequires: libtool |
79b12f3f JB |
43 | BuildRequires: libwrap-devel |
44 | BuildRequires: libxml2-devel >= 1:2.7.8 | |
d142dcfc | 45 | BuildRequires: pkgconfig |
d42d8892 | 46 | BuildRequires: rpm-pythonprov |
d4667888 | 47 | BuildRequires: rpmbuild(macros) >= 1.745 |
235819b3 | 48 | %if %{with rrd_graph} |
d4667888 JB |
49 | BuildRequires: glib2-devel >= 1:2.58.1 |
50 | BuildRequires: libpng-devel >= 2:1.4.8 | |
235819b3 ER |
51 | BuildRequires: pango-devel >= 1:1.28.7 |
52 | %endif | |
d42d8892 ER |
53 | %if %{with lua} |
54 | BuildRequires: lua51 >= 5.1 | |
55 | BuildRequires: lua51-devel >= 5.1 | |
56 | %endif | |
3b8ab0b0 ER |
57 | %if %{with perl} |
58 | BuildRequires: perl-devel >= 1:5.8.0 | |
59 | BuildRequires: rpm-perlprov | |
60 | %endif | |
7f892b70 | 61 | %if %{with python} |
f21933e7 JB |
62 | BuildRequires: python >= 1:2.3 |
63 | BuildRequires: python-devel >= 1:2.3 | |
7f892b70 | 64 | %endif |
d42d8892 | 65 | %if %{with ruby} |
fb4672bd | 66 | BuildRequires: rpm-rubyprov |
d42d8892 ER |
67 | BuildRequires: ruby-devel |
68 | %endif | |
69 | %if %{with tcl} | |
c7f7d8c5 | 70 | BuildRequires: tcl-devel |
d42d8892 | 71 | %endif |
d4667888 JB |
72 | %if %{with rrd_graph} |
73 | Requires: glib2 >= 1:2.58.1 | |
74 | %else | |
79b12f3f | 75 | Requires: glib2 >= 1:2.28.7 |
d4667888 JB |
76 | %endif |
77 | %{?with_rrd_graph:Requires: libpng >= 2:1.4.8} | |
79b12f3f | 78 | Requires: libxml2 >= 1:2.7.8 |
235819b3 | 79 | %{?with_rrd_graph:Requires: pango >= 1:1.28.7} |
674fe612 | 80 | Suggests: fonts-TTF-DejaVu |
8b2446dd | 81 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9eb47203 AF |
82 | |
83 | %description | |
2b7e312b | 84 | RRD is the Acronym for Round Robin Database. RRD is a system to store |
85 | and display time-series data (i.e. network bandwidth, machine-room | |
86 | temperature, server load average). It stores the data in a very | |
87 | compact way that will not expand over time, and it presents useful | |
88 | graphs by processing the data to enforce a certain data density. It | |
89 | can be used either via simple wrapper scripts (from shell or Perl) or | |
90 | via frontends that poll network devices and put a friendly user | |
91 | interface on it. | |
92 | ||
b866ac6b JR |
93 | %description -l pl.UTF-8 |
94 | RRD jest akronimem Round Robin Database. Jest to system pozwalający na | |
95 | składowanie i wyświetlanie czasowych serii danych (np. przepustowość | |
96 | sieci, temperatura w pomieszczeniu, obciążenie serwera). Składuje dane | |
97 | w "skondensowanej" postaci, która nie rozrasta się z biegiem czasu | |
98 | oraz pozwala na produkowanie wykresów z użytecznymi danymi. Może być | |
3b8ab0b0 | 99 | używane poprzez prosty skrypcik (shell lub Perl), frontendy czy inne |
b866ac6b | 100 | interfejsy użytkownika. |
edc21ec8 | 101 | |
b866ac6b | 102 | %description -l pt_BR.UTF-8 |
7f366ed7 | 103 | RRD e' um sistema para armazenar e apresentar series temporais de |
b866ac6b JR |
104 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). |
105 | Os dados são armazenados em uma forma compacta que não se expande com | |
106 | o tempo, e gráficos podem ser apresentados processando-se esses dados. | |
7f366ed7 | 107 | RRD pode ser utilizado com wrapper scripts (em shell ou Perl) ou |
b866ac6b JR |
108 | através de front-ends. |
109 | ||
110 | %description -l ru.UTF-8 | |
111 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
112 | обновлением"). RRD - система для сохранения и показа информации за | |
113 | определенный промежуток времени (например скорость передачи данных в | |
114 | сети, температуру в машинном зале, среднюю загрузку сервера). Она | |
115 | сохраняет данные в очень компактной форме, так что данные не будут | |
116 | занимать все больше и больше места с течением времени и предоставляет | |
117 | разумное графическое представление информации. Может быть использована | |
3b8ab0b0 | 118 | как из простых скриптов (shell, Perl, etc) или встроена в программы, |
b866ac6b JR |
119 | которые опрашивают сетевые устройства и показывают данные в удобном |
120 | для пользователя виде. | |
121 | ||
122 | %description -l uk.UTF-8 | |
123 | Назва RRD - це акронім для Round Robin Database. RRD - це система | |
124 | зберігання та показу серійних даних (наприклад, полоси каналу, | |
125 | температура гермозони, завантаження сервера). RRD зберігає дані дуже | |
126 | компактно і так, що розмір бази даних не збільшується з часом, та | |
127 | презентує корисні графіки обробляючи дані з тим, щоб встановити | |
128 | потрібну щільність вибірки в часі. RRD можна використовувати як через | |
129 | прості wrapper-скрипти, так і через фронтенди, що опитують мережеві | |
130 | пристрої та надають дружній інтерфейс користувача. | |
276d47c0 | 131 | |
ca581a4b JB |
132 | %package cached |
133 | Summary: Data caching daemon for RRDtool | |
134 | Summary(pl.UTF-8): Demon pamięci podręcznej danych dla RRDtoola | |
135 | Group: Daemons | |
136 | Requires: %{name} = %{version}-%{release} | |
137 | ||
138 | %description cached | |
139 | Data caching daemon for RRDtool. | |
140 | ||
141 | %description cached -l pl.UTF-8 | |
142 | Demon pamięci podręcznej danych dla RRDtoola. | |
143 | ||
2b7e312b | 144 | %package devel |
52087078 | 145 | Summary: RRDtool development |
851c0eda ER |
146 | Summary(pl.UTF-8): Narzędzia programistyczne pakietu RRDtool |
147 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão da librrd | |
148 | Summary(ru.UTF-8): RRDtool - Заголовки, необходимые для разработки | |
149 | Summary(uk.UTF-8): RRDtool - бібліотечні лінки та файли хедерів | |
2b7e312b | 150 | Group: Development/Libraries |
abade533 | 151 | Requires: %{name} = %{version}-%{release} |
d4667888 JB |
152 | %if %{with rrd_graph} |
153 | Requires: glib2-devel >= 1:2.58.1 | |
154 | %else | |
79b12f3f | 155 | Requires: glib2-devel >= 1:2.28.7 |
d4667888 | 156 | %endif |
d84cd5cf | 157 | Requires: libdbi-devel |
79b12f3f JB |
158 | Requires: libwrap-devel |
159 | Requires: libxml2-devel >= 1:2.7.8 | |
235819b3 | 160 | %{?with_rrd_graph:Requires: pango-devel >= 1:1.28.7} |
0b1f22e5 | 161 | |
2b7e312b | 162 | %description devel |
52087078 | 163 | RRDtool development files. |
5c73d7ab | 164 | |
b866ac6b JR |
165 | %description devel -l pl.UTF-8 |
166 | Narzędzia programistyczne pakietu RRDtool. | |
2b7e312b | 167 | |
b866ac6b | 168 | %description devel -l pt_BR.UTF-8 |
7f366ed7 | 169 | RRD e' um sistema para armazenar e apresentar series temporais de |
b866ac6b | 170 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). |
7f366ed7 | 171 | |
172 | Este pacote contem arquivos de desenvolvimento do RRD. | |
173 | ||
b866ac6b JR |
174 | %description devel -l ru.UTF-8 |
175 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
176 | обновлением"). RRD - система для сохранения и показа информации за | |
177 | определенный промежуток времени (например скорость передачи данных в | |
178 | сети, температуру в машинном зале, среднюю загрузку сервера). | |
276d47c0 | 179 | |
b866ac6b JR |
180 | Этот пакет позволяет создавать программы, которые используют это |
181 | библиотеку непосредственно. | |
276d47c0 | 182 | |
b866ac6b JR |
183 | %description devel -l uk.UTF-8 |
184 | RRDtool - библиотечные линки и файлы хедеров. | |
276d47c0 | 185 | |
2b7e312b | 186 | %package static |
52087078 | 187 | Summary: RRDtool static library |
851c0eda ER |
188 | Summary(pl.UTF-8): Statyczne biblioteki RRDtool |
189 | Summary(pt_BR.UTF-8): Biblioteca estática librrd | |
190 | Summary(ru.UTF-8): RRDtool - Статические библиотеки | |
191 | Summary(uk.UTF-8): Статичні бібліотеки RRDtool | |
2b7e312b | 192 | Group: Development/Libraries |
abade533 | 193 | Requires: %{name}-devel = %{version}-%{release} |
5c73d7ab | 194 | |
2b7e312b | 195 | %description static |
52087078 | 196 | RRDtool static library. |
5c73d7ab | 197 | |
b866ac6b | 198 | %description static -l pl.UTF-8 |
482aa046 | 199 | Statyczne biblioteki RRDtool. |
9eb47203 | 200 | |
b866ac6b | 201 | %description static -l pt_BR.UTF-8 |
7f366ed7 | 202 | RRD e' um sistema para armazenar e apresentar series temporais de |
b866ac6b | 203 | dados (i.e. utilização de rede, temperaturas, cargas em servidores). |
7f366ed7 | 204 | |
b866ac6b | 205 | Este pacote contem a biblioteca estática do RRD. |
7f366ed7 | 206 | |
b866ac6b JR |
207 | %description static -l ru.UTF-8 |
208 | RRD - соращение для "Round Robin Database" (база данных с "циклическим | |
209 | обновлением"). RRD - система для сохранения и показа информации за | |
210 | определенный промежуток времени (например скорость передачи данных в | |
211 | сети, температуру в машинном зале, среднюю загрузку сервера). Этот | |
212 | пакет позволяет создавать статически слинкованные программы, которые | |
213 | используют это библиотеку непосредственно. | |
276d47c0 | 214 | |
b866ac6b JR |
215 | %description static -l uk.UTF-8 |
216 | Статичні бібліотеки для розробки програм, що використовують RRDtool. | |
276d47c0 | 217 | |
a12c3e0e ER |
218 | %package doc |
219 | Summary: RRDtool documentation | |
f21933e7 | 220 | Summary(pl.UTF-8): Dokumentacja do RRDtoola |
a12c3e0e | 221 | Group: Documentation |
a12c3e0e | 222 | BuildArch: noarch |
a12c3e0e ER |
223 | |
224 | %description doc | |
225 | RRD is the Acronym for Round Robin Database. RRD is a system to store | |
226 | and display time-series data (i.e. network bandwidth, machine-room | |
227 | temperature, server load average). | |
228 | ||
229 | This package contains documentation on using RRD. | |
230 | ||
f21933e7 JB |
231 | %description doc -l pl.UTF-8 |
232 | RRD jest akronimem Round Robin Database. Jest to system pozwalający na | |
233 | składowanie i wyświetlanie czasowych serii danych (np. przepustowość | |
234 | sieci, temperatura w pomieszczeniu, obciążenie serwera). | |
235 | ||
236 | Ten pakiet zawiera dokumentację użytkownika dla RRD. | |
237 | ||
82117606 JB |
238 | %package -n lua-rrdtool |
239 | Summary: RRD module for Lua | |
240 | Summary(pl.UTF-8): Moduł RRD dla języka Lua | |
241 | Group: Development/Languages | |
242 | Requires: %{name} = %{version}-%{release} | |
243 | Requires: lua51 | |
244 | ||
245 | %description -n lua-rrdtool | |
246 | Lua interface to RRDtool. | |
247 | ||
248 | %description -n lua-rrdtool -l pl.UTF-8 | |
249 | Interfejs języka Lua do RRDtoola. | |
250 | ||
d91652c1 JB |
251 | %package -n perl-rrdtool |
252 | Summary: Access RRDtool from Perl | |
851c0eda | 253 | Summary(pl.UTF-8): Dostęp do RRDtoola z poziomu Perla |
d91652c1 JB |
254 | Group: Development/Languages/Perl |
255 | Requires: %{name} = %{version}-%{release} | |
256 | ||
257 | %description -n perl-rrdtool | |
258 | Perl modules to access RRDtool: RRDs to access RRDtool as shared | |
259 | module and RRDp to access RRDtool via a set of pipes. | |
260 | ||
b866ac6b JR |
261 | %description -n perl-rrdtool -l pl.UTF-8 |
262 | Moduły Perla pozwalające na dostęp do RRDtoola: RRDs do dostępu do | |
263 | RRDtoola jako modułu dzielonego oraz RRDp do dostępu poprzez zestaw | |
264 | potoków. | |
d91652c1 | 265 | |
8a20d376 JB |
266 | %package -n python-rrdtool |
267 | Summary: Python interface to RRDtool | |
851c0eda | 268 | Summary(pl.UTF-8): Pythonowy interfejs do RRDtoola |
8a20d376 JB |
269 | Group: Development/Languages/Python |
270 | Requires: %{name} = %{version}-%{release} | |
d42d8892 | 271 | Requires: python-libs |
8a20d376 JB |
272 | |
273 | %description -n python-rrdtool | |
274 | Python interface to RRDtool, the graphing and logging utility. | |
275 | ||
b866ac6b JR |
276 | %description -n python-rrdtool -l pl.UTF-8 |
277 | Interfejs Pythona do RRDtoola - narzędzia do tworzenia wykresów i | |
8a20d376 JB |
278 | logowania. |
279 | ||
2d179bb9 JB |
280 | %package -n ruby-rrdtool |
281 | Summary: Ruby interface to RRDtool | |
282 | Summary(pl.UTF-8): Interfejs języka Ruby do RRDtoola | |
283 | Group: Development/Languages/Python | |
284 | Requires: %{name} = %{version}-%{release} | |
2d179bb9 JB |
285 | |
286 | %description -n ruby-rrdtool | |
287 | Ruby interface to RRDtool, the graphing and logging utility. | |
288 | ||
289 | %description -n ruby-rrdtool -l pl.UTF-8 | |
290 | Interfejs języka Ruby do RRDtoola - narzędzia do tworzenia wykresów i | |
291 | logowania. | |
292 | ||
8a20d376 JB |
293 | %package -n tcl-rrdtool |
294 | Summary: Tcl extension to access the RRD library | |
851c0eda | 295 | Summary(pl.UTF-8): Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl |
8a20d376 JB |
296 | Group: Development/Languages/Tcl |
297 | Requires: %{name} = %{version}-%{release} | |
96b3cd4d | 298 | Requires: tcl |
8a20d376 JB |
299 | |
300 | %description -n tcl-rrdtool | |
301 | Tcl extension to access the RRD library. | |
302 | ||
b866ac6b JR |
303 | %description -n tcl-rrdtool -l pl.UTF-8 |
304 | Rozszerzenie Tcl-a pozwalające na dostęp do biblioteki Tcl. | |
8a20d376 | 305 | |
9eb47203 AF |
306 | %prep |
307 | %setup -q | |
49633ebf | 308 | %patch0 -p1 |
ca581a4b | 309 | %patch1 -p1 |
30224d2d | 310 | %patch2 -p1 |
f0e0ceda | 311 | |
a89dbf38 JR |
312 | %{__sed} -i -e 's#\$TCL_PACKAGE_PATH#%{_prefix}/lib#g' configure.ac |
313 | %{__sed} -i -e 's#/lib/lua/#/%{_lib}/lua/#g' configure.ac | |
314 | ||
315 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \ | |
316 | examples/stripes.py | |
317 | ||
318 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+tclsh@TCL_VERSION@(\s|$),#!%{__tclsh}\1,' \ | |
319 | bindings/tcl/ifOctets.tcl.in | |
e85ccde9 | 320 | |
a12c3e0e ER |
321 | # We only want .txt and .html files for the main documentation |
322 | install -d docs/{html,/txt} | |
d4667888 JB |
323 | %{__mv} doc/*.txt docs/txt |
324 | %{__mv} doc/*.html docs/html | |
a12c3e0e ER |
325 | |
326 | # Put Perl docs in Perl package | |
327 | install -d perl-docs/html | |
d4667888 | 328 | %{__mv} docs/html/RRD*.html perl-docs/html |
a12c3e0e | 329 | |
9eb47203 | 330 | %build |
1bed9ed9 | 331 | %{__libtoolize} |
4a4932fb | 332 | %{__aclocal} -I m4 |
455b789f | 333 | %{__autoconf} |
1bed9ed9 | 334 | %{__autoheader} |
455b789f | 335 | %{__automake} |
ca5899e5 | 336 | %configure \ |
c30f10c2 | 337 | LUA=/usr/bin/lua5.1 \ |
82117606 | 338 | --disable-silent-rules \ |
ca581a4b | 339 | %{!?with_ceph:--disable-librados} \ |
235819b3 | 340 | %{!?with_rrd_graph:--disable-rrd_graph} \ |
30f15aac | 341 | %{!?with_rrdcgi:--disable-rrdcgi} \ |
d42d8892 | 342 | %{!?with_lua:--disable-lua} \ |
ca581a4b | 343 | %{!?with_perl:--disable-perl} \ |
d42d8892 | 344 | %{!?with_python:--disable-python} \ |
9cd8bffa | 345 | %{!?with_ruby:--disable-ruby} \ |
d42d8892 | 346 | %{!?with_tcl:--disable-tcl} \ |
d142dcfc | 347 | --with-perl-options="INSTALLDIRS=vendor" |
5985ed88 | 348 | |
6bc681c9 JB |
349 | # empty RUBY_MAKE_OPTIONS as workaround for some make weirdness |
350 | # (tried to install without DESTDIR on plain make) | |
351 | %{__make} \ | |
82117606 JB |
352 | RUBY_MAKE_OPTIONS= \ |
353 | LUA_CFLAGS=-I/usr/include/lua51 | |
9eb47203 AF |
354 | |
355 | %install | |
2b7e312b | 356 | rm -rf $RPM_BUILD_ROOT |
a96b6640 | 357 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
e9be865f | 358 | |
ae6611d4 | 359 | %{__make} install \ |
5064a93e | 360 | DESTDIR=$RPM_BUILD_ROOT \ |
d142dcfc | 361 | perl_sitearch=%{perl_vendorarch} \ |
8a20d376 | 362 | pythondir=%{py_sitedir} \ |
d848bbea MB |
363 | examplesdir=%{_examplesdir}/%{name}-%{version} \ |
364 | RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_archdir} | |
ca5899e5 | 365 | |
d48e9d5a | 366 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/librrd.la |
9a2e3414 JR |
367 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
368 | ||
d42d8892 ER |
369 | %if %{with lua} |
370 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lua/5.1/*.{la,a} | |
371 | %endif | |
372 | ||
3b8ab0b0 | 373 | %if %{with perl} |
d42d8892 | 374 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/RRDs/.packlist |
3b8ab0b0 | 375 | %endif |
d42d8892 | 376 | |
ca5899e5 | 377 | %clean |
378 | rm -rf $RPM_BUILD_ROOT | |
9eb47203 | 379 | |
819616f2 | 380 | %post -p /sbin/ldconfig |
381 | %postun -p /sbin/ldconfig | |
7b80d295 | 382 | |
9eb47203 | 383 | %files |
2505a4b4 | 384 | %defattr(644,root,root,755) |
d4667888 | 385 | %doc CHANGES CONTRIBUTORS COPYRIGHT NEWS THREADS TODO |
d142dcfc | 386 | %attr(755,root,root) %{_libdir}/librrd.so.*.*.* |
69969760 | 387 | %attr(755,root,root) %ghost %{_libdir}/librrd.so.8 |
c7f7d8c5 ER |
388 | %{?with_rrdcgi:%attr(755,root,root) %{_bindir}/rrdcgi} |
389 | %attr(755,root,root) %{_bindir}/rrdcreate | |
390 | %attr(755,root,root) %{_bindir}/rrdinfo | |
391 | %attr(755,root,root) %{_bindir}/rrdtool | |
392 | %attr(755,root,root) %{_bindir}/rrdupdate | |
1bed9ed9 JB |
393 | %{_mandir}/man1/bin_dec_hex.1* |
394 | %{_mandir}/man1/cdeftutorial.1* | |
395 | %{_mandir}/man1/rpntutorial.1* | |
ca581a4b | 396 | %{_mandir}/man1/rrd-beginners.1* |
d4667888 | 397 | %{_mandir}/man1/rrd_pdpcalc.1* |
ca581a4b JB |
398 | %{_mandir}/man1/rrdbuild.1* |
399 | %{?with_rrdcgi:%{_mandir}/man1/rrdcgi.1*} | |
400 | %{_mandir}/man1/rrdcreate.1* | |
401 | %{_mandir}/man1/rrddump.1* | |
402 | %{_mandir}/man1/rrdfetch.1* | |
403 | %{_mandir}/man1/rrdfirst.1* | |
404 | %{_mandir}/man1/rrdgraph*.1* | |
405 | %{_mandir}/man1/rrdinfo.1* | |
406 | %{_mandir}/man1/rrdlast.1* | |
407 | %{_mandir}/man1/rrdlastupdate.1* | |
69969760 | 408 | %{_mandir}/man1/rrdlist.1* |
ca581a4b JB |
409 | %{?with_ceph:%{_mandir}/man1/rrdrados.1*} |
410 | %{_mandir}/man1/rrdresize.1* | |
411 | %{_mandir}/man1/rrdrestore.1* | |
412 | %{_mandir}/man1/rrdthreads.1* | |
413 | %{_mandir}/man1/rrdtool.1* | |
414 | %{_mandir}/man1/rrdtune.1* | |
415 | %{_mandir}/man1/rrdtutorial.1* | |
416 | %{_mandir}/man1/rrdupdate.1* | |
417 | %{_mandir}/man1/rrdxport.1* | |
418 | ||
419 | %files cached | |
420 | %defattr(644,root,root,755) | |
421 | %attr(755,root,root) %{_bindir}/rrdcached | |
422 | %{_mandir}/man1/rrdcached.1* | |
423 | %{_mandir}/man1/rrdflushcached.1* | |
424 | %{systemdunitdir}/rrdcached.service | |
425 | %{systemdunitdir}/rrdcached.socket | |
d142dcfc | 426 | |
ca5899e5 | 427 | %files devel |
5c73d7ab | 428 | %defattr(644,root,root,755) |
6bc681c9 | 429 | %attr(755,root,root) %{_libdir}/librrd.so |
f0e0ceda | 430 | %{_includedir}/rrd*.h |
82117606 | 431 | %{_pkgconfigdir}/librrd.pc |
4a4932fb | 432 | %{_mandir}/man3/librrd.3* |
2b7e312b | 433 | |
434 | %files static | |
5c73d7ab | 435 | %defattr(644,root,root,755) |
ca5899e5 | 436 | %{_libdir}/librrd.a |
d91652c1 | 437 | |
a12c3e0e ER |
438 | %files doc |
439 | %defattr(644,root,root,755) | |
440 | %doc docs/html docs/txt | |
441 | %{_examplesdir}/%{name}-%{version} | |
442 | ||
d42d8892 | 443 | %if %{with lua} |
82117606 JB |
444 | %files -n lua-rrdtool |
445 | %defattr(644,root,root,755) | |
446 | %attr(755,root,root) %{_libdir}/lua/5.1/rrd.so* | |
ca581a4b | 447 | %{_mandir}/man1/rrdlua.1* |
d42d8892 | 448 | %endif |
82117606 | 449 | |
3b8ab0b0 | 450 | %if %{with perl} |
d91652c1 JB |
451 | %files -n perl-rrdtool |
452 | %defattr(644,root,root,755) | |
a12c3e0e | 453 | %doc perl-docs/html/* |
d91652c1 JB |
454 | %{perl_vendorlib}/RRDp.pm |
455 | %{perl_vendorarch}/RRDs.pm | |
456 | %dir %{perl_vendorarch}/auto/RRDs | |
d91652c1 JB |
457 | %attr(755,root,root) %{perl_vendorarch}/auto/RRDs/RRDs.so |
458 | %{_mandir}/man3/RRDp.3* | |
459 | %{_mandir}/man3/RRDs.3* | |
3b8ab0b0 | 460 | %endif |
8a20d376 | 461 | |
7f892b70 | 462 | %if %{with python} |
8a20d376 JB |
463 | %files -n python-rrdtool |
464 | %defattr(644,root,root,755) | |
ca581a4b | 465 | %attr(755,root,root) %{py_sitedir}/rrdtool.so |
fb24adae | 466 | %if "%{py_ver}" > "2.4" |
69969760 | 467 | %{py_sitedir}/rrdtool-*.egg-info |
7f892b70 | 468 | %endif |
fb24adae | 469 | %endif |
8a20d376 | 470 | |
9cd8bffa | 471 | %if %{with ruby} |
2d179bb9 JB |
472 | %files -n ruby-rrdtool |
473 | %defattr(644,root,root,755) | |
474 | %attr(755,root,root) %{ruby_archdir}/RRD.so | |
9cd8bffa | 475 | %endif |
2d179bb9 | 476 | |
9cd8bffa | 477 | %if %{with tcl} |
8a20d376 JB |
478 | %files -n tcl-rrdtool |
479 | %defattr(644,root,root,755) | |
480 | %attr(755,root,root) %{_libdir}/tclrrd%{version}.so | |
cafb9221 | 481 | %{_prefix}/lib/tclrrd%{version} |
9cd8bffa | 482 | %endif |