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