2007-01-16 00:15:41 +01:00
|
|
|
#
|
2010-03-18 22:58:41 +01:00
|
|
|
# spec file for package graphviz (Version 2.26.3)
|
2007-01-16 00:15:41 +01:00
|
|
|
#
|
2010-02-19 16:34:22 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:15:41 +01:00
|
|
|
#
|
2008-08-08 02:03:21 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:15:41 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-03-14 17:42:33 +01:00
|
|
|
|
2007-01-16 00:15:41 +01:00
|
|
|
|
|
|
|
Name: graphviz
|
2007-08-17 18:47:44 +02:00
|
|
|
BuildRequires: fdupes libexpat-devel libjpeg-devel libpng-devel zlib-devel
|
2010-05-25 10:33:53 +02:00
|
|
|
BuildRequires: freetype2-devel >= 2 gcc-c++ libstdc++-devel
|
2007-05-10 02:49:24 +02:00
|
|
|
BuildRequires: bison flex glib2-devel xorg-x11-devel
|
|
|
|
BuildRequires: xorg-x11-libICE-devel xorg-x11-libSM-devel xorg-x11-libXpm-devel
|
2007-05-09 01:03:38 +02:00
|
|
|
BuildRequires: xorg-x11-libX11-devel xorg-x11-libXext-devel xorg-x11-libXmu-devel xorg-x11-libXt-devel
|
2008-03-28 16:07:03 +01:00
|
|
|
PreReq: /bin/rm
|
2010-03-18 22:58:41 +01:00
|
|
|
Version: 2.26.3
|
2010-06-02 18:08:19 +02:00
|
|
|
Release: 4
|
2007-10-26 20:40:25 +02:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:15:41 +01:00
|
|
|
Summary: Graph Visualization Tools
|
|
|
|
Group: Productivity/Graphics/Visualization/Graph
|
|
|
|
Source: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.bz2
|
2007-10-26 20:40:25 +02:00
|
|
|
Source2: graphviz-rpmlintrc
|
2007-05-09 01:03:38 +02:00
|
|
|
Patch0: graphviz-fix-pkgIndex.patch
|
2008-03-28 16:07:03 +01:00
|
|
|
Patch3: graphviz-neato_splines.patch
|
2010-03-18 22:58:41 +01:00
|
|
|
Patch11: graphviz-2.20.2-interpreter_names.patch
|
2008-04-27 20:13:01 +02:00
|
|
|
Patch13: graphviz-stddefs.patch
|
2010-04-04 20:07:37 +02:00
|
|
|
Patch14: graphviz-gd_png_check_sig.patch
|
2010-06-02 18:08:19 +02:00
|
|
|
Patch15: graphviz-wrong_index.patch
|
2007-10-26 20:40:25 +02:00
|
|
|
Url: http://www.graphviz.org/
|
2009-08-28 18:02:22 +02:00
|
|
|
License: IBM Public License ..
|
2007-01-16 00:15:41 +01:00
|
|
|
Prefix: /usr
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
PreReq: /bin/cat
|
2008-04-22 15:35:28 +02:00
|
|
|
Recommends: graphviz-gnome = %{version}
|
|
|
|
Recommends: graphviz-gd = %{version}
|
2007-01-16 00:15:41 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A collection of tools and tcl packages for the manipulation and layout
|
|
|
|
of graphs (as in nodes and edges, not as in bar charts).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David Dobkin <dpd@cs.princeton.edu>
|
|
|
|
John Ellson <ellson@graphviz.org>
|
|
|
|
Emden Gansner <erg@research.att.com>
|
|
|
|
Eleftherios Koutsofios <ek@research.att.com>
|
|
|
|
Stephen North <north@research.att.com>
|
|
|
|
Kiem-Phong Vo <kpv@research.att.com>
|
|
|
|
Gordon Woodhull <gmcw@worldnet.att.net>
|
|
|
|
|
|
|
|
%package devel
|
2009-08-28 18:02:22 +02:00
|
|
|
License: IBM Public License ..
|
2007-01-16 00:15:41 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Summary: Graphiviz development package
|
|
|
|
Requires: %{name} = %{version}
|
2007-05-09 01:03:38 +02:00
|
|
|
Requires: glibc-devel tcl-devel fontconfig-devel expat freetype2-devel
|
2007-01-16 00:15:41 +01:00
|
|
|
Requires: libjpeg-devel libpng-devel zlib-devel libtool perl
|
|
|
|
Requires: libstdc++-devel tk-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The graphviz-devel package contains all that's necessary for developing
|
|
|
|
programs that use the graphviz libraries including man3 pages.
|
|
|
|
|
2010-06-02 18:08:19 +02:00
|
|
|
Note: If you need output in png format you also need to install
|
|
|
|
graphviz-gnome.
|
2007-01-16 00:15:41 +01:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David Dobkin <dpd@cs.princeton.edu>
|
|
|
|
John Ellson <ellson@graphviz.org>
|
|
|
|
Emden Gansner <erg@research.att.com>
|
|
|
|
Eleftherios Koutsofios <ek@research.att.com>
|
|
|
|
Stephen North <north@research.att.com>
|
|
|
|
Kiem-Phong Vo <kpv@research.att.com>
|
|
|
|
Gordon Woodhull <gmcw@worldnet.att.net>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-08-28 18:02:22 +02:00
|
|
|
%patch0
|
2007-01-16 00:15:41 +01:00
|
|
|
%patch3
|
2008-04-08 23:34:21 +02:00
|
|
|
%patch11
|
2008-04-27 20:13:01 +02:00
|
|
|
%patch13
|
2010-04-04 20:07:37 +02:00
|
|
|
%patch14
|
2010-06-02 18:08:19 +02:00
|
|
|
%patch15
|
2007-05-09 01:03:38 +02:00
|
|
|
# Fix path in generated man pages
|
|
|
|
sed -e 's$@LIB_DIR@$%{_libdir}$g' tclpkg/gv/gv_doc_langs.tcl >tclpkg/gv/gv_doc_langs.tcl.new && mv tclpkg/gv/gv_doc_langs.tcl.new tclpkg/gv/gv_doc_langs.tcl
|
2008-03-14 17:42:33 +01:00
|
|
|
# remove broken macros
|
|
|
|
rm m4/iconv.m4 m4/lib-*.m4
|
|
|
|
cp /usr/share/gettext/config.rpath config
|
2007-01-16 00:15:41 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
2007-05-09 01:03:38 +02:00
|
|
|
touch tclpkg/gv/gv.i
|
2007-01-16 00:15:41 +01:00
|
|
|
WARN_FLAGS="-W -Wall -Wno-unused-parameter -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith"
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS $WARN_FLAGS"
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
CFLAGS="$CFLAGS -ffast-math"
|
|
|
|
%endif
|
|
|
|
CC=gcc
|
|
|
|
RANLIB=:
|
|
|
|
export CC RANLIB
|
2007-05-09 01:03:38 +02:00
|
|
|
export CFLAGS="$CFLAGS"
|
|
|
|
export CPPFLAGS="%optflags"
|
2007-01-16 00:15:41 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--includedir=%{_includedir} \
|
|
|
|
--datadir=%{_datadir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--with-x \
|
|
|
|
--with-mylibgd \
|
2007-05-09 01:03:38 +02:00
|
|
|
--disable-static \
|
|
|
|
--disable-dependency-tracking \
|
2008-10-24 16:59:41 +02:00
|
|
|
--enable-ltdl-install=no \
|
2007-05-09 01:03:38 +02:00
|
|
|
--with-ipsepcola \
|
|
|
|
--without-ming \
|
|
|
|
--disable-io
|
2010-02-19 16:34:22 +01:00
|
|
|
make %{?jobs:-j%jobs} DESTDIR=%buildroot
|
2007-01-16 00:15:41 +01:00
|
|
|
|
|
|
|
%install
|
2007-05-09 01:03:38 +02:00
|
|
|
make install \
|
|
|
|
DESTDIR=%{buildroot} \
|
|
|
|
docdir=%{buildroot}%{_docdir}/%{name} \
|
|
|
|
pkgconfigdir=%{_libdir}/pkgconfig
|
2008-03-28 16:07:03 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -print0 | xargs -0 rm -f
|
2007-05-09 01:03:38 +02:00
|
|
|
mkdir -p %{buildroot}/%{_docdir}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
2007-05-10 02:49:24 +02:00
|
|
|
rm -f %buildroot/%{_libdir}/%{name}/pkgIndex.tcl
|
2007-05-09 01:03:38 +02:00
|
|
|
chmod -x %{buildroot}%{_datadir}/%{name}/lefty/*
|
|
|
|
cp -a %{buildroot}%{_datadir}/%{name}/doc __doc
|
|
|
|
rm -rf %{buildroot}%{_datadir}/%{name}/doc
|
2008-04-20 20:49:38 +02:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/graphviz
|
|
|
|
touch %{buildroot}%{_libdir}/graphviz/config
|
2007-05-09 01:03:38 +02:00
|
|
|
mkdir -p %{buildroot}/etc/ld.so.conf.d/
|
|
|
|
cat <<EOF >%{buildroot}/etc/ld.so.conf.d/%{name}.conf
|
|
|
|
%{_libdir}/%{name}
|
|
|
|
%{_libdir}/%{name}/sharp
|
|
|
|
%{_libdir}/%{name}/java
|
|
|
|
%{_libdir}/%{name}/perl
|
|
|
|
%{_libdir}/%{name}/php
|
|
|
|
%{_libdir}/%{name}/ocaml
|
|
|
|
%{_libdir}/%{name}/python
|
|
|
|
%{_libdir}/%{name}/lua
|
|
|
|
%{_libdir}/%{name}/tcl
|
|
|
|
%{_libdir}/%{name}/guile
|
|
|
|
%{_libdir}/%{name}/ruby
|
|
|
|
EOF
|
|
|
|
#Correct the path to the shared library
|
|
|
|
for manfile in $(find %{buildroot} -name \*.man); do
|
|
|
|
sed -e 's$/usr/lib/graphviz$%{_libdir}/%{name}$g' $manfile > ${manfile}.new && mv ${manfile}.new ${manfile}
|
|
|
|
done
|
2008-04-20 20:49:38 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/graphviz/libgvplugin_gd.*
|
2008-04-22 15:35:28 +02:00
|
|
|
rm -f %{_libdir}/graphviz/libgvplugin_pango*
|
|
|
|
rm -f %{_libdir}/graphviz/libgvplugin_gdk_pixbuf*
|
|
|
|
rm -f %{_libdir}/graphviz/libgvplugin_gtk*
|
2008-04-20 20:49:38 +02:00
|
|
|
#%clean
|
|
|
|
#rm -rf %buildroot
|
2007-08-15 20:23:58 +02:00
|
|
|
|
2007-01-16 00:15:41 +01:00
|
|
|
%post
|
2008-03-28 16:07:03 +01:00
|
|
|
/sbin/ldconfig
|
2008-04-20 20:49:38 +02:00
|
|
|
# run "dot -c" to generate plugin config %_libdir/graphviz/config
|
2008-03-28 16:07:03 +01:00
|
|
|
dot -c
|
|
|
|
test -s %{_libdir}/graphviz/config || echo "%{_libdir}/graphviz/config doesn't exist! Check installation."
|
2007-05-09 01:03:38 +02:00
|
|
|
|
|
|
|
%postun
|
2008-03-28 16:07:03 +01:00
|
|
|
/sbin/ldconfig
|
2007-05-09 01:03:38 +02:00
|
|
|
if ! test -x $RPM_INSTALL_PREFIX0/bin/dot; then rm -f $RPM_INSTALL_PREFIX0/%{_lib}/graphviz/config; fi
|
2007-01-16 00:15:41 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/FAQ.html AUTHORS COPYING README NEWS ChangeLog
|
|
|
|
%attr(755,root,root) %{_bindir}/*
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/lefty
|
|
|
|
%{_datadir}/%{name}/graphs
|
2008-03-28 16:07:03 +01:00
|
|
|
%doc %{_mandir}/man1/*.1*
|
|
|
|
%doc %{_mandir}/man7/*.7*
|
2007-01-16 00:15:41 +01:00
|
|
|
%dir %{_libdir}/%{name}
|
2007-05-09 01:03:38 +02:00
|
|
|
%{_libdir}/*.so.*
|
2008-10-24 16:59:41 +02:00
|
|
|
%{_libdir}/graphviz/*.so*
|
|
|
|
#%{_libdir}/graphviz/libgvplugin_core*
|
|
|
|
#%{_libdir}/graphviz/libgvplugin_dot_layout*
|
|
|
|
#%{_libdir}/graphviz/libgvplugin_neato_layout*
|
2008-04-22 15:35:28 +02:00
|
|
|
#%{_libdir}/graphviz/libgvplugin_xlib*
|
2007-05-09 01:03:38 +02:00
|
|
|
/etc/ld.so.conf.d/graphviz.conf
|
2008-04-20 20:49:38 +02:00
|
|
|
%ghost %{_libdir}/graphviz/config
|
2008-04-22 15:35:28 +02:00
|
|
|
#%exclude %{_libdir}/graphviz/libgvplugin_pango*
|
|
|
|
#%exclude %{_libdir}/graphviz/libgvplugin_gdk_pixbuf*
|
|
|
|
#%exclude %{_libdir}/graphviz/libgvplugin_gtk*
|
2007-05-09 01:03:38 +02:00
|
|
|
|
2007-01-16 00:15:41 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2007-05-09 01:03:38 +02:00
|
|
|
%{_includedir}/graphviz
|
|
|
|
%{_libdir}/*.so
|
2007-01-16 00:15:41 +01:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2007-05-09 01:03:38 +02:00
|
|
|
%{_mandir}/man3/*.3.gz
|
2008-03-14 17:42:33 +01:00
|
|
|
|
2007-03-29 22:17:56 +02:00
|
|
|
%changelog
|