]>
Commit | Line | Data |
---|---|---|
a71610d8 | 1 | # TODO |
770227b6 | 2 | # - %{_libdir}/graphviz/config is not FHS friendly path as config |
c006c45c | 3 | # - io language binding (waiting for swig support) |
705dcd18 | 4 | # - some plugin subpackages? (libgvplugin_*: gs=ghostscript, gtk, lasi, poppler, visio, webp) |
a2acb194 JB |
5 | # |
6 | # Conditional build: | |
705dcd18 | 7 | # - language bindings |
5116ffbb | 8 | %bcond_without dotnet # C# bindings |
86870b30 | 9 | %bcond_without golang # Go bindings |
705dcd18 | 10 | %bcond_without guile # guile bindings |
5116ffbb JB |
11 | %bcond_without java # Java bindings |
12 | %bcond_without ocaml # OCaml bindings | |
11ff0a22 | 13 | %bcond_with php # PHP bindings |
5116ffbb JB |
14 | %bcond_without perl # Perl bindings |
15 | %bcond_without ruby # Ruby bindings | |
16 | %bcond_without tcl # Tcl bindings | |
17 | %bcond_without lua # Lua bindings | |
18 | %bcond_without r # R bindings | |
19 | %bcond_without python # Python bindings | |
3f9a7ab4 JB |
20 | %bcond_without python2 # Python 2 bindings |
21 | %bcond_without python3 # Python 3 bindings | |
5116ffbb | 22 | %bcond_with io # io language bindings (needs swig support) |
705dcd18 ER |
23 | # - plugins, features |
24 | %bcond_without gd # gd plugin and gd support in tcl package | |
5116ffbb JB |
25 | %bcond_without ming # ming support |
26 | %bcond_without devil # DevIL plugin | |
031977aa | 27 | %bcond_without qt # Qt features (gvedit utility) |
9a694ad1 JB |
28 | %bcond_without smyrna # SMYRNA utility (large graph viewer) |
29 | %bcond_without ipsepcola # IPSEPCOLA features in neato engine [C++ portability problems] | |
03485284 | 30 | |
27ba60cb | 31 | %define tclver 8.6 |
3f9a7ab4 JB |
32 | |
33 | %if 0%{!?php_name:1} | |
34 | %define php_name php73 | |
35 | %endif | |
39efc9cc | 36 | |
01ba00be | 37 | %ifarch i386 x32 |
f2aec12b JB |
38 | %undefine with_dotnet |
39 | %endif | |
01ba00be | 40 | %ifnarch %{ix86} %{x8664} |
1268dfc4 JB |
41 | %undefine with_java |
42 | %endif | |
43 | %ifarch i386 i486 | |
44 | %undefine with_java | |
45 | %endif | |
c2aca90e | 46 | %ifnarch %{ix86} %{x8664} %{arm} aarch64 |
936f1e80 JB |
47 | %undefine with_golang |
48 | %endif | |
3f9a7ab4 JB |
49 | %if %{without python} |
50 | %undefine with_python2 | |
51 | %undefine with_python3 | |
52 | %endif | |
b805f849 | 53 | Summary: Graph Visualization Tools |
af41817c | 54 | Summary(pl.UTF-8): Narzędzie do wizualizacji w postaci grafów |
b805f849 | 55 | Name: graphviz |
c9c504b9 | 56 | Version: 2.44.1 |
e0f0f918 | 57 | Release: 10 |
404ccc68 | 58 | License: CPL v1.0 |
b805f849 | 59 | Group: X11/Applications/Graphics |
1f9e4999 | 60 | #Source0Download: https://graphviz.gitlab.io/_pages/Download/Download_source.html |
3f9a7ab4 | 61 | Source0: https://www2.graphviz.org/Packages/stable/portable_source/%{name}-%{version}.tar.gz |
c9c504b9 | 62 | # Source0-md5: 96792adafea5cc6879060c400da31ea3 |
ba995c48 | 63 | Patch0: %{name}-fontpath.patch |
86870b30 | 64 | Patch1: %{name}-link.patch |
59d09131 | 65 | Patch2: %{name}-bad-header.patch |
f4007000 | 66 | Patch3: %{name}-php.patch |
cada671f | 67 | Patch4: %{name}-ltdl.patch |
d13e88b1 | 68 | Patch7: %{name}-ruby.patch |
9a694ad1 | 69 | Patch10: %{name}-ming.patch |
9a694ad1 | 70 | Patch12: %{name}-webp.patch |
39c811b7 | 71 | Patch14: python-paths.patch |
db534832 | 72 | Patch15: ghostscript918.patch |
b805f849 | 73 | URL: http://www.graphviz.org/ |
237d1e48 | 74 | %{?with_devil:BuildRequires: DevIL-devel} |
866222d3 | 75 | %{?with_r:BuildRequires: R} |
c006c45c | 76 | BuildRequires: ann-devel |
9a694ad1 | 77 | BuildRequires: autoconf >= 2.61 |
c149ff39 | 78 | BuildRequires: automake |
b805f849 | 79 | BuildRequires: bison |
86870b30 | 80 | BuildRequires: cairo-devel >= 1.0.0 |
c9c504b9 JB |
81 | # for tests |
82 | #BuildRequires: criterion-devel | |
1268dfc4 | 83 | BuildRequires: expat-devel >= 1.95 |
b805f849 | 84 | BuildRequires: flex |
9a694ad1 | 85 | BuildRequires: fontconfig-devel |
6e4ae19d | 86 | BuildRequires: freetype-devel >= 2.0.0 |
b805f849 | 87 | BuildRequires: gawk |
705dcd18 | 88 | %{?with_gd:BuildRequires: gd-devel >= 2.0.34} |
9a694ad1 | 89 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
3ac2a26f | 90 | BuildRequires: gettext-tools |
80f376ac | 91 | BuildRequires: ghostscript-devel |
936f1e80 | 92 | %{?with_golang:BuildRequires: golang} |
1268dfc4 | 93 | BuildRequires: gtk+2-devel >= 2:2.8.0 |
3f9a7ab4 JB |
94 | # only tested, actually not used |
95 | #BuildRequires: gtkglarea-devel >= 2.0 | |
9a694ad1 JB |
96 | BuildRequires: gts-devel |
97 | %{?with_guile:BuildRequires: guile-devel >= 2.0} | |
1268dfc4 | 98 | #BuildRequires: io |
a8c57886 AM |
99 | %if %{with java} |
100 | BuildRequires: jdk | |
101 | BuildRequires: jpackage-utils | |
102 | %endif | |
9a694ad1 | 103 | BuildRequires: libLASi-devel |
b805f849 | 104 | BuildRequires: libjpeg-devel |
86870b30 | 105 | BuildRequires: libltdl-devel >= 2:2.2 |
b805f849 | 106 | BuildRequires: libpng-devel |
86870b30 | 107 | BuildRequires: librsvg-devel >= 2.36.0 |
b805f849 | 108 | BuildRequires: libstdc++-devel |
3f9a7ab4 | 109 | BuildRequires: libtool >= 2:2.2 |
9a694ad1 | 110 | BuildRequires: libwebp-devel |
5116ffbb JB |
111 | # currently external library is not used |
112 | #BuildRequires: libvisio-devel | |
9ee036cb | 113 | # for lua51 binary |
c6d42285 | 114 | %if %{with lua} |
9ee036cb | 115 | BuildRequires: lua51 |
1268dfc4 | 116 | BuildRequires: lua51-devel >= 5.1 |
c6d42285 | 117 | %endif |
9a694ad1 | 118 | %{?with_ming:BuildRequires: ming-devel >= 0.4} |
f2aec12b | 119 | %{?with_dotnet:BuildRequires: mono-csharp} |
aafdcba2 | 120 | %{?with_ocaml:BuildRequires: ocaml} |
9a694ad1 | 121 | BuildRequires: pango-devel >= 1:1.14.9 |
d9d5610d | 122 | BuildRequires: perl-devel |
c6d42285 | 123 | %if %{with php} |
c93f68cd ER |
124 | BuildRequires: %{php_name}-devel |
125 | BuildRequires: %{php_name}-program | |
86870b30 | 126 | BuildRequires: swig-php >= 3.0.11 |
c6d42285 | 127 | %endif |
00031463 | 128 | BuildRequires: pkgconfig |
c006c45c | 129 | BuildRequires: poppler-glib-devel |
5116ffbb | 130 | %{?with_python:BuildRequires: python-devel >= 2.3} |
3f9a7ab4 JB |
131 | %{?with_python2:BuildRequires: python-devel >= 2.3} |
132 | %{?with_python3:BuildRequires: python3-devel >= 3.2} | |
410c2949 | 133 | %{?with_perl:BuildRequires: rpm-perlprov} |
770227b6 | 134 | %{?with_python:BuildRequires: rpm-pythonprov} |
19de6b8f | 135 | BuildRequires: rpmbuild(macros) >= 1.696 |
c006c45c | 136 | %{?with_ruby:BuildRequires: ruby-devel >= 1.9} |
00ff7557 | 137 | BuildRequires: sed >= 4.0 |
9a694ad1 | 138 | # swig-csharp,swig-go,swig-java,swig-lua,swig-ocaml in main swig |
1268dfc4 | 139 | # swig-io ??? |
9a694ad1 | 140 | BuildRequires: swig >= 1.3 |
71e17c62 | 141 | %{?with_guile:BuildRequires: swig-guile >= 2.0.3} |
9a694ad1 | 142 | %{?with_perl:BuildRequires: swig-perl >= 1.3} |
3f9a7ab4 | 143 | %{?with_python:BuildRequires: swig-python >= 1.3} |
9a694ad1 | 144 | %{?with_ruby:BuildRequires: swig-ruby >= 1.3} |
c6d42285 | 145 | %if %{with tcl} |
9a694ad1 | 146 | BuildRequires: swig-tcl >= 1.3 |
27ba60cb AM |
147 | BuildRequires: tcl-devel >= %{tcl_ver} |
148 | BuildRequires: tk-devel >= 8.6.0 | |
c6d42285 | 149 | %endif |
bbf59095 | 150 | BuildRequires: xorg-lib-libX11-devel |
1268dfc4 JB |
151 | BuildRequires: xorg-lib-libXaw-devel |
152 | BuildRequires: xorg-lib-libXpm-devel | |
5116ffbb JB |
153 | # tested in configure to enable ghostscript plugin build, actually not used |
154 | BuildRequires: xorg-lib-libXrender-devel | |
b805f849 | 155 | BuildRequires: zlib-devel |
9a694ad1 JB |
156 | %if %{with smyrna} |
157 | BuildRequires: OpenGL-glut-devel | |
9a694ad1 JB |
158 | BuildRequires: gtkglext-devel >= 1.0 |
159 | BuildRequires: libglade2-devel >= 2.0 | |
160 | %endif | |
031977aa | 161 | %if %{with qt} |
3f9a7ab4 JB |
162 | BuildRequires: Qt5Core-devel >= 5 |
163 | BuildRequires: Qt5Gui-devel >= 5 | |
5384ad8a | 164 | BuildRequires: Qt5PrintSupport-devel >= 5 |
3f9a7ab4 JB |
165 | BuildRequires: Qt5Widgets-devel >= 5 |
166 | BuildRequires: qt5-build >= 5 | |
167 | BuildRequires: qt5-qmake >= 5 | |
031977aa | 168 | %endif |
07fea929 | 169 | Requires(post,postun): /sbin/ldconfig |
39efc9cc JB |
170 | # gd plugin is required by dot command (if graphviz is built with gd support) |
171 | %{?with_gd:Requires: %{name}-gd = %{version}-%{release}} | |
172 | Requires: %{name}-libs = %{version}-%{release} | |
86870b30 | 173 | Requires: cairo >= 1.0.0 |
d115400b | 174 | Requires: fonts-Type1-urw |
86870b30 JB |
175 | Requires: gtk+2 >= 2:2.8.0 |
176 | Requires: libltdl >= 2:2.2 | |
177 | Requires: librsvg >= 2.36.0 | |
9a694ad1 | 178 | Requires: pango >= 1:1.14.9 |
5116ffbb | 179 | %{!?with_golang:Obsoletes: golang-graphviz < %{version}} |
b805f849 AM |
180 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
181 | ||
b805f849 AM |
182 | %description |
183 | A collection of tools and tcl packages for the manipulation and layout | |
184 | of graphs (as in nodes and edges, not as in barcharts). | |
185 | ||
e5b048d9 JR |
186 | %description -l pl.UTF-8 |
187 | Kolekcja narzędzi oraz pakietów tcl służących do manipulacji i | |
188 | rozmieszczania grafów. | |
b805f849 | 189 | |
39efc9cc JB |
190 | %package libs |
191 | Summary: Graphviz shared libraries | |
192 | Summary(pl.UTF-8): Biblioteki współdzielone graphviza | |
193 | Group: Libraries | |
194 | Conflicts: graphviz < 2.40.1-1 | |
a2acb194 | 195 | |
39efc9cc JB |
196 | %description libs |
197 | Graphviz shared libraries. | |
a2acb194 | 198 | |
39efc9cc JB |
199 | %description libs -l pl.UTF-8 |
200 | Biblioteki współdzielone graphviza. | |
a2acb194 | 201 | |
eab557ec ER |
202 | %package devil |
203 | Summary: Graphviz plugin for renderers based on DevIL | |
39efc9cc | 204 | Summary(pl.UTF-8): Wtyczka Graphviza do renderowania w oparciu o bibliotekę DevIL |
eab557ec | 205 | Group: Applications/Multimedia |
39efc9cc | 206 | Requires: %{name}-libs = %{version}-%{release} |
eab557ec ER |
207 | |
208 | %description devil | |
209 | Graphviz plugin for renderers based on DevIL. (Unless you absolutely | |
210 | have to use BMP, TIF, or TGA, you are recommended to use the PNG | |
211 | format instead supported directly by the cairo+pango based renderer in | |
212 | the base graphviz rpm.) | |
213 | ||
39efc9cc JB |
214 | %description devil -l pl.UTF-8 |
215 | Wtyczka Graphviza do renderowania w oparciu o bibliotekę DevIL (jeśli | |
216 | nie ma absolutnej konieczności używania formatu BMP, TIF lub TGA, | |
217 | zalecane jest używanie format PNG bezpośrednio z renderera cairo+pango | |
218 | obecnego w podstawowym pakiecie graphviz. | |
219 | ||
705dcd18 | 220 | %package gd |
39efc9cc JB |
221 | Summary: Graphviz plugin for renderers based on GD |
222 | Summary(pl.UTF-8): Wtyczka Graphviza do renderowania w oparciu o bibliotekę GD | |
705dcd18 | 223 | Group: Applications/Multimedia |
39efc9cc | 224 | Requires: %{name}-libs = %{version}-%{release} |
705dcd18 ER |
225 | Requires: gd >= 2.0.33-5 |
226 | ||
227 | %description gd | |
228 | Graphviz plugin for renderers based on gd. (Unless you absolutely have | |
229 | to use GIF, you are recommended to use the PNG format instead because | |
230 | of the better quality anti-aliased lines provided by the cairo+pango | |
231 | based renderer.) | |
232 | ||
39efc9cc JB |
233 | %description gd -l pl.UTF-8 |
234 | Wtyczka Graphviza do renderowania w oparciu o bibliotekę DevIL (jeśli | |
235 | nie ma absolutnej konieczności używania formatu GIF, zalecane jest | |
236 | używanie format PNG bezpośrednio z renderera cairo+pango obecnego w | |
237 | podstawowym pakiecie graphviz. | |
238 | ||
239 | %package ming | |
240 | Summary: Graphviz plugin for flash renderer based on ming | |
241 | Summary(pl.UTF-8): Wtyczka Graphviza do renderowania w oparciu o bibliotekę ming | |
242 | Group: Applications/Multimedia | |
243 | Requires: %{name}-libs = %{version}-%{release} | |
244 | ||
245 | %description ming | |
246 | Graphviz plugin for -Tswf (flash) renderer based on ming. | |
247 | ||
248 | %description ming -l pl.UTF-8 | |
249 | Wtyczka Graphviza do renderowania z opcją -Tswf (flash) w oparciu o | |
250 | bibliotekę ming. | |
251 | ||
252 | %package devel | |
253 | Summary: Header files for graphviz libraries | |
254 | Summary(pl.UTF-8): Pliki nagłówkowe do bibliotek graphviz | |
255 | Group: X11/Development/Libraries | |
256 | Requires: %{name}-libs = %{version}-%{release} | |
257 | Requires: libltdl-devel >= 2:2 | |
258 | ||
259 | %description devel | |
260 | This package contains the header files for graphviz libraries. | |
261 | ||
262 | %description devel -l pl.UTF-8 | |
263 | Ten pakiet zawiera pliki nagłówkowe do bibliotek graphviz. | |
264 | ||
031977aa JB |
265 | %package gvedit |
266 | Summary: gvedit - simple graph editor and viewer based on Qt | |
267 | Summary(pl.UTF-8): gvedit - prosty edytor i przeglądarka grafów oparta na Qt | |
268 | Group: X11/Applications/Graphics | |
269 | Requires: %{name} = %{version}-%{release} | |
270 | ||
271 | %description gvedit | |
272 | gvedit provides a simple Qt-based graph editor and viewer. | |
273 | ||
274 | %description gvedit -l l.UTF-8 | |
275 | gvedit to prosty edytor i przeglądarka grafów oparta na Qt. | |
276 | ||
277 | %package smyrna | |
278 | Summary: SMYRNA large graph viewer | |
279 | Summary(pl.UTF-8): SMYRNA - przeglądarka dużych grafów | |
280 | Group: X11/Applications/Graphics | |
281 | Requires: %{name} = %{version}-%{release} | |
282 | Requires: gtkglext >= 1.0 | |
283 | ||
284 | %description smyrna | |
285 | SMYRNA is an interactive viewer for graphs in the DOT format. It is | |
286 | especially designed to handle large graphs, and allows flat and | |
287 | topological fisheye views. | |
288 | ||
289 | %description smyrna -l pl.UTF-8 | |
290 | SMYRNA to interaktywna przeglądarka grafów w formacie DOT. Jest | |
291 | przeznaczona szczególnie do obsługi dużych grafów, udostępnia widok | |
292 | płaski oraz topologiczny typu "rybie oko". | |
293 | ||
72fb0113 ER |
294 | %package doc-html |
295 | Summary: HTML documentation for graphviz | |
95a5febc | 296 | Summary(pl.UTF-8): Dokumentacja do graphviza w formacie HTML |
72fb0113 ER |
297 | Group: Documentation |
298 | ||
299 | %description doc-html | |
300 | HTML documentation for graphviz. | |
301 | ||
95a5febc JB |
302 | %description doc-html -l pl.UTF-8 |
303 | Dokumentacja do graphviza w formacie HTML. | |
304 | ||
72fb0113 ER |
305 | %package doc-pdf |
306 | Summary: PDF documentation for graphviz | |
95a5febc | 307 | Summary(pl.UTF-8): Dokumentacja do graphviza w formacie PDF |
72fb0113 ER |
308 | Group: Documentation |
309 | ||
310 | %description doc-pdf | |
311 | PDF documentation for graphviz. | |
312 | ||
95a5febc JB |
313 | %description doc-pdf -l pl.UTF-8 |
314 | Dokumentacja do graphviza w formacie PDF. | |
315 | ||
ddb1b260 JB |
316 | %package graphs |
317 | Summary: Demo graphs for graphviz | |
af41817c | 318 | Summary(pl.UTF-8): Przykładowe grafy dla graphviza |
ddb1b260 | 319 | Group: X11/Applications/Graphics |
b8ced4d6 | 320 | Requires: %{name} = %{version}-%{release} |
ddb1b260 JB |
321 | |
322 | %description graphs | |
323 | This package provides some example graphs. | |
324 | ||
e5b048d9 JR |
325 | %description graphs -l pl.UTF-8 |
326 | Ten pakiet zawiera trochę przykładowych grafów. | |
ddb1b260 | 327 | |
936f1e80 JB |
328 | %package -n golang-%{name} |
329 | Summary: Go binding for graphviz | |
330 | Summary(pl.UTF-8): Wiązania języka Go dla graphviza | |
331 | Group: Libraries | |
332 | Requires: %{name} = %{version}-%{release} | |
333 | Requires: golang | |
334 | ||
335 | %description -n golang-%{name} | |
336 | Go binding for graphviz. | |
337 | ||
338 | %description -n golang-%{name} -l pl.UTF-8 | |
339 | Wiązania języka Go dla graphviza. | |
340 | ||
c006c45c JB |
341 | %package -n io-%{name} |
342 | Summary: Io binding for graphviz | |
343 | Summary(pl.UTF-8): Wiązania języka Io dla graphviza | |
344 | Group: Libraries | |
345 | Requires: %{name} = %{version}-%{release} | |
346 | Requires: io | |
347 | ||
348 | %description -n io-%{name} | |
349 | Io binding for graphviz. | |
350 | ||
351 | %description -n io-%{name} -l pl.UTF-8 | |
352 | Wiązania języka Io dla graphviza. | |
353 | ||
410c2949 | 354 | %package -n guile-%{name} |
f2aec12b | 355 | Summary: Guile binding for graphviz |
af41817c | 356 | Summary(pl.UTF-8): Wiązania Guile dla graphviza |
f2aec12b JB |
357 | Group: Libraries |
358 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 359 | Obsoletes: graphviz-guile |
f2aec12b | 360 | |
410c2949 | 361 | %description -n guile-%{name} |
f2aec12b JB |
362 | Guile binding for graphviz. |
363 | ||
410c2949 | 364 | %description -n guile-%{name} -l pl.UTF-8 |
e5b048d9 | 365 | Wiązania Guile dla graphviza. |
f2aec12b | 366 | |
410c2949 | 367 | %package -n java-%{name} |
a2acb194 | 368 | Summary: Java binding for graphviz |
af41817c | 369 | Summary(pl.UTF-8): Wiązania Javy dla graphviza |
a2acb194 JB |
370 | Group: Libraries |
371 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 372 | Obsoletes: graphviz-java |
a2acb194 | 373 | |
410c2949 | 374 | %description -n java-%{name} |
a2acb194 JB |
375 | Java binding for graphviz. |
376 | ||
410c2949 | 377 | %description -n java-%{name} -l pl.UTF-8 |
e5b048d9 | 378 | Wiązania Javy dla graphviza. |
a2acb194 | 379 | |
410c2949 | 380 | %package -n lua-%{name} |
f2aec12b | 381 | Summary: LUA binding for graphviz |
af41817c | 382 | Summary(pl.UTF-8): Wiązania LUA dla graphviza |
f2aec12b JB |
383 | Group: Libraries |
384 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 385 | Obsoletes: graphviz-lua |
f2aec12b | 386 | |
410c2949 | 387 | %description -n lua-%{name} |
f2aec12b JB |
388 | LUA binding for graphviz. |
389 | ||
410c2949 | 390 | %description -n lua-%{name} -l pl.UTF-8 |
e5b048d9 | 391 | Wiązania LUA dla graphviza. |
f2aec12b | 392 | |
410c2949 | 393 | %package -n ocaml-%{name} |
f2aec12b | 394 | Summary: OCaml binding for graphviz |
af41817c | 395 | Summary(pl.UTF-8): Wiązania OCamla dla graphviza |
f2aec12b JB |
396 | Group: Libraries |
397 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 398 | Obsoletes: graphviz-ocaml |
f2aec12b | 399 | |
410c2949 | 400 | %description -n ocaml-%{name} |
f2aec12b JB |
401 | OCaml binding for graphviz. |
402 | ||
410c2949 | 403 | %description -n ocaml-%{name} -l pl.UTF-8 |
e5b048d9 | 404 | Wiązania OCamla dla graphviza. |
f2aec12b | 405 | |
410c2949 | 406 | %package -n perl-%{name} |
a2acb194 | 407 | Summary: Perl binding for graphviz |
af41817c | 408 | Summary(pl.UTF-8): Wiązania Perla dla graphviza |
a2acb194 JB |
409 | Group: Libraries |
410 | Requires: %{name} = %{version}-%{release} | |
411 | ||
410c2949 | 412 | %description -n perl-%{name} |
a2acb194 JB |
413 | Perl binding for graphviz. |
414 | ||
410c2949 | 415 | %description -n perl-%{name} -l pl.UTF-8 |
e5b048d9 | 416 | Wiązania Perla dla graphviza. |
a2acb194 | 417 | |
c93f68cd | 418 | %package -n %{php_name}-%{name} |
a2acb194 | 419 | Summary: PHP binding for graphviz |
af41817c | 420 | Summary(pl.UTF-8): Wiązania PHP dla graphviza |
a2acb194 JB |
421 | Group: Libraries |
422 | Requires: %{name} = %{version}-%{release} | |
03485284 | 423 | Obsoletes: graphviz-php |
e062f6b1 | 424 | %{?requires_php_extension} |
a2acb194 | 425 | |
c93f68cd | 426 | %description -n %{php_name}-%{name} |
a2acb194 JB |
427 | PHP binding for graphviz. |
428 | ||
c93f68cd | 429 | %description -n %{php_name}-%{name} -l pl.UTF-8 |
e5b048d9 | 430 | Wiązania PHP dla graphviza. |
a2acb194 | 431 | |
25bfd6f6 | 432 | %package -n python-libgraphviz |
3f9a7ab4 JB |
433 | Summary: Python 2 binding for graphviz |
434 | Summary(pl.UTF-8): Wiązania Pythona 2 dla graphviza | |
a2acb194 JB |
435 | Group: Libraries |
436 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 437 | Obsoletes: graphviz-python |
a2acb194 | 438 | |
25bfd6f6 | 439 | %description -n python-libgraphviz |
3f9a7ab4 | 440 | Python 2 binding for graphviz. |
a2acb194 | 441 | |
25bfd6f6 | 442 | %description -n python-libgraphviz -l pl.UTF-8 |
3f9a7ab4 JB |
443 | Wiązania Pythona 2 dla graphviza. |
444 | ||
25bfd6f6 | 445 | %package -n python3-libgraphviz |
3f9a7ab4 JB |
446 | Summary: Python 3 binding for graphviz |
447 | Summary(pl.UTF-8): Wiązania Pythona 3 dla graphviza | |
448 | Group: Libraries | |
449 | Requires: %{name} = %{version}-%{release} | |
450 | ||
25bfd6f6 | 451 | %description -n python3-libgraphviz |
3f9a7ab4 JB |
452 | Python 3 binding for graphviz. |
453 | ||
25bfd6f6 | 454 | %description -n python3-libgraphviz -l pl.UTF-8 |
3f9a7ab4 | 455 | Wiązania Pythona 3 dla graphviza. |
a2acb194 | 456 | |
410c2949 | 457 | %package -n ruby-%{name} |
a2acb194 | 458 | Summary: Ruby binding for graphviz |
af41817c | 459 | Summary(pl.UTF-8): Wiązania Ruby'ego dla graphviza |
a2acb194 JB |
460 | Group: Libraries |
461 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 462 | Obsoletes: graphviz-ruby |
a2acb194 | 463 | |
410c2949 | 464 | %description -n ruby-%{name} |
a2acb194 JB |
465 | Ruby binding for graphviz. |
466 | ||
410c2949 | 467 | %description -n ruby-%{name} -l pl.UTF-8 |
e5b048d9 | 468 | Wiązania Ruby'ego dla graphviza. |
a2acb194 | 469 | |
95a5febc | 470 | %package -n dotnet-%{name}-sharp |
f2aec12b | 471 | Summary: C# binding for graphviz |
af41817c | 472 | Summary(pl.UTF-8): Wiązania C# dla graphviza |
f2aec12b JB |
473 | Group: Libraries |
474 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 475 | Obsoletes: graphviz-sharp |
95a5febc | 476 | Obsoletes: sharp-graphviz |
f2aec12b | 477 | |
95a5febc | 478 | %description -n dotnet-%{name}-sharp |
f2aec12b JB |
479 | C# binding for graphviz. |
480 | ||
95a5febc | 481 | %description -n dotnet-%{name}-sharp -l pl.UTF-8 |
e5b048d9 | 482 | Wiązania C# dla graphviza. |
f2aec12b | 483 | |
410c2949 | 484 | %package -n tcl-%{name} |
ddb1b260 | 485 | Summary: Tcl extension tools for graphviz |
af41817c | 486 | Summary(pl.UTF-8): Rozszerzenia Tcl dla graphviza |
ddb1b260 | 487 | Group: X11/Applications/Graphics |
b8ced4d6 | 488 | Requires: %{name} = %{version}-%{release} |
770227b6 | 489 | Obsoletes: graphviz-tcl |
ddb1b260 | 490 | |
410c2949 | 491 | %description -n tcl-%{name} |
a2acb194 | 492 | This package contains the various Tcl packages (extensions) using |
ddb1b260 JB |
493 | graphviz. |
494 | ||
410c2949 | 495 | %description -n tcl-%{name} -l pl.UTF-8 |
e5b048d9 | 496 | Ten pakiet zawiera różne pakiety (rozszerzenia) Tcl używające |
ddb1b260 JB |
497 | graphviza. |
498 | ||
866222d3 ER |
499 | %package -n R-%{name} |
500 | Summary: graphviz bindings for R language | |
b9fddc2f | 501 | Summary(pl.UTF-8): Wiązania graphviza dla języka R |
866222d3 ER |
502 | Group: X11/Applications/Graphics |
503 | Requires: %{name} = %{version}-%{release} | |
504 | ||
505 | %description -n R-%{name} | |
506 | graphviz bindings for R language. | |
507 | ||
b9fddc2f JB |
508 | %description -n R-%{name} -l pl.UTF-8 |
509 | Wiązania graphviza dla języka R. | |
510 | ||
b805f849 AM |
511 | %prep |
512 | %setup -q | |
ddb1b260 | 513 | %patch0 -p1 |
d9d5610d | 514 | %patch1 -p1 |
b8a8a38c | 515 | %patch3 -p1 |
cada671f | 516 | %patch4 -p1 |
d13e88b1 | 517 | %patch7 -p1 |
aced2bd1 | 518 | %patch10 -p1 |
9a694ad1 | 519 | %patch12 -p1 |
39c811b7 | 520 | %patch14 -p1 |
db534832 | 521 | %patch15 -p1 |
b805f849 | 522 | |
3b68ade2 | 523 | %{__sed} '1s@/usr/bin/lua$@/usr/bin/lua5.1@' -i tclpkg/gv/demo/modgraph.lua |
88c0ea21 | 524 | |
73985232 JR |
525 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \ |
526 | tclpkg/gv/demo/modgraph.py | |
527 | ||
b805f849 | 528 | %build |
a79fb9be AM |
529 | touch config/config.rpath |
530 | %{__libtoolize} --ltdl | |
185131e0 | 531 | %{__aclocal} -I m4 |
f1da6fb9 | 532 | %{__autoconf} |
404ccc68 | 533 | %{__autoheader} |
f1da6fb9 | 534 | %{__automake} |
a8c57886 | 535 | |
c4b373de | 536 | CPPFLAGS="%{rpmcppflags}" |
a8c57886 AM |
537 | %if %{with java} |
538 | JAVA_HOME=%{java_home} | |
539 | export JAVA_HOME | |
c4b373de | 540 | CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/linux" |
a8c57886 | 541 | %endif |
c4b373de | 542 | export CPPFLAGS |
543 | ||
753cb1b6 | 544 | %configure \ |
3f9a7ab4 | 545 | %ifarch %{x8664} aarch64 ppc64 sparc64 s390x |
bdcec6f2 JR |
546 | LIBPOSTFIX="64" \ |
547 | %endif | |
548 | %ifarch x32 | |
549 | LIBPOSTFIX="x32" \ | |
550 | %endif | |
3b68ade2 | 551 | LUA=/usr/bin/lua5.1 \ |
3f9a7ab4 JB |
552 | PHP=%{__php} \ |
553 | %{?with_ruby:RUBY_VER=%{ruby_abi}} \ | |
c9c504b9 | 554 | ac_cv_lib_criterion_main=no \ |
185131e0 | 555 | lua_suffix=51 \ |
9a694ad1 | 556 | %{!?with_devil:--disable-devil} \ |
936f1e80 | 557 | %{?with_golang:--enable-go} \ |
c006c45c | 558 | %{?with_io:--enable-io} \ |
f2aec12b | 559 | %{!?with_java:--disable-java} \ |
9a694ad1 JB |
560 | --disable-ltdl-install \ |
561 | %{!?with_lua:--disable-lua} \ | |
aafdcba2 | 562 | %{!?with_ocaml:--disable-ocaml} \ |
c6d42285 | 563 | %{!?with_perl:--disable-perl} \ |
564 | %{!?with_php:--disable-php} \ | |
3f9a7ab4 JB |
565 | %{!?with_python:--disable-python} \ |
566 | %{!?with_python2:--disable-python2} \ | |
567 | %{!?with_python3:--disable-python3} \ | |
9a694ad1 | 568 | %{!?with_r:--disable-r} \ |
c6d42285 | 569 | %{!?with_ruby:--disable-ruby} \ |
9a694ad1 | 570 | %{!?with_dotnet:--disable-sharp} \ |
c6d42285 | 571 | %{!?with_tcl:--disable-tcl} \ |
9a694ad1 JB |
572 | --disable-silent-rules \ |
573 | --disable-static \ | |
574 | %{?with_ipsepcola:--with-ipsepcola} \ | |
575 | %{?with_ming:--with-ming} \ | |
031977aa | 576 | %{!?with_qt:--without-qt} \ |
9a694ad1 | 577 | %{?with_smyrna:--with-smyrna} \ |
705dcd18 | 578 | %{!?with_gd:--without-libgd} \ |
9a694ad1 JB |
579 | --with-visio \ |
580 | --with-webp | |
ddb1b260 | 581 | |
5116ffbb | 582 | %{__make} |
b805f849 AM |
583 | |
584 | %install | |
585 | rm -rf $RPM_BUILD_ROOT | |
3f9a7ab4 JB |
586 | |
587 | %{__make} -j1 install \ | |
b805f849 AM |
588 | DESTDIR=$RPM_BUILD_ROOT |
589 | ||
03485284 ER |
590 | %if %{with php} |
591 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
592 | cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{name}.ini | |
593 | ; Enable gv.so extension module | |
594 | extension=gv.so | |
595 | EOF | |
596 | ||
597 | # drop the symlinks and install to php dirs directly | |
a47c3e85 | 598 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{php_name}-%{name}-%{version} |
86870b30 JB |
599 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{name}/php,%{php_data_dir}}/gv.php |
600 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/php/libgv_php.so | |
601 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/php/gv.so | |
602 | %{__mv} $RPM_BUILD_ROOT{%{_datadir}/%{name}/demo,%{_examplesdir}/%{php_name}-%{name}-%{version}}/modgraph.php | |
03485284 ER |
603 | %endif |
604 | ||
ffc497de ER |
605 | # "man3/gv.3r.gz" and "man3/gv.3ruby.gz" are both manual for "gv" in "section 3" of man pages |
606 | # make manual pages unique. | |
607 | for a in $RPM_BUILD_ROOT%{_mandir}/man3/gv.*; do | |
608 | m=${a##*/} | |
609 | l=${m#gv.3} | |
86870b30 | 610 | %{__mv} $a ${a%/*}/gv_$l.3 |
ffc497de ER |
611 | done |
612 | ||
7c737c2a KK |
613 | # created by %{_bindir}/dot -c |
614 | touch $RPM_BUILD_ROOT%{_libdir}/graphviz/config | |
615 | ||
c9c504b9 | 616 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
d13e88b1 | 617 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/graphviz/libgvplugin_*.la |
616e8216 JB |
618 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/graphviz/*/lib*.la |
619 | %if %{with java} | |
620 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/graphviz/java/org/graphviz/lib*.la | |
621 | %endif | |
da038acf | 622 | |
1cf9b16b | 623 | rm -rf doc-html doc-pdf |
86870b30 JB |
624 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/html doc-html |
625 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/pdf doc-pdf | |
626 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/doc | |
abc132a1 | 627 | %{?with_smyrna:%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/examples} |
1cf9b16b | 628 | |
d13e88b1 | 629 | cd $RPM_BUILD_ROOT |
e6ddb759 | 630 | patch -p1 --no-backup-if-mismatch < %{PATCH2} || exit 1 |
d13e88b1 | 631 | |
b805f849 AM |
632 | %clean |
633 | rm -rf $RPM_BUILD_ROOT | |
634 | ||
07b95f14 | 635 | %post |
07fea929 | 636 | umask 022 |
a2acb194 | 637 | [ ! -x %{_bindir}/dot ] || %{_bindir}/dot -c > /dev/null 2>&1 |
07b95f14 | 638 | |
7c737c2a | 639 | %postun -p /sbin/ldconfig |
b805f849 | 640 | |
39efc9cc JB |
641 | %post libs -p /sbin/ldconfig |
642 | %postun libs -p /sbin/ldconfig | |
643 | ||
c93f68cd | 644 | %post -n %{php_name}-%{name} |
03485284 ER |
645 | %php_webserver_restart |
646 | ||
c93f68cd | 647 | %postun -n %{php_name}-%{name} |
03485284 ER |
648 | if [ "$1" = 0 ]; then |
649 | %php_webserver_restart | |
650 | fi | |
651 | ||
b805f849 AM |
652 | %files |
653 | %defattr(644,root,root,755) | |
d13e88b1 JB |
654 | %doc AUTHORS COPYING ChangeLog NEWS README |
655 | %attr(755,root,root) %{_bindir}/acyclic | |
656 | %attr(755,root,root) %{_bindir}/bcomps | |
657 | %attr(755,root,root) %{_bindir}/ccomps | |
658 | %attr(755,root,root) %{_bindir}/circo | |
80f376ac | 659 | %attr(755,root,root) %{_bindir}/cluster |
d13e88b1 JB |
660 | %attr(755,root,root) %{_bindir}/dijkstra |
661 | %attr(755,root,root) %{_bindir}/dot | |
662 | %attr(755,root,root) %{_bindir}/dot2gxl | |
80f376ac | 663 | %attr(755,root,root) %{_bindir}/dot_builtins |
d13e88b1 | 664 | %attr(755,root,root) %{_bindir}/dotty |
616e8216 | 665 | %attr(755,root,root) %{_bindir}/edgepaint |
d13e88b1 JB |
666 | %attr(755,root,root) %{_bindir}/fdp |
667 | %attr(755,root,root) %{_bindir}/gc | |
668 | %attr(755,root,root) %{_bindir}/gml2gv | |
9a694ad1 JB |
669 | %attr(755,root,root) %{_bindir}/graphml2gv |
670 | %attr(755,root,root) %{_bindir}/gv2gml | |
d13e88b1 JB |
671 | %attr(755,root,root) %{_bindir}/gv2gxl |
672 | %attr(755,root,root) %{_bindir}/gvcolor | |
673 | %attr(755,root,root) %{_bindir}/gvgen | |
80f376ac JB |
674 | %attr(755,root,root) %{_bindir}/gvmap |
675 | %attr(755,root,root) %{_bindir}/gvmap.sh | |
d13e88b1 JB |
676 | %attr(755,root,root) %{_bindir}/gvpack |
677 | %attr(755,root,root) %{_bindir}/gvpr | |
678 | %attr(755,root,root) %{_bindir}/gxl2dot | |
679 | %attr(755,root,root) %{_bindir}/gxl2gv | |
680 | %attr(755,root,root) %{_bindir}/lefty | |
681 | %attr(755,root,root) %{_bindir}/lneato | |
c006c45c | 682 | %attr(755,root,root) %{_bindir}/mingle |
d13e88b1 JB |
683 | %attr(755,root,root) %{_bindir}/mm2gv |
684 | %attr(755,root,root) %{_bindir}/neato | |
685 | %attr(755,root,root) %{_bindir}/nop | |
686 | %attr(755,root,root) %{_bindir}/osage | |
80f376ac | 687 | %attr(755,root,root) %{_bindir}/patchwork |
d13e88b1 JB |
688 | %attr(755,root,root) %{_bindir}/prune |
689 | %attr(755,root,root) %{_bindir}/sccmap | |
690 | %attr(755,root,root) %{_bindir}/sfdp | |
691 | %attr(755,root,root) %{_bindir}/tred | |
692 | %attr(755,root,root) %{_bindir}/twopi | |
693 | %attr(755,root,root) %{_bindir}/unflatten | |
694 | %attr(755,root,root) %{_bindir}/vimdot | |
f2aec12b | 695 | %ghost %{_libdir}/graphviz/config |
1268dfc4 | 696 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_core.so* |
a2acb194 | 697 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_dot_layout.so* |
5116ffbb | 698 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_gdk.so* |
d13e88b1 | 699 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_gs.so* |
1268dfc4 | 700 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_gtk.so* |
9a694ad1 | 701 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_lasi.so* |
a2acb194 | 702 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_neato_layout.so* |
1268dfc4 | 703 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_pango.so* |
c006c45c | 704 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_poppler.so* |
f4007000 | 705 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_rsvg.so* |
9a694ad1 JB |
706 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_visio.so* |
707 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_webp.so* | |
1268dfc4 | 708 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_xlib.so* |
ddb1b260 | 709 | %dir %{_datadir}/graphviz |
f4007000 | 710 | %dir %{_datadir}/graphviz/demo |
9a694ad1 | 711 | %{_datadir}/graphviz/gvpr |
ddb1b260 | 712 | %{_datadir}/graphviz/lefty |
d13e88b1 JB |
713 | %{_mandir}/man1/acyclic.1* |
714 | %{_mandir}/man1/bcomps.1* | |
715 | %{_mandir}/man1/ccomps.1* | |
716 | %{_mandir}/man1/circo.1* | |
80f376ac | 717 | %{_mandir}/man1/cluster.1* |
d13e88b1 JB |
718 | %{_mandir}/man1/dijkstra.1* |
719 | %{_mandir}/man1/dot.1* | |
3f9a7ab4 | 720 | %{_mandir}/man1/dot2gxl.1* |
d13e88b1 | 721 | %{_mandir}/man1/dotty.1* |
616e8216 | 722 | %{_mandir}/man1/edgepaint.1* |
d13e88b1 JB |
723 | %{_mandir}/man1/fdp.1* |
724 | %{_mandir}/man1/gc.1* | |
725 | %{_mandir}/man1/gml2gv.1* | |
9a694ad1 JB |
726 | %{_mandir}/man1/graphml2gv.1* |
727 | %{_mandir}/man1/gv2gml.1* | |
d13e88b1 JB |
728 | %{_mandir}/man1/gv2gxl.1* |
729 | %{_mandir}/man1/gvcolor.1* | |
730 | %{_mandir}/man1/gvgen.1* | |
80f376ac JB |
731 | %{_mandir}/man1/gvmap.1* |
732 | %{_mandir}/man1/gvmap.sh.1* | |
d13e88b1 JB |
733 | %{_mandir}/man1/gvpack.1* |
734 | %{_mandir}/man1/gvpr.1* | |
3f9a7ab4 | 735 | %{_mandir}/man1/gxl2dot.1* |
d13e88b1 JB |
736 | %{_mandir}/man1/gxl2gv.1* |
737 | %{_mandir}/man1/lefty.1* | |
738 | %{_mandir}/man1/lneato.1* | |
c006c45c | 739 | %{_mandir}/man1/mingle.1* |
d13e88b1 JB |
740 | %{_mandir}/man1/mm2gv.1* |
741 | %{_mandir}/man1/neato.1* | |
742 | %{_mandir}/man1/nop.1* | |
743 | %{_mandir}/man1/osage.1* | |
80f376ac | 744 | %{_mandir}/man1/patchwork.1* |
d13e88b1 JB |
745 | %{_mandir}/man1/prune.1* |
746 | %{_mandir}/man1/sccmap.1* | |
747 | %{_mandir}/man1/sfdp.1* | |
d13e88b1 JB |
748 | %{_mandir}/man1/tred.1* |
749 | %{_mandir}/man1/twopi.1* | |
750 | %{_mandir}/man1/unflatten.1* | |
80f376ac | 751 | %{_mandir}/man1/vimdot.1* |
185131e0 | 752 | %{_mandir}/man7/graphviz.7* |
ddb1b260 | 753 | |
39efc9cc JB |
754 | %files libs |
755 | %defattr(644,root,root,755) | |
756 | %attr(755,root,root) %{_libdir}/libcdt.so.*.*.* | |
757 | %attr(755,root,root) %ghost %{_libdir}/libcdt.so.5 | |
758 | %attr(755,root,root) %{_libdir}/libcgraph.so.*.*.* | |
759 | %attr(755,root,root) %ghost %{_libdir}/libcgraph.so.6 | |
760 | %attr(755,root,root) %{_libdir}/libgvc.so.*.*.* | |
761 | %attr(755,root,root) %ghost %{_libdir}/libgvc.so.6 | |
762 | %attr(755,root,root) %{_libdir}/libgvpr.so.*.*.* | |
763 | %attr(755,root,root) %ghost %{_libdir}/libgvpr.so.2 | |
764 | %attr(755,root,root) %{_libdir}/liblab_gamut.so.*.*.* | |
765 | %attr(755,root,root) %ghost %{_libdir}/liblab_gamut.so.1 | |
766 | %attr(755,root,root) %{_libdir}/libpathplan.so.*.*.* | |
767 | %attr(755,root,root) %ghost %{_libdir}/libpathplan.so.4 | |
768 | %attr(755,root,root) %{_libdir}/libxdot.so.*.*.* | |
769 | %attr(755,root,root) %ghost %{_libdir}/libxdot.so.4 | |
770 | %dir %{_libdir}/graphviz | |
771 | ||
eab557ec ER |
772 | %if %{with devil} |
773 | %files devil | |
705dcd18 | 774 | %defattr(644,root,root,755) |
eab557ec ER |
775 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_devil.so* |
776 | %endif | |
777 | ||
705dcd18 ER |
778 | %if %{with gd} |
779 | %files gd | |
780 | %defattr(644,root,root,755) | |
781 | %attr(755,root,root) %{_bindir}/diffimg | |
782 | %{_mandir}/man1/diffimg.1* | |
783 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_gd.so* | |
784 | %endif | |
785 | ||
eab557ec ER |
786 | %if %{with ming} |
787 | %files ming | |
705dcd18 | 788 | %defattr(644,root,root,755) |
eab557ec ER |
789 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_ming.so* |
790 | %{_datadir}/graphviz/font | |
791 | %endif | |
792 | ||
a2acb194 JB |
793 | %files devel |
794 | %defattr(644,root,root,755) | |
1268dfc4 | 795 | %attr(755,root,root) %{_libdir}/libcdt.so |
f4007000 | 796 | %attr(755,root,root) %{_libdir}/libcgraph.so |
1268dfc4 | 797 | %attr(755,root,root) %{_libdir}/libgvc.so |
237d1e48 | 798 | %attr(755,root,root) %{_libdir}/libgvpr.so |
86870b30 | 799 | %attr(755,root,root) %{_libdir}/liblab_gamut.so |
1268dfc4 | 800 | %attr(755,root,root) %{_libdir}/libpathplan.so |
237d1e48 | 801 | %attr(755,root,root) %{_libdir}/libxdot.so |
1268dfc4 | 802 | %{_pkgconfigdir}/libcdt.pc |
f4007000 | 803 | %{_pkgconfigdir}/libcgraph.pc |
1268dfc4 | 804 | %{_pkgconfigdir}/libgvc.pc |
237d1e48 | 805 | %{_pkgconfigdir}/libgvpr.pc |
86870b30 | 806 | %{_pkgconfigdir}/liblab_gamut.pc |
1268dfc4 | 807 | %{_pkgconfigdir}/libpathplan.pc |
237d1e48 | 808 | %{_pkgconfigdir}/libxdot.pc |
a2acb194 | 809 | %{_includedir}/graphviz |
03485284 ER |
810 | %{_mandir}/man3/cdt.3* |
811 | %{_mandir}/man3/cgraph.3* | |
80f376ac | 812 | %{_mandir}/man3/expr.3* |
03485284 | 813 | %{_mandir}/man3/gvc.3* |
5116ffbb | 814 | %{_mandir}/man3/gvpr.3* |
80f376ac | 815 | %{_mandir}/man3/pack.3* |
03485284 | 816 | %{_mandir}/man3/xdot.3* |
a2acb194 | 817 | |
031977aa JB |
818 | %if %{with qt} |
819 | %files gvedit | |
820 | %defattr(644,root,root,755) | |
821 | %attr(755,root,root) %{_bindir}/gvedit | |
822 | %{_datadir}/graphviz/gvedit | |
823 | %{_mandir}/man1/gvedit.1* | |
824 | %endif | |
825 | ||
826 | %if %{with smyrna} | |
827 | %files smyrna | |
828 | %defattr(644,root,root,755) | |
829 | %attr(755,root,root) %{_bindir}/smyrna | |
830 | %{_datadir}/graphviz/smyrna | |
831 | %{_mandir}/man1/smyrna.1* | |
832 | %endif | |
833 | ||
72fb0113 ER |
834 | %files doc-html |
835 | %defattr(644,root,root,755) | |
1cf9b16b | 836 | %doc doc-html/* |
72fb0113 ER |
837 | |
838 | %files doc-pdf | |
839 | %defattr(644,root,root,755) | |
1cf9b16b | 840 | %doc doc-pdf/* |
72fb0113 | 841 | |
ddb1b260 JB |
842 | %files graphs |
843 | %defattr(644,root,root,755) | |
844 | %{_datadir}/graphviz/graphs | |
845 | ||
936f1e80 JB |
846 | %if %{with golang} |
847 | %files -n golang-%{name} | |
848 | %defattr(644,root,root,755) | |
849 | %dir %{_libdir}/graphviz/go | |
850 | %attr(755,root,root) %{_libdir}/graphviz/go/libgv_go.so | |
86870b30 JB |
851 | %{_libdir}/graphviz/go/gv.go |
852 | %{_libdir}/graphviz/go/runtime.h | |
936f1e80 JB |
853 | %{_mandir}/man3/gv_go.3* |
854 | %endif | |
855 | ||
c6d42285 | 856 | %if %{with guile} |
410c2949 | 857 | %files -n guile-%{name} |
f2aec12b JB |
858 | %defattr(644,root,root,755) |
859 | %dir %{_libdir}/graphviz/guile | |
f4007000 | 860 | %attr(755,root,root) %{_libdir}/graphviz/guile/libgv_guile.so |
d13e88b1 | 861 | %{_mandir}/man3/gv_guile.3* |
c6d42285 | 862 | %endif |
f2aec12b | 863 | |
c006c45c JB |
864 | %if %{with io} |
865 | %files -n io-%{name} | |
866 | %defattr(644,root,root,755) | |
867 | %dir %{_libdir}/graphviz/io | |
868 | %attr(755,root,root) %{_libdir}/graphviz/io/libgv_io.so* | |
869 | %{_mandir}/mann/gv_io.n* | |
870 | %endif | |
871 | ||
a2acb194 | 872 | %if %{with java} |
410c2949 | 873 | %files -n java-%{name} |
a2acb194 | 874 | %defattr(644,root,root,755) |
f2aec12b | 875 | %dir %{_libdir}/graphviz/java |
86870b30 | 876 | %attr(755,root,root) %{_libdir}/graphviz/java/libgv.so |
616e8216 JB |
877 | %dir %{_libdir}/graphviz/java/org |
878 | %dir %{_libdir}/graphviz/java/org/graphviz | |
879 | %attr(755,root,root) %{_libdir}/graphviz/java/org/graphviz/libgv_java.so | |
880 | %{_libdir}/graphviz/java/org/graphviz/*.class | |
881 | %{_libdir}/graphviz/java/org/graphviz/*.java | |
d13e88b1 | 882 | %{_mandir}/man3/gv_java.3* |
a2acb194 JB |
883 | %endif |
884 | ||
c6d42285 | 885 | %if %{with lua} |
410c2949 | 886 | %files -n lua-%{name} |
f2aec12b JB |
887 | %defattr(644,root,root,755) |
888 | %dir %{_libdir}/graphviz/lua | |
f4007000 | 889 | %attr(755,root,root) %{_libdir}/graphviz/lua/libgv_lua.so |
f2aec12b | 890 | %attr(755,root,root) %{_libdir}/graphviz/lua/gv.so |
f4007000 | 891 | %attr(755,root,root) %{_datadir}/graphviz/demo/modgraph.lua |
8e754c12 | 892 | %attr(755,root,root) %{_libdir}/lua/gv.so |
d13e88b1 | 893 | %{_mandir}/man3/gv_lua.3* |
c6d42285 | 894 | %endif |
f2aec12b | 895 | |
aafdcba2 | 896 | %if %{with ocaml} |
410c2949 | 897 | %files -n ocaml-%{name} |
f2aec12b | 898 | %defattr(644,root,root,755) |
29487644 | 899 | %dir %{_libdir}/graphviz/ocaml |
f4007000 JB |
900 | %attr(755,root,root) %{_libdir}/graphviz/ocaml/libgv_ocaml.so |
901 | %{_libdir}/graphviz/ocaml/META.gv | |
9a694ad1 JB |
902 | # ocamlopt temporarily disabled |
903 | #%{_libdir}/graphviz/ocaml/gv.a | |
f4007000 | 904 | %{_libdir}/graphviz/ocaml/gv.cm* |
9a694ad1 | 905 | #%{_libdir}/graphviz/ocaml/gv.ml* |
d13e88b1 | 906 | %{_mandir}/man3/gv_ocaml.3* |
aafdcba2 | 907 | %endif |
f2aec12b | 908 | |
c6d42285 | 909 | %if %{with perl} |
410c2949 | 910 | %files -n perl-%{name} |
a2acb194 | 911 | %defattr(644,root,root,755) |
f2aec12b | 912 | %dir %{_libdir}/graphviz/perl |
f4007000 | 913 | %attr(755,root,root) %{_libdir}/graphviz/perl/libgv_perl.so |
f2aec12b JB |
914 | %attr(755,root,root) %{_libdir}/graphviz/perl/gv.so |
915 | %{_libdir}/graphviz/perl/gv.pm | |
f4007000 JB |
916 | %attr(755,root,root) %{_datadir}/graphviz/demo/modgraph.pl |
917 | %attr(755,root,root) %{perl_vendorarch}/gv.so | |
918 | %{perl_vendorarch}/gv.pm | |
d13e88b1 | 919 | %{_mandir}/man3/gv_perl.3* |
c6d42285 | 920 | %endif |
a2acb194 | 921 | |
c6d42285 | 922 | %if %{with php} |
c93f68cd | 923 | %files -n %{php_name}-%{name} |
a2acb194 | 924 | %defattr(644,root,root,755) |
03485284 ER |
925 | %attr(755,root,root) %{php_extensiondir}/gv.so |
926 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{name}.ini | |
927 | %{php_data_dir}/gv.php | |
d13e88b1 | 928 | %{_mandir}/man3/gv_php.3* |
c93f68cd | 929 | %{_examplesdir}/%{php_name}-%{name}-%{version} |
c6d42285 | 930 | %endif |
a2acb194 | 931 | |
410c2949 | 932 | %if %{with python} |
25bfd6f6 | 933 | %files -n python-libgraphviz |
a2acb194 | 934 | %defattr(644,root,root,755) |
f2aec12b | 935 | %dir %{_libdir}/graphviz/python |
f4007000 | 936 | %attr(755,root,root) %{_libdir}/graphviz/python/libgv_python.so |
f2aec12b JB |
937 | %attr(755,root,root) %{_libdir}/graphviz/python/_gv.so |
938 | %{_libdir}/graphviz/python/gv.py | |
3f9a7ab4 JB |
939 | %if %{with python2} |
940 | %dir %{_libdir}/graphviz/python2 | |
941 | %attr(755,root,root) %{_libdir}/graphviz/python2/libgv_python2.so | |
942 | %attr(755,root,root) %{_libdir}/graphviz/python2/_gv.so | |
943 | %{_libdir}/graphviz/python2/gv.py | |
944 | %endif | |
f4007000 JB |
945 | %attr(755,root,root) %{_datadir}/graphviz/demo/modgraph.py |
946 | %attr(755,root,root) %{py_sitedir}/_gv.so | |
947 | %{py_sitedir}/gv.py | |
d13e88b1 | 948 | %{_mandir}/man3/gv_python.3* |
410c2949 | 949 | %endif |
a2acb194 | 950 | |
3f9a7ab4 | 951 | %if %{with python3} |
25bfd6f6 | 952 | %files -n python3-libgraphviz |
3f9a7ab4 JB |
953 | %defattr(644,root,root,755) |
954 | %dir %{_libdir}/graphviz/python3 | |
955 | %attr(755,root,root) %{_libdir}/graphviz/python3/libgv_python3.so | |
956 | %attr(755,root,root) %{_libdir}/graphviz/python3/_gv.so | |
957 | %{_libdir}/graphviz/python3/gv.py | |
958 | %attr(755,root,root) %{py3_sitedir}/_gv.so | |
959 | %{py3_sitedir}/gv.py | |
960 | %endif | |
961 | ||
c6d42285 | 962 | %if %{with ruby} |
410c2949 | 963 | %files -n ruby-%{name} |
a2acb194 | 964 | %defattr(644,root,root,755) |
f2aec12b | 965 | %dir %{_libdir}/graphviz/ruby |
f4007000 | 966 | %attr(755,root,root) %{_libdir}/graphviz/ruby/libgv_ruby.so |
f2aec12b | 967 | %attr(755,root,root) %{_libdir}/graphviz/ruby/gv.so |
f4007000 | 968 | %attr(755,root,root) %{_datadir}/graphviz/demo/modgraph.rb |
9a694ad1 | 969 | %{ruby_vendorarchdir}/gv.so |
d13e88b1 | 970 | %{_mandir}/man3/gv_ruby.3* |
c6d42285 | 971 | %endif |
f2aec12b JB |
972 | |
973 | %if %{with dotnet} | |
95a5febc | 974 | %files -n dotnet-%{name}-sharp |
f2aec12b JB |
975 | %defattr(644,root,root,755) |
976 | %dir %{_libdir}/graphviz/sharp | |
f4007000 | 977 | %attr(755,root,root) %{_libdir}/graphviz/sharp/libgv_sharp.so |
f2aec12b | 978 | %{_libdir}/graphviz/sharp/*.cs |
d13e88b1 | 979 | %{_mandir}/man3/gv_sharp.3* |
410c2949 | 980 | %endif |
a2acb194 | 981 | |
c6d42285 | 982 | %if %{with tcl} |
410c2949 | 983 | %files -n tcl-%{name} |
ddb1b260 | 984 | %defattr(644,root,root,755) |
f2aec12b | 985 | %dir %{_libdir}/graphviz/tcl |
f4007000 | 986 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libgv_tcl.so |
f2aec12b | 987 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libtcldot.so* |
1268dfc4 | 988 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libtcldot_builtin.so* |
f2aec12b | 989 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libtclplan.so* |
f4007000 | 990 | %{_libdir}/graphviz/tcl/pkgIndex.tcl |
00ff7557 | 991 | %{_libdir}/tcl%{tclver}/graphviz |
d13e88b1 | 992 | %{_mandir}/man3/gv_tcl.3* |
ffc497de | 993 | %{_mandir}/man3/pathplan.3* |
03485284 | 994 | %{_mandir}/man3/tcldot.3tcl* |
ddb1b260 | 995 | %{_datadir}/graphviz/demo/pathplan_data |
f4007000 JB |
996 | %{_datadir}/graphviz/demo/*.README |
997 | %{_datadir}/graphviz/demo/*.html | |
998 | %attr(755,root,root) %{_datadir}/graphviz/demo/doted.tcl | |
999 | %attr(755,root,root) %{_datadir}/graphviz/demo/entities.tcl | |
1000 | %attr(755,root,root) %{_datadir}/graphviz/demo/gcat.tcl | |
1001 | %attr(755,root,root) %{_datadir}/graphviz/demo/modgraph.tcl | |
1002 | %attr(755,root,root) %{_datadir}/graphviz/demo/pathplan.tcl | |
705dcd18 ER |
1003 | %if %{with gd} |
1004 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libgdtclft.so* | |
1005 | %{_mandir}/man3/gdtclft.3tcl* | |
1006 | %endif | |
c6d42285 | 1007 | %endif |
866222d3 ER |
1008 | |
1009 | %if %{with r} | |
1010 | %files -n R-%{name} | |
1011 | %defattr(644,root,root,755) | |
770227b6 | 1012 | %dir %{_libdir}/%{name}/R |
866222d3 ER |
1013 | %attr(755,root,root) %{_libdir}/%{name}/R/gv.so |
1014 | %attr(755,root,root) %{_libdir}/%{name}/R/libgv_R.so | |
d13e88b1 | 1015 | %{_mandir}/man3/gv_r.3* |
866222d3 | 1016 | %endif |