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