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