]>
Commit | Line | Data |
---|---|---|
a71610d8 | 1 | # TODO |
770227b6 | 2 | # - %{_libdir}/graphviz/config is not FHS friendly path as config |
866222d3 | 3 | # - io language bindings: io-graphviz |
866222d3 | 4 | # - ghostscript subpackage? |
72fb0113 ER |
5 | # /usr/lib64/graphviz/libgvplugin_gs.so |
6 | # /usr/lib64/graphviz/libgvplugin_gs.so.6 | |
7 | # /usr/lib64/graphviz/libgvplugin_gs.so.6.0.0 | |
a2acb194 JB |
8 | # |
9 | # Conditional build: | |
c6d42285 | 10 | %bcond_without dotnet # don't build C# bindings |
11 | %bcond_without java # don't build Java bindings | |
12 | %bcond_without ocaml # don't build ocaml bindings | |
13 | %bcond_without php # don't build php bindings | |
14 | %bcond_without perl # don't build perl bindings | |
15 | %bcond_without ruby # don't build ruby bindings | |
16 | %bcond_without tcl # don't build tcl bindings | |
17 | %bcond_without lua # don't build lua bindings | |
866222d3 | 18 | %bcond_without r # don't build R bindings |
410c2949 ER |
19 | %bcond_without python # don't build python bindings |
20 | %bcond_with io # don't build io language bindings | |
c6d42285 | 21 | %bcond_without guile # don't build guile bindings |
410c2949 | 22 | %bcond_without ming # don't build ming support |
237d1e48 | 23 | %bcond_without devil # don't build devil plugin |
03485284 | 24 | |
185131e0 | 25 | %ifarch i386 |
f2aec12b JB |
26 | %undefine with_dotnet |
27 | %endif | |
1268dfc4 JB |
28 | %ifnarch %{ix86} %{x8664} |
29 | %undefine with_java | |
30 | %endif | |
31 | %ifarch i386 i486 | |
32 | %undefine with_java | |
33 | %endif | |
770227b6 | 34 | %{?with_perl:%include /usr/lib/rpm/macros.perl} |
b805f849 | 35 | Summary: Graph Visualization Tools |
af41817c | 36 | Summary(pl.UTF-8): Narzędzie do wizualizacji w postaci grafów |
b805f849 | 37 | Name: graphviz |
c6d42285 | 38 | Version: 2.26.3 |
dd39a77f | 39 | Release: 5 |
404ccc68 | 40 | License: CPL v1.0 |
b805f849 | 41 | Group: X11/Applications/Graphics |
ba995c48 | 42 | Source0: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz |
c6d42285 | 43 | # Source0-md5: 6f45946fa622770c45609778c0a982ee |
ba995c48 | 44 | Patch0: %{name}-fontpath.patch |
185131e0 | 45 | Patch1: %{name}-tk.patch |
59d09131 | 46 | Patch2: %{name}-bad-header.patch |
f4007000 | 47 | Patch3: %{name}-php.patch |
52cfc3f4 | 48 | Patch5: %{name}-lua51.patch |
c599137b | 49 | Patch6: %{name}-php_modules_dir.patch |
f5498d72 | 50 | Patch7: gv.i.patch |
2514afa0 | 51 | Patch8: swig_php5.patch |
b805f849 | 52 | URL: http://www.graphviz.org/ |
237d1e48 | 53 | %{?with_devil:BuildRequires: DevIL-devel} |
866222d3 | 54 | %{?with_r:BuildRequires: R} |
1268dfc4 | 55 | BuildRequires: autoconf >= 2.59-9 |
c149ff39 | 56 | BuildRequires: automake |
b805f849 | 57 | BuildRequires: bison |
1268dfc4 | 58 | BuildRequires: expat-devel >= 1.95 |
b805f849 | 59 | BuildRequires: flex |
6e4ae19d | 60 | BuildRequires: freetype-devel >= 2.0.0 |
b805f849 | 61 | BuildRequires: gawk |
185131e0 | 62 | BuildRequires: gd-devel >= 2.0.34 |
c2358d83 | 63 | BuildRequires: gettext-devel |
1268dfc4 | 64 | BuildRequires: gtk+2-devel >= 2:2.8.0 |
c6d42285 | 65 | %{?with_guile:BuildRequires: guile-devel >= 1.4} |
1268dfc4 | 66 | #BuildRequires: io |
a8c57886 AM |
67 | %if %{with java} |
68 | BuildRequires: jdk | |
69 | BuildRequires: jpackage-utils | |
70 | %endif | |
b805f849 AM |
71 | BuildRequires: libjpeg-devel |
72 | BuildRequires: libpng-devel | |
f4007000 | 73 | BuildRequires: librsvg-devel >= 2.0 |
b805f849 | 74 | BuildRequires: libstdc++-devel |
ddb1b260 | 75 | BuildRequires: libtool |
9ee036cb | 76 | # for lua51 binary |
c6d42285 | 77 | %if %{with lua} |
9ee036cb | 78 | BuildRequires: lua51 |
1268dfc4 | 79 | BuildRequires: lua51-devel >= 5.1 |
c6d42285 | 80 | %endif |
81 | %{?with_ming:BuildRequires: ming-devel} | |
f2aec12b | 82 | %{?with_dotnet:BuildRequires: mono-csharp} |
aafdcba2 | 83 | %{?with_ocaml:BuildRequires: ocaml} |
1268dfc4 | 84 | BuildRequires: pango-devel >= 1.10 |
d9d5610d | 85 | BuildRequires: perl-devel |
c6d42285 | 86 | %if %{with php} |
e062f6b1 | 87 | BuildRequires: php-devel >= 3:5.0.0 |
a3403399 | 88 | BuildRequires: php-program >= 4:5.0 |
c6d42285 | 89 | %endif |
00031463 | 90 | BuildRequires: pkgconfig |
410c2949 | 91 | %{?with_python:BuildRequires: python-devel} |
410c2949 | 92 | %{?with_perl:BuildRequires: rpm-perlprov} |
770227b6 | 93 | %{?with_python:BuildRequires: rpm-pythonprov} |
03485284 | 94 | BuildRequires: rpmbuild(macros) >= 1.519 |
c6d42285 | 95 | %{?with_ruby:BuildRequires: ruby-devel} |
1268dfc4 JB |
96 | # swig-csharp,swig-java,swig-lua,swig-ocaml in main swig |
97 | # swig-io ??? | |
98 | BuildRequires: swig | |
c6d42285 | 99 | %{?with_guile:BuildRequires: swig-guile} |
100 | %{?with_perl:BuildRequires: swig-perl} | |
101 | %{?with_php:BuildRequires: swig-php >= 1.3.40} | |
1268dfc4 | 102 | BuildRequires: swig-python |
c6d42285 | 103 | %{?with_ruby:BuildRequires: swig-ruby} |
104 | %if %{with tcl} | |
1268dfc4 | 105 | BuildRequires: swig-tcl |
b805f849 | 106 | BuildRequires: tcl-devel >= 8.3.0 |
3d1d885d | 107 | BuildRequires: tk-devel >= 8.3.0 |
c6d42285 | 108 | %endif |
bbf59095 | 109 | BuildRequires: xorg-lib-libX11-devel |
1268dfc4 JB |
110 | BuildRequires: xorg-lib-libXaw-devel |
111 | BuildRequires: xorg-lib-libXpm-devel | |
b805f849 | 112 | BuildRequires: zlib-devel |
07fea929 | 113 | Requires(post,postun): /sbin/ldconfig |
d115400b | 114 | Requires: fonts-Type1-urw |
995da5c4 | 115 | Requires: gd >= 2.0.33-5 |
b805f849 AM |
116 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
117 | ||
b805f849 AM |
118 | %description |
119 | A collection of tools and tcl packages for the manipulation and layout | |
120 | of graphs (as in nodes and edges, not as in barcharts). | |
121 | ||
e5b048d9 JR |
122 | %description -l pl.UTF-8 |
123 | Kolekcja narzędzi oraz pakietów tcl służących do manipulacji i | |
124 | rozmieszczania grafów. | |
b805f849 | 125 | |
a2acb194 JB |
126 | %package devel |
127 | Summary: Header files for graphviz libraries | |
af41817c | 128 | Summary(pl.UTF-8): Pliki nagłówkowe do bibliotek graphviz |
a2acb194 JB |
129 | Group: X11/Development/Libraries |
130 | Requires: %{name} = %{version}-%{release} | |
185131e0 | 131 | Requires: gd-devel >= 2.0.34 |
7c737c2a | 132 | Requires: libltdl-devel |
a2acb194 JB |
133 | |
134 | %description devel | |
135 | This package contains the header files for graphviz libraries. | |
136 | ||
e5b048d9 JR |
137 | %description devel -l pl.UTF-8 |
138 | Ten pakiet zawiera pliki nagłówkowe do bibliotek graphviz. | |
a2acb194 | 139 | |
72fb0113 ER |
140 | %package doc-html |
141 | Summary: HTML documentation for graphviz | |
142 | Group: Documentation | |
143 | ||
144 | %description doc-html | |
145 | HTML documentation for graphviz. | |
146 | ||
147 | %package doc-pdf | |
148 | Summary: PDF documentation for graphviz | |
149 | Group: Documentation | |
150 | ||
151 | %description doc-pdf | |
152 | PDF documentation for graphviz. | |
153 | ||
ddb1b260 JB |
154 | %package graphs |
155 | Summary: Demo graphs for graphviz | |
af41817c | 156 | Summary(pl.UTF-8): Przykładowe grafy dla graphviza |
ddb1b260 | 157 | Group: X11/Applications/Graphics |
b8ced4d6 | 158 | Requires: %{name} = %{version}-%{release} |
ddb1b260 JB |
159 | |
160 | %description graphs | |
161 | This package provides some example graphs. | |
162 | ||
e5b048d9 JR |
163 | %description graphs -l pl.UTF-8 |
164 | Ten pakiet zawiera trochę przykładowych grafów. | |
ddb1b260 | 165 | |
410c2949 | 166 | %package -n guile-%{name} |
f2aec12b | 167 | Summary: Guile binding for graphviz |
af41817c | 168 | Summary(pl.UTF-8): Wiązania Guile dla graphviza |
f2aec12b JB |
169 | Group: Libraries |
170 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 171 | Obsoletes: graphviz-guile |
f2aec12b | 172 | |
410c2949 | 173 | %description -n guile-%{name} |
f2aec12b JB |
174 | Guile binding for graphviz. |
175 | ||
410c2949 | 176 | %description -n guile-%{name} -l pl.UTF-8 |
e5b048d9 | 177 | Wiązania Guile dla graphviza. |
f2aec12b | 178 | |
410c2949 | 179 | %package -n java-%{name} |
a2acb194 | 180 | Summary: Java binding for graphviz |
af41817c | 181 | Summary(pl.UTF-8): Wiązania Javy dla graphviza |
a2acb194 JB |
182 | Group: Libraries |
183 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 184 | Obsoletes: graphviz-java |
a2acb194 | 185 | |
410c2949 | 186 | %description -n java-%{name} |
a2acb194 JB |
187 | Java binding for graphviz. |
188 | ||
410c2949 | 189 | %description -n java-%{name} -l pl.UTF-8 |
e5b048d9 | 190 | Wiązania Javy dla graphviza. |
a2acb194 | 191 | |
410c2949 | 192 | %package -n lua-%{name} |
f2aec12b | 193 | Summary: LUA binding for graphviz |
af41817c | 194 | Summary(pl.UTF-8): Wiązania LUA dla graphviza |
f2aec12b JB |
195 | Group: Libraries |
196 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 197 | Obsoletes: graphviz-lua |
f2aec12b | 198 | |
410c2949 | 199 | %description -n lua-%{name} |
f2aec12b JB |
200 | LUA binding for graphviz. |
201 | ||
410c2949 | 202 | %description -n lua-%{name} -l pl.UTF-8 |
e5b048d9 | 203 | Wiązania LUA dla graphviza. |
f2aec12b | 204 | |
410c2949 | 205 | %package -n ocaml-%{name} |
f2aec12b | 206 | Summary: OCaml binding for graphviz |
af41817c | 207 | Summary(pl.UTF-8): Wiązania OCamla dla graphviza |
f2aec12b JB |
208 | Group: Libraries |
209 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 210 | Obsoletes: graphviz-ocaml |
f2aec12b | 211 | |
410c2949 | 212 | %description -n ocaml-%{name} |
f2aec12b JB |
213 | OCaml binding for graphviz. |
214 | ||
410c2949 | 215 | %description -n ocaml-%{name} -l pl.UTF-8 |
e5b048d9 | 216 | Wiązania OCamla dla graphviza. |
f2aec12b | 217 | |
410c2949 | 218 | %package -n perl-%{name} |
a2acb194 | 219 | Summary: Perl binding for graphviz |
af41817c | 220 | Summary(pl.UTF-8): Wiązania Perla dla graphviza |
a2acb194 JB |
221 | Group: Libraries |
222 | Requires: %{name} = %{version}-%{release} | |
223 | ||
410c2949 | 224 | %description -n perl-%{name} |
a2acb194 JB |
225 | Perl binding for graphviz. |
226 | ||
410c2949 | 227 | %description -n perl-%{name} -l pl.UTF-8 |
e5b048d9 | 228 | Wiązania Perla dla graphviza. |
a2acb194 | 229 | |
03485284 | 230 | %package -n php-%{name} |
a2acb194 | 231 | Summary: PHP binding for graphviz |
af41817c | 232 | Summary(pl.UTF-8): Wiązania PHP dla graphviza |
a2acb194 JB |
233 | Group: Libraries |
234 | Requires: %{name} = %{version}-%{release} | |
03485284 | 235 | Obsoletes: graphviz-php |
e062f6b1 | 236 | %{?requires_php_extension} |
a2acb194 | 237 | |
03485284 | 238 | %description -n php-%{name} |
a2acb194 JB |
239 | PHP binding for graphviz. |
240 | ||
03485284 | 241 | %description -n php-%{name} -l pl.UTF-8 |
e5b048d9 | 242 | Wiązania PHP dla graphviza. |
a2acb194 | 243 | |
410c2949 | 244 | %package -n python-%{name} |
a2acb194 | 245 | Summary: Python binding for graphviz |
af41817c | 246 | Summary(pl.UTF-8): Wiązania Pythona dla graphviza |
a2acb194 JB |
247 | Group: Libraries |
248 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 249 | Obsoletes: graphviz-python |
a2acb194 | 250 | |
410c2949 | 251 | %description -n python-%{name} |
a2acb194 JB |
252 | Python binding for graphviz. |
253 | ||
410c2949 | 254 | %description -n python-%{name} -l pl.UTF-8 |
e5b048d9 | 255 | Wiązania Pythona dla graphviza. |
a2acb194 | 256 | |
410c2949 | 257 | %package -n ruby-%{name} |
a2acb194 | 258 | Summary: Ruby binding for graphviz |
af41817c | 259 | Summary(pl.UTF-8): Wiązania Ruby'ego dla graphviza |
a2acb194 JB |
260 | Group: Libraries |
261 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 262 | Obsoletes: graphviz-ruby |
a2acb194 | 263 | |
410c2949 | 264 | %description -n ruby-%{name} |
a2acb194 JB |
265 | Ruby binding for graphviz. |
266 | ||
410c2949 | 267 | %description -n ruby-%{name} -l pl.UTF-8 |
e5b048d9 | 268 | Wiązania Ruby'ego dla graphviza. |
a2acb194 | 269 | |
410c2949 | 270 | %package -n sharp-%{name} |
f2aec12b | 271 | Summary: C# binding for graphviz |
af41817c | 272 | Summary(pl.UTF-8): Wiązania C# dla graphviza |
f2aec12b JB |
273 | Group: Libraries |
274 | Requires: %{name} = %{version}-%{release} | |
770227b6 | 275 | Obsoletes: graphviz-sharp |
f2aec12b | 276 | |
410c2949 | 277 | %description -n sharp-%{name} |
f2aec12b JB |
278 | C# binding for graphviz. |
279 | ||
410c2949 | 280 | %description -n sharp-%{name} -l pl.UTF-8 |
e5b048d9 | 281 | Wiązania C# dla graphviza. |
f2aec12b | 282 | |
410c2949 | 283 | %package -n tcl-%{name} |
ddb1b260 | 284 | Summary: Tcl extension tools for graphviz |
af41817c | 285 | Summary(pl.UTF-8): Rozszerzenia Tcl dla graphviza |
ddb1b260 | 286 | Group: X11/Applications/Graphics |
b8ced4d6 | 287 | Requires: %{name} = %{version}-%{release} |
770227b6 | 288 | Obsoletes: graphviz-tcl |
ddb1b260 | 289 | |
410c2949 | 290 | %description -n tcl-%{name} |
a2acb194 | 291 | This package contains the various Tcl packages (extensions) using |
ddb1b260 JB |
292 | graphviz. |
293 | ||
410c2949 | 294 | %description -n tcl-%{name} -l pl.UTF-8 |
e5b048d9 | 295 | Ten pakiet zawiera różne pakiety (rozszerzenia) Tcl używające |
ddb1b260 JB |
296 | graphviza. |
297 | ||
866222d3 ER |
298 | %package -n R-%{name} |
299 | Summary: graphviz bindings for R language | |
300 | Group: X11/Applications/Graphics | |
301 | Requires: %{name} = %{version}-%{release} | |
302 | ||
303 | %description -n R-%{name} | |
304 | graphviz bindings for R language. | |
305 | ||
b805f849 AM |
306 | %prep |
307 | %setup -q | |
ddb1b260 | 308 | %patch0 -p1 |
d9d5610d | 309 | %patch1 -p1 |
b8a8a38c | 310 | %patch3 -p1 |
52cfc3f4 | 311 | %patch5 -p1 |
c599137b | 312 | %patch6 -p1 |
c6d42285 | 313 | #%patch7 -p1 |
314 | #%patch8 -p1 | |
1268dfc4 JB |
315 | |
316 | # not used for anything | |
317 | sed -i -e 's/libgnomeui-2.0/libgnomeui-disabled/' configure.ac | |
b805f849 | 318 | |
88c0ea21 SS |
319 | %{__sed} '1s@/usr/bin/lua$@/usr/bin/lua51@' -i tclpkg/gv/demo/modgraph.lua |
320 | ||
b805f849 | 321 | %build |
9ee036cb | 322 | rm -f m4/*.m4 |
a79fb9be AM |
323 | touch config/config.rpath |
324 | %{__libtoolize} --ltdl | |
185131e0 | 325 | %{__aclocal} -I m4 |
f1da6fb9 | 326 | %{__autoconf} |
404ccc68 | 327 | %{__autoheader} |
f1da6fb9 | 328 | %{__automake} |
a8c57886 | 329 | |
c4b373de | 330 | CPPFLAGS="%{rpmcppflags}" |
331 | CPPFLAGS="$CPPFLAGS -I%{_includedir}/ruby-1.9 -I%{_includedir}/ruby-1.9/%{_target}" | |
332 | ||
a8c57886 AM |
333 | %if %{with java} |
334 | JAVA_HOME=%{java_home} | |
335 | export JAVA_HOME | |
c4b373de | 336 | CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/linux" |
a8c57886 AM |
337 | %endif |
338 | ||
c4b373de | 339 | export CPPFLAGS |
340 | ||
753cb1b6 | 341 | %configure \ |
185131e0 | 342 | lua_suffix=51 \ |
f4007000 | 343 | --disable-ltdl-install \ |
f2aec12b | 344 | %{!?with_java:--disable-java} \ |
aafdcba2 | 345 | %{!?with_ocaml:--disable-ocaml} \ |
f4007000 | 346 | %{!?with_dotnet:--disable-sharp} \ |
c6d42285 | 347 | %{!?with_perl:--disable-perl} \ |
348 | %{!?with_php:--disable-php} \ | |
349 | %{!?with_ruby:--disable-ruby} \ | |
350 | %{!?with_tcl:--disable-tcl} \ | |
351 | %{!?with_ming:--disable-ming} \ | |
237d1e48 | 352 | %{!?with_devil:--disable-devil} \ |
c6d42285 | 353 | %{!?with_lua:--disable-lua} \ |
866222d3 | 354 | %{!?with_r:--disable-r} \ |
753cb1b6 | 355 | --disable-static |
ddb1b260 | 356 | |
b805f849 AM |
357 | %{__make} |
358 | ||
359 | %install | |
360 | rm -rf $RPM_BUILD_ROOT | |
361 | ||
362 | %{__make} install \ | |
03485284 | 363 | PHP_INSTALL_DIR=%{php_extensiondir} \ |
b805f849 AM |
364 | DESTDIR=$RPM_BUILD_ROOT |
365 | ||
03485284 ER |
366 | %if %{with php} |
367 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d | |
368 | cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{name}.ini | |
369 | ; Enable gv.so extension module | |
370 | extension=gv.so | |
371 | EOF | |
372 | ||
373 | # drop the symlinks and install to php dirs directly | |
374 | install -d $RPM_BUILD_ROOT%{_examplesdir}/php-%{name}-%{version} | |
375 | mv -f $RPM_BUILD_ROOT{%{_libdir}/%{name}/php,%{php_data_dir}}/gv.php | |
376 | mv -f $RPM_BUILD_ROOT{%{_libdir}/%{name}/php/libgv_php.so,%{php_extensiondir}/gv.so} | |
377 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/php/gv.so | |
72fb0113 | 378 | mv -f $RPM_BUILD_ROOT{%{_datadir}/%{name}/demo,%{_examplesdir}/php-%{name}-%{version}}/modgraph.php |
03485284 ER |
379 | %endif |
380 | ||
ffc497de ER |
381 | # "man3/gv.3r.gz" and "man3/gv.3ruby.gz" are both manual for "gv" in "section 3" of man pages |
382 | # make manual pages unique. | |
383 | for a in $RPM_BUILD_ROOT%{_mandir}/man3/gv.*; do | |
384 | m=${a##*/} | |
385 | l=${m#gv.3} | |
386 | mv $a ${a%/*}/gv_$l.3 | |
387 | done | |
388 | ||
7c737c2a KK |
389 | # created by %{_bindir}/dot -c |
390 | touch $RPM_BUILD_ROOT%{_libdir}/graphviz/config | |
391 | ||
185131e0 JB |
392 | rm -f $RPM_BUILD_ROOT%{_libdir}/graphviz/*/lib*.la |
393 | rm -f $RPM_BUILD_ROOT%{_libdir}/graphviz/libgvplugin_*.la | |
a2acb194 | 394 | |
237d1e48 | 395 | #patch -p1 < %{PATCH2} || exit 1 |
da038acf | 396 | |
1cf9b16b ER |
397 | rm -rf doc-html doc-pdf |
398 | mv $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/html doc-html | |
399 | mv $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/pdf doc-pdf | |
400 | ||
b805f849 AM |
401 | %clean |
402 | rm -rf $RPM_BUILD_ROOT | |
403 | ||
07b95f14 AM |
404 | %post |
405 | /sbin/ldconfig | |
07fea929 | 406 | umask 022 |
a2acb194 | 407 | [ ! -x %{_bindir}/dot ] || %{_bindir}/dot -c > /dev/null 2>&1 |
07b95f14 | 408 | |
7c737c2a | 409 | %postun -p /sbin/ldconfig |
b805f849 | 410 | |
03485284 ER |
411 | %post -n php-%{name} |
412 | %php_webserver_restart | |
413 | ||
414 | %postun -n php-%{name} | |
415 | if [ "$1" = 0 ]; then | |
416 | %php_webserver_restart | |
417 | fi | |
418 | ||
b805f849 AM |
419 | %files |
420 | %defattr(644,root,root,755) | |
237d1e48 | 421 | #%doc AUTHORS COPYING ChangeLog NEWS doc/*.pdf |
b805f849 | 422 | %attr(755,root,root) %{_bindir}/* |
237d1e48 | 423 | #%attr(755,root,root) %{_libdir}/libagraph.so.*.*.* |
424 | #%attr(755,root,root) %ghost %{_libdir}/libagraph.so.4 | |
1268dfc4 | 425 | %attr(755,root,root) %{_libdir}/libcdt.so.*.*.* |
f4007000 JB |
426 | %attr(755,root,root) %ghost %{_libdir}/libcdt.so.4 |
427 | %attr(755,root,root) %{_libdir}/libcgraph.so.*.*.* | |
237d1e48 | 428 | %attr(755,root,root) %ghost %{_libdir}/libcgraph.so.5 |
1268dfc4 | 429 | %attr(755,root,root) %{_libdir}/libgraph.so.*.*.* |
f4007000 | 430 | %attr(755,root,root) %ghost %{_libdir}/libgraph.so.4 |
1268dfc4 | 431 | %attr(755,root,root) %{_libdir}/libgvc.so.*.*.* |
237d1e48 | 432 | %attr(755,root,root) %ghost %{_libdir}/libgvc.so.5 |
433 | %attr(755,root,root) %{_libdir}/libgvpr.so.*.*.* | |
434 | %attr(755,root,root) %ghost %{_libdir}/libgvpr.so.1 | |
1268dfc4 | 435 | %attr(755,root,root) %{_libdir}/libpathplan.so.*.*.* |
f4007000 | 436 | %attr(755,root,root) %ghost %{_libdir}/libpathplan.so.4 |
237d1e48 | 437 | %attr(755,root,root) %{_libdir}/libxdot.so.*.*.* |
438 | %attr(755,root,root) %ghost %{_libdir}/libxdot.so.4 | |
ddb1b260 | 439 | %dir %{_libdir}/graphviz |
f2aec12b | 440 | %ghost %{_libdir}/graphviz/config |
1268dfc4 | 441 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_core.so* |
237d1e48 | 442 | %if %{with devil} |
2b82e5a0 | 443 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_devil.so* |
237d1e48 | 444 | %endif |
a2acb194 | 445 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_dot_layout.so* |
1268dfc4 | 446 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_gd.so* |
f4007000 | 447 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_gdk_pixbuf.so* |
1268dfc4 | 448 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_gtk.so* |
a2acb194 | 449 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_neato_layout.so* |
1268dfc4 | 450 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_pango.so* |
f4007000 | 451 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_rsvg.so* |
1268dfc4 | 452 | %attr(755,root,root) %{_libdir}/graphviz/libgvplugin_xlib.so* |
a2acb194 | 453 | # what about the rest of *.la? |
ddb1b260 | 454 | %dir %{_datadir}/graphviz |
f4007000 | 455 | %dir %{_datadir}/graphviz/demo |
ddb1b260 | 456 | %{_datadir}/graphviz/lefty |
b805f849 | 457 | %{_mandir}/man1/* |
185131e0 | 458 | %{_mandir}/man7/graphviz.7* |
ddb1b260 | 459 | |
a2acb194 JB |
460 | %files devel |
461 | %defattr(644,root,root,755) | |
237d1e48 | 462 | #%attr(755,root,root) %{_libdir}/libagraph.so |
1268dfc4 | 463 | %attr(755,root,root) %{_libdir}/libcdt.so |
f4007000 | 464 | %attr(755,root,root) %{_libdir}/libcgraph.so |
1268dfc4 JB |
465 | %attr(755,root,root) %{_libdir}/libgraph.so |
466 | %attr(755,root,root) %{_libdir}/libgvc.so | |
237d1e48 | 467 | %attr(755,root,root) %{_libdir}/libgvpr.so |
1268dfc4 | 468 | %attr(755,root,root) %{_libdir}/libpathplan.so |
237d1e48 | 469 | %attr(755,root,root) %{_libdir}/libxdot.so |
470 | #%{_libdir}/libagraph.la | |
1268dfc4 | 471 | %{_libdir}/libcdt.la |
f4007000 | 472 | %{_libdir}/libcgraph.la |
1268dfc4 JB |
473 | %{_libdir}/libgraph.la |
474 | %{_libdir}/libgvc.la | |
237d1e48 | 475 | %{_libdir}/libgvpr.la |
1268dfc4 | 476 | %{_libdir}/libpathplan.la |
237d1e48 | 477 | %{_libdir}/libxdot.la |
478 | #%{_pkgconfigdir}/libagraph.pc | |
1268dfc4 | 479 | %{_pkgconfigdir}/libcdt.pc |
f4007000 | 480 | %{_pkgconfigdir}/libcgraph.pc |
1268dfc4 JB |
481 | %{_pkgconfigdir}/libgraph.pc |
482 | %{_pkgconfigdir}/libgvc.pc | |
237d1e48 | 483 | %{_pkgconfigdir}/libgvpr.pc |
1268dfc4 | 484 | %{_pkgconfigdir}/libpathplan.pc |
237d1e48 | 485 | %{_pkgconfigdir}/libxdot.pc |
a2acb194 | 486 | %{_includedir}/graphviz |
03485284 ER |
487 | %{_mandir}/man3/cdt.3* |
488 | %{_mandir}/man3/cgraph.3* | |
489 | %{_mandir}/man3/graph.3* | |
490 | %{_mandir}/man3/gvc.3* | |
491 | %{_mandir}/man3/xdot.3* | |
a2acb194 | 492 | |
72fb0113 ER |
493 | %files doc-html |
494 | %defattr(644,root,root,755) | |
1cf9b16b | 495 | %doc doc-html/* |
72fb0113 ER |
496 | |
497 | %files doc-pdf | |
498 | %defattr(644,root,root,755) | |
1cf9b16b | 499 | %doc doc-pdf/* |
72fb0113 | 500 | |
ddb1b260 JB |
501 | %files graphs |
502 | %defattr(644,root,root,755) | |
503 | %{_datadir}/graphviz/graphs | |
504 | ||
1268dfc4 | 505 | %if 0 |
410c2949 | 506 | %files io-%{name} |
1268dfc4 JB |
507 | %defattr(644,root,root,755) |
508 | %dir %{_libdir}/graphviz/io | |
509 | %attr(755,root,root) %{_libdir}/graphviz/io/libgv_io.so* | |
185131e0 | 510 | %{_mandir}/mann/gv_io.n* |
1268dfc4 JB |
511 | %endif |
512 | ||
c6d42285 | 513 | %if %{with guile} |
410c2949 | 514 | %files -n guile-%{name} |
f2aec12b JB |
515 | %defattr(644,root,root,755) |
516 | %dir %{_libdir}/graphviz/guile | |
f4007000 | 517 | %attr(755,root,root) %{_libdir}/graphviz/guile/libgv_guile.so |
ffc497de | 518 | %{_mandir}/man3/gv_guile.* |
c6d42285 | 519 | %endif |
f2aec12b | 520 | |
a2acb194 | 521 | %if %{with java} |
410c2949 | 522 | %files -n java-%{name} |
a2acb194 | 523 | %defattr(644,root,root,755) |
f2aec12b | 524 | %dir %{_libdir}/graphviz/java |
f4007000 | 525 | %attr(755,root,root) %{_libdir}/graphviz/java/libgv_java.so |
f2aec12b | 526 | %{_libdir}/graphviz/java/*.java |
ffc497de | 527 | %{_mandir}/man3/gv_java.* |
a2acb194 JB |
528 | %endif |
529 | ||
c6d42285 | 530 | %if %{with lua} |
410c2949 | 531 | %files -n lua-%{name} |
f2aec12b JB |
532 | %defattr(644,root,root,755) |
533 | %dir %{_libdir}/graphviz/lua | |
f4007000 | 534 | %attr(755,root,root) %{_libdir}/graphviz/lua/libgv_lua.so |
f2aec12b | 535 | %attr(755,root,root) %{_libdir}/graphviz/lua/gv.so |
f4007000 | 536 | %attr(755,root,root) %{_datadir}/graphviz/demo/modgraph.lua |
8e754c12 | 537 | %attr(755,root,root) %{_libdir}/lua/gv.so |
ffc497de | 538 | %{_mandir}/man3/gv_lua.* |
c6d42285 | 539 | %endif |
f2aec12b | 540 | |
aafdcba2 | 541 | %if %{with ocaml} |
410c2949 | 542 | %files -n ocaml-%{name} |
f2aec12b | 543 | %defattr(644,root,root,755) |
29487644 | 544 | %dir %{_libdir}/graphviz/ocaml |
f4007000 JB |
545 | %attr(755,root,root) %{_libdir}/graphviz/ocaml/libgv_ocaml.so |
546 | %{_libdir}/graphviz/ocaml/META.gv | |
547 | %{_libdir}/graphviz/ocaml/gv.a | |
548 | %{_libdir}/graphviz/ocaml/gv.cm* | |
f2aec12b | 549 | %{_libdir}/graphviz/ocaml/gv.ml* |
ffc497de | 550 | %{_mandir}/man3/gv_ocaml.* |
aafdcba2 | 551 | %endif |
f2aec12b | 552 | |
c6d42285 | 553 | %if %{with perl} |
410c2949 | 554 | %files -n perl-%{name} |
a2acb194 | 555 | %defattr(644,root,root,755) |
f2aec12b | 556 | %dir %{_libdir}/graphviz/perl |
f4007000 | 557 | %attr(755,root,root) %{_libdir}/graphviz/perl/libgv_perl.so |
f2aec12b JB |
558 | %attr(755,root,root) %{_libdir}/graphviz/perl/gv.so |
559 | %{_libdir}/graphviz/perl/gv.pm | |
f4007000 JB |
560 | %attr(755,root,root) %{_datadir}/graphviz/demo/modgraph.pl |
561 | %attr(755,root,root) %{perl_vendorarch}/gv.so | |
562 | %{perl_vendorarch}/gv.pm | |
ffc497de | 563 | %{_mandir}/man3/gv_perl.* |
c6d42285 | 564 | %endif |
a2acb194 | 565 | |
c6d42285 | 566 | %if %{with php} |
03485284 | 567 | %files -n php-%{name} |
a2acb194 | 568 | %defattr(644,root,root,755) |
03485284 ER |
569 | %attr(755,root,root) %{php_extensiondir}/gv.so |
570 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{name}.ini | |
571 | %{php_data_dir}/gv.php | |
ffc497de | 572 | %{_mandir}/man3/gv_php.* |
03485284 | 573 | %{_examplesdir}/php-%{name}-%{version} |
c6d42285 | 574 | %endif |
a2acb194 | 575 | |
410c2949 ER |
576 | %if %{with python} |
577 | %files -n python-%{name} | |
a2acb194 | 578 | %defattr(644,root,root,755) |
f2aec12b | 579 | %dir %{_libdir}/graphviz/python |
f4007000 | 580 | %attr(755,root,root) %{_libdir}/graphviz/python/libgv_python.so |
f2aec12b JB |
581 | %attr(755,root,root) %{_libdir}/graphviz/python/_gv.so |
582 | %{_libdir}/graphviz/python/gv.py | |
f4007000 JB |
583 | %attr(755,root,root) %{_datadir}/graphviz/demo/modgraph.py |
584 | %attr(755,root,root) %{py_sitedir}/_gv.so | |
585 | %{py_sitedir}/gv.py | |
ffc497de | 586 | %{_mandir}/man3/gv_python.* |
410c2949 | 587 | %endif |
a2acb194 | 588 | |
c6d42285 | 589 | %if %{with ruby} |
410c2949 | 590 | %files -n ruby-%{name} |
a2acb194 | 591 | %defattr(644,root,root,755) |
f2aec12b | 592 | %dir %{_libdir}/graphviz/ruby |
f4007000 | 593 | %attr(755,root,root) %{_libdir}/graphviz/ruby/libgv_ruby.so |
f2aec12b | 594 | %attr(755,root,root) %{_libdir}/graphviz/ruby/gv.so |
f4007000 JB |
595 | %attr(755,root,root) %{_datadir}/graphviz/demo/modgraph.rb |
596 | %{ruby_sitearchdir}/gv.so | |
ffc497de | 597 | %{_mandir}/man3/gv_ruby.* |
c6d42285 | 598 | %endif |
f2aec12b JB |
599 | |
600 | %if %{with dotnet} | |
410c2949 | 601 | %files -n sharp-%{name} |
f2aec12b JB |
602 | %defattr(644,root,root,755) |
603 | %dir %{_libdir}/graphviz/sharp | |
f4007000 | 604 | %attr(755,root,root) %{_libdir}/graphviz/sharp/libgv_sharp.so |
f2aec12b | 605 | %{_libdir}/graphviz/sharp/*.cs |
ffc497de | 606 | %{_mandir}/man3/gv_sharp.* |
410c2949 | 607 | %endif |
a2acb194 | 608 | |
c6d42285 | 609 | %if %{with tcl} |
410c2949 | 610 | %files -n tcl-%{name} |
ddb1b260 | 611 | %defattr(644,root,root,755) |
f2aec12b JB |
612 | %dir %{_libdir}/graphviz/tcl |
613 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libgdtclft.so* | |
f4007000 | 614 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libgv_tcl.so |
f2aec12b | 615 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libtcldot.so* |
1268dfc4 | 616 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libtcldot_builtin.so* |
f2aec12b JB |
617 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libtclplan.so* |
618 | %attr(755,root,root) %{_libdir}/graphviz/tcl/libtkspline.so* | |
f4007000 | 619 | %{_libdir}/graphviz/tcl/pkgIndex.tcl |
bde014a4 | 620 | %{_libdir}/tcl*/* |
ffc497de | 621 | %{_mandir}/man3/gv_tcl.* |
03485284 | 622 | %{_mandir}/man3/gdtclft.3tcl* |
ffc497de | 623 | %{_mandir}/man3/pathplan.3* |
03485284 ER |
624 | %{_mandir}/man3/tcldot.3tcl* |
625 | %{_mandir}/man3/tkspline.3tk* | |
ddb1b260 | 626 | %{_datadir}/graphviz/demo/pathplan_data |
f4007000 JB |
627 | %{_datadir}/graphviz/demo/*.README |
628 | %{_datadir}/graphviz/demo/*.html | |
629 | %attr(755,root,root) %{_datadir}/graphviz/demo/doted.tcl | |
630 | %attr(755,root,root) %{_datadir}/graphviz/demo/entities.tcl | |
631 | %attr(755,root,root) %{_datadir}/graphviz/demo/gcat.tcl | |
632 | %attr(755,root,root) %{_datadir}/graphviz/demo/modgraph.tcl | |
633 | %attr(755,root,root) %{_datadir}/graphviz/demo/pathplan.tcl | |
634 | %attr(755,root,root) %{_datadir}/graphviz/demo/spline.tcl | |
c6d42285 | 635 | %endif |
866222d3 ER |
636 | |
637 | %if %{with r} | |
638 | %files -n R-%{name} | |
639 | %defattr(644,root,root,755) | |
770227b6 | 640 | %dir %{_libdir}/%{name}/R |
866222d3 ER |
641 | %attr(755,root,root) %{_libdir}/%{name}/R/gv.so |
642 | %attr(755,root,root) %{_libdir}/%{name}/R/libgv_R.so | |
ffc497de | 643 | %{_mandir}/man3/gv_r.* |
866222d3 | 644 | %endif |