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