3 # _with_dynagraph - with dynagraph program (they say it requires gcc 3.1;
4 # it builds with 2.95.4, but doesn't seem to work - fstream problems)
5 # -- doesn't build now anyway in 1.9 (missing file?)
6 # _without_system_gd - use included libgd instead of system-wide one
7 # (needed if your libgd doesn't support GIF format)
9 Summary: Graph Visualization Tools
10 Summary(pl): Narzêdzie do wizualizacji w postaci grafów
14 License: custom (AT&T)
15 Group: X11/Applications/Graphics
16 Source0: http://www.graphviz.org/pub/graphviz/%{name}-%{version}.tar.gz
17 # Source0-md5: 5f8d1e1f15594f4869fc9c68f32e7dbb
18 Patch0: %{name}-lt14d.patch
19 Patch1: %{name}-system-gd.patch
20 Patch2: %{name}-fontpath.patch
21 URL: http://www.graphviz.org/
22 BuildRequires: XFree86-devel
23 BuildRequires: autoconf
24 BuildRequires: automake
27 BuildRequires: freetype-devel >= 2.0.0
29 %{!?_without_system_gd:BuildRequires: gd-devel(gif) >= 2.0.9}
30 BuildRequires: libjpeg-devel
31 BuildRequires: libpng-devel
32 BuildRequires: libstdc++-devel
33 BuildRequires: libtool
34 BuildRequires: tcl-devel >= 8.3.0
35 BuildRequires: zlib-devel
36 %{!?_without_system_gd:Requires: gd(gif) >= 2.0.9}
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 A collection of tools and tcl packages for the manipulation and layout
41 of graphs (as in nodes and edges, not as in barcharts).
44 Kolekcja narzêdzi oraz pakietów tcl s³u¿±cych do manipulacji i
45 rozmieszczania grafów.
48 Summary: Demo graphs for graphviz
49 Summary(pl): Przyk³adowe grafy dla graphviza
50 Group: X11/Applications/Graphics
51 Requires: %{name} = %{version}
54 This package provides some example graphs.
56 %description graphs -l pl
57 Ten pakiet zawiera trochê przyk³adowych grafów.
60 Summary: Tcl extension tools for graphviz
61 Summary(pl): Rozszerzenia Tcl dla graphviza
62 Group: X11/Applications/Graphics
63 Requires: %{name} = %{version}
66 This package contains the various tcl packages (extensions) using
69 %description tcl -l pl
70 Ten pakiet zawiera ró¿ne pakiety (rozszerzenia) tcl u¿ywaj±ce
74 Summary: Header files for graphviz libraries
75 Summary(pl): Pliki nag³ówkowe do bibliotek graphviz
76 Group: X11/Development/Libraries
77 Requires: %{name} = %{version}
80 This package contains the header files for graphviz libraries.
82 %description devel -l pl
83 Ten pakiet zawiera pliki nag³ówkowe do bibliotek graphviz.
87 if grep -q '^VERSION=1\.\(4[de]\|5\)$' /usr/bin/libtool ; then
90 %{!?_without_system_gd:%patch1 -p1}
100 %{?_with_dynagraph:--with-dynagraph}
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 # tcl doesn't find pkgIndex.tcl outside /usr/lib...
111 install -d $RPM_BUILD_ROOT/usr/lib/graphviz
112 sed -e "s@\$dir @%{_libdir}/graphviz/@" $RPM_BUILD_ROOT%{_libdir}/graphviz/pkgIndex.tcl \
113 > $RPM_BUILD_ROOT/usr/lib/graphviz/pkgIndex.tcl
116 rm -rf $RPM_BUILD_ROOT
118 %post -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
122 %defattr(644,root,root,755)
123 %doc AUTHORS COPYING ChangeLog FAQ.txt NEWS doc/*.pdf
124 %attr(755,root,root) %{_bindir}/*
125 %dir %{_libdir}/graphviz
126 # *.so links are needed here for tcl
127 %attr(755,root,root) %{_libdir}/graphviz/lib*.so*
128 %dir %{_datadir}/graphviz
129 %{_datadir}/graphviz/lefty
133 %defattr(644,root,root,755)
134 %{_datadir}/graphviz/graphs
137 %defattr(644,root,root,755)
138 %dir /usr/lib/graphviz
139 /usr/lib/graphviz/pkgIndex.tcl
141 %dir %{_datadir}/graphviz/demo
142 %{_datadir}/graphviz/demo/pathplan_data
143 %{_datadir}/graphviz/demo/*.*
144 %attr(755,root,root) %{_datadir}/graphviz/demo/dge
145 %attr(755,root,root) %{_datadir}/graphviz/demo/doted
146 %attr(755,root,root) %{_datadir}/graphviz/demo/entities
147 %attr(755,root,root) %{_datadir}/graphviz/demo/gcat
148 %attr(755,root,root) %{_datadir}/graphviz/demo/ihi
149 %attr(755,root,root) %{_datadir}/graphviz/demo/pathplan
150 %attr(755,root,root) %{_datadir}/graphviz/demo/spline
153 %defattr(644,root,root,755)
154 %{_libdir}/graphviz/lib*.la
155 %{_includedir}/graphviz