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