2007-08-23 16:40:18 +00:00
|
|
|
# $Id: graphviz.spec.in,v 1.117 2007/08/16 01:53:22 ellson Exp $ $Revision: 1.117 $
|
2006-02-22 17:28:01 +00:00
|
|
|
# graphviz.spec. Generated from graphviz.spec.in by configure.
|
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
# Note: pre gd-2.0.34 graphviz uses its own gd tree with gif support and other fixes
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
#-- Global graphviz rpm and src.rpm tags-------------------------------------
|
|
|
|
Name: graphviz
|
|
|
|
Summary: Graph Visualization Tools
|
|
|
|
Version: 2.14.1
|
2006-12-11 18:42:36 +00:00
|
|
|
|
2007-09-05 03:07:20 +00:00
|
|
|
%define truerelease 3
|
2007-08-23 16:40:18 +00:00
|
|
|
%{?distroagnostic: %define release %{truerelease}}
|
|
|
|
%{!?distroagnostic: %define release %{truerelease}%{?dist}}
|
2006-12-11 18:42:36 +00:00
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
Release: %{?release}
|
|
|
|
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
License: CPL
|
|
|
|
URL: http://www.graphviz.org/
|
|
|
|
Source0: http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.14.1.tar.gz
|
2007-09-05 03:07:20 +00:00
|
|
|
Patch0: %{name}-arith.patch
|
2006-12-11 18:42:36 +00:00
|
|
|
|
|
|
|
#-- feature and package selection -------------------------------------------
|
2007-08-23 16:40:18 +00:00
|
|
|
# depends on %dist and %fedora (or %rhl or %rhel) which are set
|
|
|
|
# in .rpmmacros on each build host
|
2006-12-11 18:42:36 +00:00
|
|
|
|
|
|
|
# Define a default set of features incase none of the conditionals apply
|
2007-08-23 16:40:18 +00:00
|
|
|
%define SHARP 0
|
|
|
|
%define GUILE 0
|
|
|
|
%define _IO 0
|
|
|
|
%define JAVA 0
|
|
|
|
%define LUA 0
|
|
|
|
%define OCAML 0
|
|
|
|
%define PERL 0
|
|
|
|
%define PHP 0
|
|
|
|
%define PYTHON 0
|
|
|
|
%define RUBY 0
|
|
|
|
%define TCL 1
|
|
|
|
%define IPSEPCOLA --without-ipsepcola
|
|
|
|
%define MYLIBGD --with-mylibgd
|
|
|
|
%define MING --without-ming
|
|
|
|
%define PANGOCAIRO --without-pangocairo
|
2006-12-11 18:42:36 +00:00
|
|
|
|
|
|
|
# SuSE uses a different mechanism to generate BuildRequires
|
|
|
|
# norootforbuild
|
|
|
|
# neededforbuild expat freetype2 freetype2-devel gcc libjpeg libpng-devel-packages tcl tcl-devel tk tk-devel x-devel-packages
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
BuildRequires: zlib-devel libpng-devel libjpeg-devel expat-devel freetype-devel >= 2
|
|
|
|
BuildRequires: /bin/ksh bison m4 flex tk tcl >= 8.3 swig
|
2006-12-11 18:42:36 +00:00
|
|
|
|
|
|
|
# This just indicates the requirement for tcl.h, tk.h, but doesn't identify
|
|
|
|
# where to get them from. In RH9 and earlier they were in the tcl, tk,
|
|
|
|
# base packages which are always BR'd anyway (above).
|
2007-08-23 16:40:18 +00:00
|
|
|
BuildRequires: /usr/include/tcl.h /usr/include/tk.h
|
2006-12-11 18:42:36 +00:00
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
#-- Red Hat Linux specific Build Requirements -------------------------------
|
2006-12-11 18:42:36 +00:00
|
|
|
%if 0%{?rhl}
|
2007-08-23 16:40:18 +00:00
|
|
|
%define TCL 1
|
|
|
|
BuildRequires: XFree86-devel
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
#-- Red Hat Enterprise Linux specific Build Requirements --------------------
|
2006-12-11 18:42:36 +00:00
|
|
|
%if 0%{?rhel}
|
2007-08-23 16:40:18 +00:00
|
|
|
%define TCL 1
|
2006-12-11 18:42:36 +00:00
|
|
|
%if "%rhel" < "4"
|
2007-08-23 16:40:18 +00:00
|
|
|
BuildRequires: XFree86-devel
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
|
|
|
%if "%rhel" >= "3"
|
|
|
|
%define IPSEPCOLA --with-ipsepcola
|
|
|
|
BuildRequires: fontconfig-devel tcl-devel tk-devel
|
|
|
|
%endif
|
2007-08-23 16:40:18 +00:00
|
|
|
%if "%rhel" == "4"
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
%endif
|
2006-12-11 18:42:36 +00:00
|
|
|
%if "%rhel" >= "4"
|
2007-08-23 16:40:18 +00:00
|
|
|
# PERL is available earlier, but a suitable SWIG isn't
|
|
|
|
%define PERL 1
|
|
|
|
%define PHP 1
|
|
|
|
%define RUBY 1
|
|
|
|
%define GUILE 1
|
|
|
|
%define PYTHON 1
|
|
|
|
BuildRequires: perl php-devel ruby ruby-devel guile-devel python-devel
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
|
|
|
%if "%rhel" >= "5"
|
2007-08-23 16:40:18 +00:00
|
|
|
%define JAVA 1
|
|
|
|
%define PANGOCAIRO --with-pangocairo
|
|
|
|
BuildRequires: libtool-ltdl libtool-ltdl-devel libXaw-devel libSM-devel libICE-devel libXpm-devel libXt-devel libXmu-devel libXext-devel libX11-devel java-devel
|
|
|
|
BuildRequires: cairo-devel >= 1.1.10 pango-devel gmp-devel gtk2-devel libgnomeui-devel
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
#-- Fedora specific Build Requirements --------------------------------------
|
2006-12-11 18:42:36 +00:00
|
|
|
%if 0%{?fedora}
|
2007-08-23 16:40:18 +00:00
|
|
|
%define PERL 1
|
|
|
|
%define TCL 1
|
2006-12-11 18:42:36 +00:00
|
|
|
BuildRequires: fontconfig-devel tcl-devel tk-devel
|
|
|
|
%if "%fedora" < "3"
|
|
|
|
BuildRequires: XFree86-devel
|
|
|
|
%endif
|
|
|
|
%if "%fedora" == "3"
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
%endif
|
|
|
|
%if "%fedora" == "4"
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
%endif
|
|
|
|
%if "%fedora" >= "3"
|
|
|
|
%define IPSEPCOLA --with-ipsepcola
|
|
|
|
%endif
|
|
|
|
%if "%fedora" >= "4"
|
2007-08-23 16:40:18 +00:00
|
|
|
%define PHP 1
|
|
|
|
%define RUBY 1
|
|
|
|
%define GUILE 1
|
|
|
|
%define PYTHON 1
|
|
|
|
BuildRequires: libtool-ltdl libtool-ltdl-devel php-devel ruby ruby-devel guile-devel python-devel
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
|
|
|
%if "%fedora" >= "5"
|
2007-08-23 16:40:18 +00:00
|
|
|
%define JAVA 1
|
|
|
|
BuildRequires: libXaw-devel libSM-devel libICE-devel libXpm-devel libXt-devel libXmu-devel libXext-devel libX11-devel java-devel
|
2007-05-05 17:44:37 +00:00
|
|
|
%ifnarch ppc64
|
2007-08-23 16:40:18 +00:00
|
|
|
%define SHARP 1
|
|
|
|
%define OCAML 1
|
2007-05-05 17:44:37 +00:00
|
|
|
BuildRequires: mono-core ocaml
|
|
|
|
%endif
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
|
|
|
%if "%fedora" >= "6"
|
2007-08-23 16:40:18 +00:00
|
|
|
%define LUA 1
|
|
|
|
%define PANGOCAIRO --with-pangocairo
|
|
|
|
BuildRequires: cairo-devel >= 1.1.10 pango-devel gmp-devel lua-devel gtk2-devel libgnomeui-devel
|
|
|
|
%endif
|
|
|
|
%if "%fedora" >= "7"
|
|
|
|
BuildRequires: gd gd-devel perl-devel
|
|
|
|
%define MYLIBGD --without-mylibgd
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
#-- main graphviz rpm ------------------------------------------------
|
|
|
|
Requires: urw-fonts
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
Requires(postun): /sbin/ldconfig
|
2005-08-29 11:33:04 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%description
|
|
|
|
A collection of tools for the manipulation and layout
|
|
|
|
of graphs (as in nodes and edges, not as in barcharts).
|
2005-01-23 16:27:43 +00:00
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
# run "dot -c" to generate plugin config in %{_libdir}/graphviz/config
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
%{_bindir}/dot -c
|
|
|
|
|
|
|
|
# if there is no dot after everything else is done, then remove config
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
rm -f %{_libdir}/graphviz/config || :
|
|
|
|
fi
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
|
|
%{_bindir}/*
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_libdir}/graphviz/*.so.*
|
2006-02-22 17:28:01 +00:00
|
|
|
%{_mandir}/man1/*.1*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/man7/*.7*
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_datadir}/graphviz
|
|
|
|
%{_datadir}/graphviz/lefty
|
|
|
|
%exclude %{_libdir}/graphviz/*/*
|
|
|
|
%exclude %{_libdir}/graphviz/libgvplugin_gd.*
|
|
|
|
|
|
|
|
#-- graphviz-gd rpm --------------------------------------------------
|
|
|
|
%package gd
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Graphviz plugin for renderers based on gd
|
|
|
|
Requires: graphviz = %{version}-%{release}
|
|
|
|
Requires(post): %{_bindir}/dot /sbin/ldconfig
|
|
|
|
Requires(postun): %{_bindir}/dot /sbin/ldconfig
|
2006-12-11 18:42:36 +00:00
|
|
|
|
|
|
|
%description gd
|
2007-08-23 16:40:18 +00:00
|
|
|
Graphviz plugin for renderers based on gd. (Unless you absolutely have
|
|
|
|
to use GIF, you are recommended to use the PNG format instead because
|
|
|
|
of the better quality anti-aliased lines provided by the cairo+pango
|
|
|
|
based renderer.)
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
# run "dot -c" to generate plugin config in %{_libdir}/graphviz/config
|
|
|
|
%post gd
|
2007-08-23 16:40:18 +00:00
|
|
|
/sbin/ldconfig
|
2007-05-05 17:44:37 +00:00
|
|
|
%{_bindir}/dot -c
|
2006-12-11 18:42:36 +00:00
|
|
|
|
|
|
|
%postun gd
|
2007-08-23 16:40:18 +00:00
|
|
|
/sbin/ldconfig
|
|
|
|
[ -x %{_bindir}/dot ] && %{_bindir}/dot -c || :
|
|
|
|
|
|
|
|
%files gd
|
|
|
|
%{_libdir}/graphviz/libgvplugin_gd.so.*
|
2006-12-11 18:42:36 +00:00
|
|
|
|
|
|
|
#-- graphviz-sharp rpm --------------------------------------------
|
|
|
|
%if %{SHARP}
|
2006-02-22 17:28:01 +00:00
|
|
|
%package sharp
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: C# extension for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} mono-core
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%description sharp
|
2006-12-11 18:42:36 +00:00
|
|
|
C# extension for graphviz.
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%files sharp
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/sharp
|
|
|
|
%{_libdir}/graphviz/sharp/*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/mann/gv_sharp.n*
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-guile rpm --------------------------------------------
|
|
|
|
%if %{GUILE}
|
2006-02-22 17:28:01 +00:00
|
|
|
%package guile
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Guile extension for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} guile
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%description guile
|
2006-12-11 18:42:36 +00:00
|
|
|
Guile extension for graphviz.
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%files guile
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/guile
|
|
|
|
%{_libdir}/graphviz/guile/*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/mann/gv_guile.n*
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-io rpm -----------------------------------------------
|
2006-02-22 17:28:01 +00:00
|
|
|
%if %{_IO}
|
|
|
|
%package io
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Io extension for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} io
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%description io
|
2006-12-11 18:42:36 +00:00
|
|
|
Io extension for graphviz.
|
2004-11-08 04:30:25 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%files io
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/io
|
|
|
|
%{_libdir}/graphviz/io/*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/mann/gv_io.n*
|
2006-02-22 17:28:01 +00:00
|
|
|
%endif
|
2004-11-08 04:30:25 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-java rpm ---------------------------------------------
|
|
|
|
%if %{JAVA}
|
2006-02-22 17:28:01 +00:00
|
|
|
%package java
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Java extension for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} java
|
2005-01-23 16:27:43 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%description java
|
2006-12-11 18:42:36 +00:00
|
|
|
Java extension for graphviz.
|
2005-01-23 16:27:43 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%files java
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/java
|
|
|
|
%{_libdir}/graphviz/java/*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/mann/gv_java.n*
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
2005-01-23 16:27:43 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-lua rpm ----------------------------------------------
|
|
|
|
%if %{LUA}
|
2006-02-22 17:28:01 +00:00
|
|
|
%package lua
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Lua extension for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} lua
|
2004-11-08 04:30:25 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%description lua
|
2006-12-11 18:42:36 +00:00
|
|
|
Lua extension for graphviz.
|
2004-11-08 04:30:25 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%files lua
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/lua
|
|
|
|
%{_libdir}/graphviz/lua/*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/mann/gv_lua.n*
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-ocaml rpm --------------------------------------------
|
|
|
|
%if %{OCAML}
|
2006-02-22 17:28:01 +00:00
|
|
|
%package ocaml
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Ocaml extension for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} ocaml
|
2004-11-08 04:30:25 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%description ocaml
|
2006-12-11 18:42:36 +00:00
|
|
|
Ocaml extension for graphviz.
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%files ocaml
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/ocaml
|
|
|
|
%{_libdir}/graphviz/ocaml/*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/mann/gv_ocaml.n*
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
2005-08-11 09:24:26 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-perl rpm ---------------------------------------------
|
|
|
|
%if %{PERL}
|
2006-02-22 17:28:01 +00:00
|
|
|
%package perl
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Perl extension for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} perl
|
2004-11-08 04:30:25 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%description perl
|
2006-12-11 18:42:36 +00:00
|
|
|
Perl extension for graphviz.
|
2004-11-08 04:30:25 +00:00
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%files perl
|
2005-01-23 16:27:43 +00:00
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/perl
|
|
|
|
%{_libdir}/graphviz/perl/*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/mann/gv_perl.n*
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-php rpm ----------------------------------------------
|
|
|
|
%if %{PHP}
|
2006-02-22 17:28:01 +00:00
|
|
|
%package php
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: PHP extension for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} php
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%description php
|
2006-12-11 18:42:36 +00:00
|
|
|
PHP extension for graphviz.
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%files php
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/php
|
|
|
|
%{_libdir}/graphviz/php/*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/mann/gv_php.n*
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-python rpm -------------------------------------------
|
|
|
|
%if %{PYTHON}
|
2006-02-22 17:28:01 +00:00
|
|
|
%package python
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Python extension for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} python
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%description python
|
2006-12-11 18:42:36 +00:00
|
|
|
Python extension for graphviz.
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%files python
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/python
|
|
|
|
%{_libdir}/graphviz/python/*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/mann/gv_python.n*
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-ruby rpm ---------------------------------------------
|
|
|
|
%if %{RUBY}
|
2006-02-22 17:28:01 +00:00
|
|
|
%package ruby
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Ruby extension for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} ruby
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%description ruby
|
2006-12-11 18:42:36 +00:00
|
|
|
Ruby extension for graphviz.
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%files ruby
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/ruby
|
|
|
|
%{_libdir}/graphviz/ruby/*
|
2007-08-23 16:40:18 +00:00
|
|
|
%{_mandir}/mann/gv_ruby.n*
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-tcl rpm ----------------------------------------------
|
|
|
|
%if %{TCL}
|
2006-02-22 17:28:01 +00:00
|
|
|
%package tcl
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Tcl extension & tools for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} tcl >= 8.3 tk
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%description tcl
|
2006-12-11 18:42:36 +00:00
|
|
|
Various tcl packages (extensions) for the graphviz tools.
|
2005-01-23 16:27:43 +00:00
|
|
|
|
|
|
|
%files tcl
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_libdir}/graphviz/tcl
|
|
|
|
%{_libdir}/graphviz/tcl/*
|
|
|
|
%{_libdir}/graphviz/pkgIndex.tcl
|
|
|
|
%{_datadir}/graphviz/demo
|
2007-08-23 16:40:18 +00:00
|
|
|
# hack to include gv_tcl.n only if available
|
|
|
|
# always includes tcldot.n, gdtclft.n
|
|
|
|
%{_mandir}/mann/*tcl*.n*
|
|
|
|
%{_mandir}/mann/tkspline.n*
|
2006-12-11 18:42:36 +00:00
|
|
|
%endif
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-devel rpm --------------------------------------------
|
2006-02-22 17:28:01 +00:00
|
|
|
%package devel
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development package for graphviz
|
|
|
|
Requires: graphviz = %{version}-%{release} pkgconfig
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
A collection of tools for the manipulation and layout
|
|
|
|
of graphs (as in nodes and edges, not as in barcharts).
|
2006-12-11 18:42:36 +00:00
|
|
|
This package contains development files for graphviz.
|
2004-11-08 04:30:25 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%{_includedir}/graphviz
|
|
|
|
%{_libdir}/*.so
|
2005-01-23 16:27:43 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2004-11-08 04:30:25 +00:00
|
|
|
%{_mandir}/man3/*.3*
|
2006-12-11 18:42:36 +00:00
|
|
|
%exclude %{_libdir}/graphviz/*/*
|
|
|
|
%exclude %{_libdir}/graphviz/libgvplugin*
|
|
|
|
%exclude %{_libdir}/graphviz/*.so
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-graphs rpm -------------------------------------------
|
2006-02-22 17:28:01 +00:00
|
|
|
%package graphs
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Applications/Multimedia
|
|
|
|
Summary: Demo graphs for graphviz
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%description graphs
|
2006-12-11 18:42:36 +00:00
|
|
|
Some demo graphs for graphviz.
|
2005-01-23 16:27:43 +00:00
|
|
|
|
|
|
|
%files graphs
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-11 18:42:36 +00:00
|
|
|
%dir %{_datadir}/graphviz
|
|
|
|
%{_datadir}/graphviz/graphs
|
2005-01-23 16:27:43 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- graphviz-doc rpm ----------------------------------------------
|
2006-02-22 17:28:01 +00:00
|
|
|
%package doc
|
2007-08-23 16:40:18 +00:00
|
|
|
Group: Documentation
|
|
|
|
Summary: PDF and HTML documents for graphviz
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%description doc
|
2006-12-11 18:42:36 +00:00
|
|
|
Provides some additional PDF and HTML documentation for graphviz.
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2005-01-23 16:27:43 +00:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc __doc/*
|
2004-11-08 04:30:25 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- building --------------------------------------------------
|
|
|
|
|
2006-02-22 17:28:01 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-09-05 03:07:20 +00:00
|
|
|
%patch0 -p0
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%build
|
2007-08-23 16:40:18 +00:00
|
|
|
%if ! %{SHARP}
|
|
|
|
%define NO_SHARP --disable-sharp
|
|
|
|
%endif
|
|
|
|
%if ! %{GUILE}
|
|
|
|
%define NO_GUILE --disable-guile
|
|
|
|
%endif
|
|
|
|
%if ! %{_IO}
|
|
|
|
%define NO_IO --disable-io
|
|
|
|
%endif
|
|
|
|
%if ! %{JAVA}
|
|
|
|
%define NO_JAVA --disable-java
|
|
|
|
%endif
|
|
|
|
%if ! %{LUA}
|
|
|
|
%define NO_LUA --disable-lua
|
|
|
|
%endif
|
|
|
|
%if ! %{OCAML}
|
|
|
|
%define NO_OCAML --disable-ocaml
|
|
|
|
%endif
|
|
|
|
%if ! %{PERL}
|
|
|
|
%define NO_PERL --disable-perl
|
|
|
|
%endif
|
|
|
|
%if ! %{PHP}
|
|
|
|
%define NO_PHP --disable-php
|
|
|
|
%endif
|
|
|
|
%if ! %{PYTHON}
|
|
|
|
%define NO_PYTHON --disable-python
|
|
|
|
%endif
|
|
|
|
%if ! %{RUBY}
|
|
|
|
%define NO_RUBY --disable-ruby
|
|
|
|
%endif
|
|
|
|
%if ! %{TCL}
|
|
|
|
%define NO_TCL --disable-tcl
|
|
|
|
%endif
|
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
# XXX ix86 only used to have -ffast-math, let's use everywhere
|
|
|
|
%{expand: %%define optflags %{optflags} -ffast-math}
|
2007-08-23 16:40:18 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
# %%configure is broken in RH7.3 rpmbuild
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
./configure \
|
2007-08-23 16:40:18 +00:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--includedir=%{_includedir} \
|
|
|
|
--datadir=%{_datadir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--with-x \
|
|
|
|
--disable-static \
|
|
|
|
--disable-dependency-tracking %{MYLIBGD} %{IPSEPCOLA} %{MING} %{PANGOCAIRO} \
|
|
|
|
%{?NO_SHARP} %{?NO_GUILE} %{?NO_IO} %{?NO_JAVA} %{?NO_LUA} %{?NO_OCAML} \
|
|
|
|
%{?NO_PERL} %{?NO_PHP} %{?NO_PYTHON} %{?NO_RUBY} %{?NO_TCL}
|
|
|
|
make %{?_smp_mflags}
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%install
|
2007-08-23 16:40:18 +00:00
|
|
|
rm -rf %{buildroot} __doc
|
|
|
|
make DESTDIR=%{buildroot} \
|
|
|
|
docdir=%{buildroot}%{_docdir}/%{name} \
|
|
|
|
pkgconfigdir=%{_libdir}/pkgconfig \
|
|
|
|
install
|
|
|
|
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
|
|
|
chmod -x %{buildroot}%{_datadir}/%{name}/lefty/*
|
|
|
|
cp -a %{buildroot}%{_datadir}/%{name}/doc __doc
|
|
|
|
rm -rf %{buildroot}%{_datadir}/%{name}/doc
|
2006-02-22 17:28:01 +00:00
|
|
|
|
|
|
|
%clean
|
2007-08-23 16:40:18 +00:00
|
|
|
rm -rf %{buildroot}
|
2006-02-22 17:28:01 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
#-- changelog --------------------------------------------------
|
2004-11-08 04:30:25 +00:00
|
|
|
|
|
|
|
%changelog
|
2007-09-05 03:07:20 +00:00
|
|
|
* Tue Sep 04 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.14.1-3
|
|
|
|
- Patch to resurrect arith.h
|
|
|
|
|
2007-08-23 16:40:18 +00:00
|
|
|
* Thu Aug 23 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.14.1-2
|
|
|
|
- Added perl-devel to BR for F7+
|
|
|
|
|
|
|
|
* Wed Aug 15 2007 John Ellson <ellson@research.att.com>
|
|
|
|
- release 2.14.1 - see ChangeLog for details
|
|
|
|
* Wed Aug 2 2007 John Ellson <ellson@research.att.com>
|
|
|
|
- release 2.14 - see ChangeLog for details
|
|
|
|
* Fri Mar 16 2007 Stephen North <north@research.att.com>
|
|
|
|
- remove xorg-X11-devel from rhel >= 5
|
|
|
|
* Mon Dec 11 2006 John Ellson <john.ellson@comcast.net>
|
|
|
|
- fix graphviz-lua description (Fedora BZ#218191)
|
2006-12-11 18:42:36 +00:00
|
|
|
* Tue Sep 13 2005 John Ellson <ellson@research.att.com>
|
|
|
|
- split out language bindings into their own rpms so that
|
2007-01-24 20:00:02 +00:00
|
|
|
main rpm doesn't depend on (e.g.) ocaml
|
2006-12-11 18:42:36 +00:00
|
|
|
|
|
|
|
* Sat Aug 13 2005 John Ellson <ellson@research.att.com>
|
|
|
|
- imported various fixes from the Fedora-Extras .spec by Oliver Falk <oliver@linux-kernel.at>
|
2004-11-08 04:30:25 +00:00
|
|
|
|
2006-12-11 18:42:36 +00:00
|
|
|
* Wed Jul 20 2005 John Ellson <ellson@research.att.com>
|
|
|
|
- release 2.4
|