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