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