Commit 0fe9e1d9 authored by John Ellson's avatar John Ellson

incorporate bits from Redhat's spec, merge back into one

parent a529bfd1
......@@ -58,7 +58,6 @@ Makefile.in
/config.log
/config.status
/libtool
/graphviz.spec
/redhat/graphviz.spec.fedora
/redhat/graphviz.spec.rhel
/stamp-h1
......
......@@ -35,7 +35,7 @@ BUILT_SOURCES = $(top_builddir)/graphviz_version.h
$(top_builddir)/graphviz_version.h: config.h
$(EGREP) 'PACKAGE|VERSION|GVPLUGIN' config.h > $(top_builddir)/graphviz_version.h
EXTRA_DIST = $(txt) $(html) graphviz.spec.in graphviz.spec \
EXTRA_DIST = $(txt) $(html) graphviz.spec \
autogen.sh config/depcomp config/config.rpath \
builddate.h compat.h \
Makeargs iffe config.iffe \
......
......@@ -22,6 +22,8 @@ AM_CPPFLAGS = \
$(GTK_CFLAGS) $(GLUT_CFLAGS) $(GTKGLEXT_CFLAGS) $(GLADE_CFLAGS) $(FREETYPE2_CFLAGS) $(FONTCONFIG_CFLAGS) $(GTS_CFLAGS)
bin_PROGRAMS =
man_MANS =
pdf_DATA =
if WITH_SMYRNA
if ENABLE_SHARED
bin_PROGRAMS += smyrna
......@@ -29,11 +31,10 @@ endif
if ENABLE_STATIC
bin_PROGRAMS += smyrna_static
endif
man_MANS += smyrna.1
pdf_DATA += smyrna.1.pdf
endif
man_MANS = smyrna.1
pdf_DATA = smyrna.1.pdf
noinst_HEADERS = arcball.h draw.h glexpose.h \
glmotion.h gltemplate.h gui/appmouse.h gui/callbacks.h \
hotkeymap.h materials.h md5.h polytess.h selectionfuncs.h \
......
......@@ -602,11 +602,11 @@ dnl -----------------------------------
dnl INCLUDES and LIBS for GO
AC_ARG_ENABLE(go,
[AS_HELP_STRING([--enable-go=no],[go language bindings])],
[], [enable_go=no])
[AS_HELP_STRING([--enable-go=yes],[go language bindings])],
[], [enable_go=yes])
if test "x$enable_go" != "xyes"; then
use_go="No (disabled by default - experimental)"
use_go="No (disabled)"
else
if test "x$use_swig" != "xYes"; then
use_go="No (swig not available)"
......@@ -1773,11 +1773,11 @@ dnl -----------------------------------
dnl INCLUDES and LIBS for WEBP
AC_ARG_WITH(webp,
[AS_HELP_STRING([--with-webp=no],[webp library])],
[], [with_webp=no])
[AS_HELP_STRING([--with-webp=yes],[webp library])],
[], [with_webp=yes])
if test "x$with_webp" != "xyes"; then
use_webp="No (disabled by default - experimental)"
use_webp="No (disabled)"
else
PKG_CHECK_MODULES(WEBP, [libwebp],[
use_webp="Yes"
......@@ -2626,11 +2626,11 @@ dnl -----------------------------------
dnl SMYRNA
AC_ARG_WITH(smyrna,
[AS_HELP_STRING([--with-smyrna=no],[SMYRNA large graph viewer])],
[], [with_smyrna=no])
[AS_HELP_STRING([--with-smyrna=yes],[SMYRNA large graph viewer])],
[], [with_smyrna=yes])
if test "x$with_smyrna" != "xyes"; then
use_smyrna="No (disabled by default - experimental)"
use_smyrna="No (disabled)"
else
if test "x$use_gtk" != "xYes"; then
AC_MSG_WARN(SMYRNA requires GTK)
......@@ -2949,7 +2949,6 @@ AC_CONFIG_FILES(Makefile
share/Makefile
share/examples/Makefile
share/gui/Makefile
graphviz.spec
redhat/graphviz.spec.fedora
redhat/graphviz.spec.rhel
Doxyfile
......
redhat/graphviz.spec.fedora
\ No newline at end of file
# $Id$ $Revision$
# @configure_input@
# Note: pre gd-2.0.34 graphviz uses its own gd tree with gif support and other fixes
#-- Global graphviz rpm and src.rpm tags-------------------------------------
Name: graphviz
Summary: Graph Visualization Tools
Version: @VERSION@
%define truerelease 1
%{?distroagnostic: %global release %{truerelease}}
%{!?distroagnostic: %global release %{truerelease}%{?dist}}
Release: %{?release}
Group: Applications/Multimedia
License: EPL
URL: http://www.graphviz.org/
Source0: http://www.graphviz.org/pub/@GRAPHVIZ_SOURCES@/graphviz-@VERSION@.tar.gz
#### rpmlint complains about this
# # graphviz is relocatable - Caution: this feature is used in AT&T,
# # but probably will not be supported in Redhat/Fedora/Centos distros
# Prefix: /usr
#-- feature and package selection -------------------------------------------
# depends on macro values set by redhat-rpm-config
# Some features are not possible in some distros, we call these "optional"
# All optional features are off (undefined) by default
# All non-optional features are on by default
# To enable, use: <percent>define FEATURE 1
# Available optional features are:
# SHARP _GO _IO OCAML
# PYTHON PYTHON1 PYTHON2 R_LANG
# GLITZ DEVIL MING WEBP
# SuSE uses a different mechanism to generate BuildRequires
# norootforbuild
# neededforbuild expat freetype2-devel gcc tcl tcl-devel tk tk-devel x-devel-packages
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: zlib-devel expat-devel ann-devel
BuildRequires: ksh bison m4 flex
BuildRequires: swig
BuildRequires: libXaw-devel libSM-devel libICE-devel libXpm-devel libXt-devel libXmu-devel libXext-devel libX11-devel
BuildRequires: freetype-devel >= 2
BuildRequires: fontconfig-devel
BuildRequires: cairo-devel >= 1.1.10 pango-devel gmp-devel gtk2-devel
BuildRequires: libtool-ltdl libtool-ltdl-devel
BuildRequires: ruby ruby-devel
BuildRequires: guile-devel
BuildRequires: java-devel
BuildRequires: gd gd-devel
BuildRequires: php-devel
BuildRequires: lua-devel
BuildRequires: tk tcl >= 8.3 tcl-devel tk-devel
BuildRequires: perl-devel perl-libs perl-ExtUtils-Embed
BuildRequires: librsvg2-devel
BuildRequires: ghostscript-devel
BuildRequires: poppler-glib-devel
BuildRequires: qt-devel
BuildRequires: gts-devel
BuildRequires: lasi-devel
BuildRequires: libglade2-devel gtkglarea2-devel gtkglext-devel glade3-libgladeui-devel freeglut-devel
#-- Red Hat Enterprise Linux (also Centos) specific Build Requirements
%if 0%{?rhel}
%ifnarch ppc64
%ifnarch i386
%ifnarch i686
%define SHARP 1
BuildRequires: mono-core
%endif
%endif
%define OCAML 1
BuildRequires: ocaml
%endif
%define PYTHON 1
BuildRequires: python python-devel
%endif
#-- Fedora specific Build Requirements
%if 0%{?fedora}
%define SHARP 1
BuildRequires: mono-core
%define OCAML 1
BuildRequires: ocaml
%define DEVIL 1
BuildRequires: DevIL-devel
#define GLITZ 1
# BuildRequires: glitz-devel
#define MING 1
#BuildRequires: ming ming-devel
%define R_LANG 1
BuildRequires: R-devel swig >= 1.3.33 perl-libs
%define WEBP 1
BuildRequires: libwebp-devel
%define _GO 1
BuildRequires: golang >= 1.2 gcc-go swig >= 3.0.2
%define PYTHON2 1
BuildRequires: python2 python2-devel
%define PYTHON3 1
BuildRequires: python3 python3-devel
%define SEPARATE_LICENSE 1
%endif
# What a meal PHP makes of versioning !!!
%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4)
%global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
# Fix private-shared-object-provides
# RPM 4.8
%{?filter_provides_in: %filter_provides_in %{php_extdir}/.*\.so$}
%{?filter_setup}
# RPM 4.9
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{php_extdir}/.*\\.so$
#-- main graphviz rpm ------------------------------------------------
Requires: %{name}-nox = %{version}-%{release}
Requires: %{name}-x = %{version}-%{release}
%description
A collection of tools for the manipulation and layout
of graphs (as in nodes and edges, not as in bar-charts).
%files
%defattr(-,root,root,-)
%if 0%{?SEPARATE_LICENSE}
%license COPYING
%endif
%doc COPYING AUTHORS ChangeLog NEWS README
#-- graphviz-nox rpm --------------------------------------------------
%package nox
Group: Applications/Multimedia
Summary: Graphviz commands with no X11 dependencies
Requires: urw-fonts
Requires: %{name}-libs = %{version}-%{release}
Requires: %{name}-plugins-core = %{version}-%{release}
Provides: %{name}-nox = %{version}-%{release}
%description nox
Graphviz plugins and commands that do not depend on x11.
When used alone, this is intended for minimalist web-server apps
with no X11 on the server.
%files nox
%defattr(-,root,root,-)
%if 0%{?SEPARATE_LICENSE}
%license COPYING
%endif
%doc COPYING AUTHORS ChangeLog NEWS README
%exclude %{_bindir}/dot_builtins
%{_bindir}/acyclic
%{_bindir}/bcomps
%{_bindir}/ccomps
%{_bindir}/circo
%{_bindir}/cluster
%{_bindir}/dijkstra
%{_bindir}/dot
%{_bindir}/dot2gxl
%{_bindir}/fdp
%{_bindir}/gc
%{_bindir}/gml2gv
%{_bindir}/graphml2gv
%{_bindir}/gv2gml
%{_bindir}/gv2gxl
%{_bindir}/gvcolor
%{_bindir}/gvgen
%{_bindir}/gvmap
%{_bindir}/gvmap.sh
%{_bindir}/gvpack
%{_bindir}/gvpr
%{_bindir}/gxl2dot
%{_bindir}/gxl2gv
%{_bindir}/mingle
%{_bindir}/edgepaint
%{_bindir}/mm2gv
%{_bindir}/neato
%{_bindir}/nop
%{_bindir}/osage
%{_bindir}/patchwork
%{_bindir}/prune
%{_bindir}/sccmap
%{_bindir}/sfdp
%{_bindir}/tred
%{_bindir}/twopi
%{_bindir}/unflatten
%{_mandir}/man1/acyclic.1*
%{_mandir}/man1/bcomps.1*
%{_mandir}/man1/ccomps.1*
%{_mandir}/man1/circo.1*
%{_mandir}/man1/cluster.1*
%{_mandir}/man1/dijkstra.1*
%{_mandir}/man1/dot.1*
%{_mandir}/man1/dot2gxl.1*
%{_mandir}/man1/fdp.1*
%{_mandir}/man1/gc.1*
%{_mandir}/man1/gml2gv.1*
%{_mandir}/man1/graphml2gv.1*
%{_mandir}/man1/gv2gml.1*
%{_mandir}/man1/gv2gxl.1*
%{_mandir}/man1/gvcolor.1*
%{_mandir}/man1/gvgen.1*
%{_mandir}/man1/gvmap.1*
%{_mandir}/man1/gvmap.sh.1*
%{_mandir}/man1/gvpack.1*
%{_mandir}/man1/gvpr.1*
%{_mandir}/man1/gxl2dot.1*
%{_mandir}/man1/gxl2gv.1*
%{_mandir}/man1/mingle.1*
%{_mandir}/man1/edgepaint.1*
%{_mandir}/man1/mm2gv.1*
%{_mandir}/man1/neato.1*
%{_mandir}/man1/nop.1*
%{_mandir}/man1/osage.1*
%{_mandir}/man1/patchwork.1*
%{_mandir}/man1/prune.1*
%{_mandir}/man1/sccmap.1*
%{_mandir}/man1/sfdp.1*
%{_mandir}/man1/tred.1*
%{_mandir}/man1/twopi.1*
%{_mandir}/man1/unflatten.1*
%{_mandir}/man7/graphviz.7*
%dir %{_datadir}/graphviz
%{_datadir}/graphviz/gvpr/*
# run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
%post
LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c
#-- graphviz-libs rpm --------------------------------------------------
%package libs
Group: Applications/Multimedia
Summary: Graphviz base libs
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description libs
Graphviz core libs
%post libs
/sbin/ldconfig
%postun libs
/sbin/ldconfig
%files libs
%defattr(-,root,root,-)
%{_libdir}/libcdt.so.*
%{_libdir}/libcgraph.so.*
%{_libdir}/libgvc.so.*
%{_libdir}/libgvpr.so.*
%{_libdir}/libpathplan.so.*
%{_libdir}/libxdot.so.4*
%{_libdir}/liblab_gamut.so.*
#-- graphviz-plugins-core rpm --------------------------------------------------
%package plugins-core
Group: Applications/Multimedia
Summary: Graphviz plugins - core layout engines and text renderers
Requires: %{name}-nox = %{version}-%{release}
%description plugins-core
Graphviz plugins - core layout engines and text renderers
# run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
%post plugins-core
LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c
# if there is no dot after everything else is done, then remove config
%postun plugins-core
if [ $1 -eq 0 ]; then
rm -f $RPM_INSTALL_PREFIX0/%{_lib}/graphviz/config6 || :
fi
%files plugins-core
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz
%{_libdir}/graphviz/libgvplugin_core.so.*
%{_libdir}/graphviz/libgvplugin_dot_layout.so.*
%{_libdir}/graphviz/libgvplugin_neato_layout.so.*
#-- graphviz-x rpm --------------------------------------------------
%package x
Group: Applications/Multimedia
Summary: Graphviz commands with X11 dependencies
Requires: %{name}-nox = %{version}-%{release}
Requires: %{name}-plugins-x = %{version}-%{release}
%description x
Graphviz commands with X11 dependencies
%files x
%defattr(-,root,root,-)
%if 0%{?SEPARATE_LICENSE}
%license COPYING
%endif
%doc COPYING AUTHORS ChangeLog NEWS README
%{_bindir}/lefty
%{_bindir}/lneato
%{_bindir}/dotty
%{_bindir}/vimdot
%{_mandir}/man1/lefty.1*
%{_mandir}/man1/lneato.1*
%{_mandir}/man1/dotty.1*
%{_mandir}/man1/vimdot.1*
%{_datadir}/graphviz/lefty
%{_bindir}/smyrna
%{_datadir}/graphviz/smyrna
%{_mandir}/man1/smyrna.1*
#-- graphviz-plugins-x rpm --------------------------------------------------
%package plugins-x
Group: Applications/Multimedia
Summary: Graphviz plugins with X11 dependencies
Requires: %{name} = %{version}-%{release}
%description plugins-x
Graphviz plugins that depend on x11 - most installations will want this.
# run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
%post plugins-x
LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c
%postun plugins-x
[ -x $RPM_INSTALL_PREFIX0/bin/dot ] && LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c || :
%files plugins-x
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz
%{_libdir}/graphviz/libgvplugin_xlib.so.*
%{_libdir}/graphviz/libgvplugin_pango.so.*
%{_libdir}/graphviz/libgvplugin_rsvg.so.*
%{_libdir}/graphviz/libgvplugin_gtk.so.*
%{_libdir}/graphviz/libgvplugin_gdk.so.*
%{_libdir}/graphviz/libgvplugin_gs.so.*
%{_libdir}/graphviz/libgvplugin_poppler.so.*
%{_libdir}/graphviz/libgvplugin_lasi.so.*
#-- graphviz-gd rpm --------------------------------------------------
%package gd
Group: Applications/Multimedia
Summary: Graphviz binaries that depend on libgd
Requires: %{name} = %{version}-%{release}
# this next Requires is not strictly neccessary for diffimg,
# but users will probably expect the plugins to get pulled in
Requires: %{name}-plugins-gd = %{version}-%{release}
%description gd
Graphviz binaries that depend 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.)
%files gd
%defattr(-,root,root,-)
%{_bindir}/diffimg
%{_mandir}/man1/diffimg.1*
#-- graphviz-plugins-gd rpm --------------------------------------------------
%package plugins-gd
Group: Applications/Multimedia
Summary: Graphviz plugin for gd renderers
Requires: %{name} = %{version}-%{release}
%description plugins-gd
Graphviz plugin for image rendering using libgd. (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.)
# run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
%post plugins-gd
LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c
%postun plugins-gd
[ -x $RPM_INSTALL_PREFIX0/bin/dot ] && LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c || :
%files plugins-gd
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz
%{_libdir}/graphviz/libgvplugin_gd.so.*
#-- graphviz-plugins-webp rpm --------------------------------------------------
%if 0%{?WEBP}
%package plugins-webp
Group: Applications/Multimedia
Summary: Graphviz plugin for webp format images, using libwebp
Requires: %{name}-x = %{version}-%{release}
Obsoletes: %{name}-webp <= 2.41
Provides: %{name}-webp = %{version}-%{release}
%description plugins-webp
Graphviz plugin for webp image rendering.
# run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
%post plugins-webp
LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c
%postun plugins-webp
[ -x $RPM_INSTALL_PREFIX0/bin/dot ] && LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c || :
%files plugins-webp
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz
%{_libdir}/graphviz/libgvplugin_webp.so.*
%endif
#-- graphviz-plugins-devil rpm --------------------------------------------------
%if 0%{?DEVIL}
%package plugins-devil
Group: Applications/Multimedia
Summary: Graphviz plugin for renderers based on DevIL
Requires: %{name}-x = %{version}-%{release}
Obsoletes: %{name}-devil <= 2.41
Provides: %{name}-devil = %{version}-%{release}
%description plugins-devil
Graphviz plugin for renderers based on DevIL. (Unless you absolutely have
to use BMP, TIF, or TGA, you are recommended to use the PNG format instead
supported directly by the cairo+pango based renderer in the base graphviz rpm.)
# run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
%post plugins-devil
LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c
%postun plugins-devil
[ -x $RPM_INSTALL_PREFIX0/bin/dot ] && LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c || :
%files plugins-devil
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz
%{_libdir}/graphviz/libgvplugin_devil.so.*
%endif
#-- graphviz-plugins-ming rpm --------------------------------------------------
%if 0%{?MING}
%package plugins-ming
Group: Applications/Multimedia
Summary: Graphviz plugin for flash renderer based on ming
Requires: %{name}-x = %{version}-%{release}
Obsoletes: %{name}-ming <= 2.41
Provides: %{name}-ming = %{version}-%{release}
%description plugins-ming
Graphviz plugin for -Tswf (flash) renderer based on ming.
# run "dot -c" to generate plugin config in {_libdir}/graphviz/config6
%post plugins-ming
LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c
%postun plugins-ming
[ -x $RPM_INSTALL_PREFIX0/bin/dot ] && LD_LIBRARY_PATH=$RPM_INSTALL_PREFIX0/%{_lib} $RPM_INSTALL_PREFIX0/bin/dot -c || :
%files plugins-ming
%{_libdir}/graphviz/libgvplugin_ming.so.*
%{_libdir}/graphviz/*fdb
%endif
#-- graphviz-qt rpm --------------------------------------------------
%package qt
Group: Applications/Multimedia
Summary: Graphviz applications using _QT
Requires: %{name}-x = %{version}-%{release}
%description qt
Graphviz applications using _QT - currently just gvedit
%files qt
%defattr(-,root,root,-)
%{_bindir}/gvedit
%{_datadir}/graphviz/gvedit
%{_mandir}/man1/gvedit.1*
#-- graphviz-lang-sharp rpm --------------------------------------------
%if 0%{?SHARP}
%package lang-sharp
Group: Applications/Multimedia
Summary: C# extension for graphviz
Requires: %{name} = %{version}-%{release}, mono-core
Obsoletes: %{name}-sharp <= 2.41
Provides: %{name}-sharp = %{version}-%{release}
%description lang-sharp
C# extension for graphviz.
%files lang-sharp
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz/sharp
%{_libdir}/graphviz/sharp/*
%{_mandir}/man3/*.3sharp.*
%endif
#-- graphviz-lang-go rpm --------------------------------------------
%if 0%{?_GO}
%package lang-go
Group: Applications/Multimedia
Summary: GO extension for graphviz
Requires: %{name} = %{version}-%{release}, golang
Obsoletes: %{name}-go <= 2.41
Provides: %{name}-go = %{version}-%{release}
%description lang-go
Guile extension for graphviz.
%files lang-go
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz/go
%{_libdir}/graphviz/go/*
%{_mandir}/man3/*.3go.*
%endif
#-- graphviz-lang-guile rpm --------------------------------------------
%package lang-guile
Group: Applications/Multimedia
Summary: Guile extension for graphviz
Requires: %{name} = %{version}-%{release}, guile
Obsoletes: %{name}-guile <= 2.41
Provides: %{name}-guile = %{version}-%{release}
%description lang-guile
Guile extension for graphviz.
%files lang-guile
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz/guile
%{_libdir}/graphviz/guile/*
%{_mandir}/man3/*.3guile.*
#-- graphviz-lang-io rpm -----------------------------------------------
%if 0%{?_IO}
%package lang-io
Group: Applications/Multimedia
Summary: Io extension for graphviz
Requires: %{name} = %{version}-%{release}, io
Obsoletes: %{name}-io <= 2.41
Provides: %{name}-io = %{version}-%{release}
%description lang-io
Io extension for graphviz.
%files lang-io
%defattr(-,root,root,-)
%{_mandir}/man3/*.3io.*
%endif
#-- graphviz-lang-java rpm ---------------------------------------------
%package lang-java
Group: Applications/Multimedia
Summary: Java extension for graphviz
Requires: %{name} = %{version}-%{release}, java
Obsoletes: %{name}-java <= 2.41
Provides: %{name}-java = %{version}-%{release}
%description lang-java
Java extension for graphviz.
%files lang-java
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz/java
%{_libdir}/graphviz/java/*
%{_mandir}/man3/*.3java.*
#-- graphviz-lang-lua rpm ----------------------------------------------
%package lang-lua
Group: Applications/Multimedia
Summary: Lua extension for graphviz
Requires: %{name} = %{version}-%{release}, lua
Obsoletes: %{name}-lua <= 2.41
Provides: %{name}-lua = %{version}-%{release}
%description lang-lua
Lua extension for graphviz.
%files lang-lua
%defattr(-,root,root,-)
%{_libdir}/lua*/*
%{_datadir}/graphviz/demo/*.lua*
%{_mandir}/man3/*.3lua.*
%exclude %{_libdir}/graphviz/lua/*.so
#-- graphviz-lang-ocaml rpm --------------------------------------------
%if 0%{?OCAML}
%package lang-ocaml
Group: Applications/Multimedia
Summary: Ocaml extension for graphviz
Requires: %{name} = %{version}-%{release}, ocaml
Obsoletes: %{name}-ocaml <= 2.41
Provides: %{name}-ocaml = %{version}-%{release}
%description lang-ocaml
Ocaml extension for graphviz.
%files lang-ocaml
%defattr(-,root,root,-)
%dir %{_libdir}/graphviz/ocaml
%{_libdir}/graphviz/ocaml/*
%{_mandir}/man3/*.3ocaml.*
%endif
#-- graphviz-lang-perl rpm ---------------------------------------------
%package lang-perl
Group: Applications/Multimedia
Summary: Perl extension for graphviz
Requires: %{name} = %{version}-%{release}, perl
Obsoletes: %{name}-perl <= 2.41
Provides: %{name}-perl = %{version}-%{release}
%description lang-perl
Perl extension for graphviz.
%files lang-perl
%defattr(-,root,root,-)
%{_libdir}/perl*/*
%{_datadir}/graphviz/demo/*.pl*
%{_mandir}/man3/*.3perl.*
%exclude %{_libdir}/graphviz/perl/*.so
%exclude %{_libdir}/graphviz/perl/*.pm
#-- graphviz-lang-php rpm ----------------------------------------------
%package lang-php
Group: Applications/Multimedia
Summary: PHP extension for graphviz
Requires: %{name} = %{version}-%{release}, /usr/bin/php
Obsoletes: %{name}-php <= 2.41
Provides: %{name}-php = %{version}-%{release}
%description lang-php
PHP extension for graphviz.
%files lang-php
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
%{php_extdir}/gv.so
%{_datadir}/php*/*
%{_datadir}/graphviz/demo/*.php*
%{_mandir}/man3/*.3php.*
%exclude %{_libdir}/graphviz/php/*.so
%exclude %{_libdir}/graphviz/php/*.php
#-- graphviz-lang-python rpm -------------------------------------------
%if 0%{?PYTHON}
%package lang-python
Group: Applications/Multimedia
Summary: Python extension for graphviz
Requires: %{name} = %{version}-%{release}, python
Obsoletes: %{name}-python <= 2.41
Provides: %{name}-python = %{version}-%{release}
%description lang-python
Python extension for graphviz.
%files lang-python
%defattr(-,root,root,-)
%{_libdir}/python*/*
%{_datadir}/graphviz/demo/*.py*
%{_mandir}/man3/gv.3python.*
%exclude %{_libdir}/graphviz/python/*.so
%exclude %{_libdir}/graphviz/python/*.py*
%endif
#-- graphviz-lang-python2 rpm -------------------------------------------
%if 0%{?PYTHON2}
%package lang-python2
Group: Applications/Multimedia
Summary: Python extension for graphviz
Requires: %{name} = %{version}-%{release}, python2
Conflicts: %{name}-python <= 2.41
Conflicts: %{name}-lang-python <= 2.41
%description lang-python2
Python extension for graphviz.
%files lang-python2
%defattr(-,root,root,-)
%{_libdir}/python2*/*
%{_datadir}/graphviz/demo/*.py*
%{_mandir}/man3/gv.3python.*
%exclude %{_libdir}/graphviz/python2/*.so
%exclude %{_libdir}/graphviz/python2/*.py*
%endif
#-- graphviz-lang-python3 rpm -------------------------------------------
%if 0%{?PYTHON3}
%package lang-python3
Group: Applications/Multimedia
Summary: Python extension for graphviz
Requires: %{name} = %{version}-%{release}, python3
Conflicts: %{name}-python <= 2.41
Conflicts: %{name}-lang-python <= 2.41
%description lang-python3