500 lines
13 KiB
RPMSpec
500 lines
13 KiB
RPMSpec
%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)
|
|
|
|
Name: graphviz
|
|
Summary: Graph Visualization Tools
|
|
Version: 2.20.3
|
|
Release: 5%{?dist}.1
|
|
Group: Applications/Multimedia
|
|
License: CPL
|
|
URL: http://www.graphviz.org/
|
|
Source0: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz
|
|
Patch0: graphviz-2.20.3-configure-php.patch
|
|
Patch1: graphviz-2.20.3-gv.i.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, expat-devel, freetype-devel >= 2
|
|
BuildRequires: /bin/ksh, bison, m4, flex, tk-devel, tcl-devel >= 8.3, swig
|
|
BuildRequires: fontconfig-devel, libtool-ltdl-devel, ruby-devel, ruby, guile-devel, python-devel
|
|
BuildRequires: libXaw-devel, libSM-devel, libXext-devel, java-devel, php-devel
|
|
BuildRequires: cairo-devel >= 1.1.10, pango-devel, gmp-devel, lua-devel, gtk2-devel, libgnomeui-devel
|
|
BuildRequires: gd-devel, perl-devel, DevIL-devel, R-devel, swig >= 1.3.33
|
|
%ifnarch ppc64 s390 s390x sparc64
|
|
BuildRequires: mono-core, ocaml
|
|
%endif
|
|
Requires: urw-fonts
|
|
Requires(post): /sbin/ldconfig
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
# Necessary conditionals
|
|
%ifarch ppc64 s390 s390x sparc64
|
|
%global SHARP 0
|
|
%global OCAML 0
|
|
%else
|
|
%global SHARP 1
|
|
%global OCAML 1
|
|
%endif
|
|
# Not in Fedora yet.
|
|
%global MING 0
|
|
|
|
%description
|
|
A collection of tools for the manipulation and layout of graphs (as in nodes
|
|
and edges, not as in barcharts).
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Development package for graphviz
|
|
Requires: %{name} = %{version}-%{release}, pkgconfig
|
|
|
|
%description devel
|
|
A collection of tools for the manipulation and layout of graphs (as in nodes
|
|
and edges, not as in barcharts). This package contains development files for
|
|
graphviz.
|
|
|
|
%package devil
|
|
Group: Applications/Multimedia
|
|
Summary: Graphviz plugin for renderers based on DevIL
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description 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.)
|
|
|
|
%package doc
|
|
Group: Documentation
|
|
Summary: PDF and HTML documents for graphviz
|
|
|
|
%description doc
|
|
Provides some additional PDF and HTML documentation for graphviz.
|
|
|
|
%package gd
|
|
Group: Applications/Multimedia
|
|
Summary: Graphviz plugin for renderers based on gd
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires(post): %{_bindir}/dot /sbin/ldconfig
|
|
Requires(postun): %{_bindir}/dot /sbin/ldconfig
|
|
|
|
%description gd
|
|
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.)
|
|
|
|
%package graphs
|
|
Group: Applications/Multimedia
|
|
Summary: Demo graphs for graphviz
|
|
|
|
%description graphs
|
|
Some demo graphs for graphviz.
|
|
|
|
%package guile
|
|
Group: Applications/Multimedia
|
|
Summary: Guile extension for graphviz
|
|
Requires: %{name} = %{version}-%{release}, guile
|
|
|
|
%description guile
|
|
Guile extension for graphviz.
|
|
|
|
%package java
|
|
Group: Applications/Multimedia
|
|
Summary: Java extension for graphviz
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description java
|
|
Java extension for graphviz.
|
|
|
|
%package lua
|
|
Group: Applications/Multimedia
|
|
Summary: Lua extension for graphviz
|
|
Requires: %{name} = %{version}-%{release}, lua
|
|
|
|
%description lua
|
|
Lua extension for graphviz.
|
|
|
|
%if %{MING}
|
|
%package ming
|
|
Group: Applications/Multimedia
|
|
Summary: Graphviz plugin for flash renderer based on ming
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description ming
|
|
Graphviz plugin for -Tswf (flash) renderer based on ming.
|
|
%endif
|
|
|
|
%if %{OCAML}
|
|
%package ocaml
|
|
Group: Applications/Multimedia
|
|
Summary: Ocaml extension for graphviz
|
|
Requires: %{name} = %{version}-%{release}, ocaml
|
|
|
|
%description ocaml
|
|
Ocaml extension for graphviz.
|
|
%endif
|
|
|
|
%package perl
|
|
Group: Applications/Multimedia
|
|
Summary: Perl extension for graphviz
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description perl
|
|
Perl extension for graphviz.
|
|
|
|
%package php
|
|
Group: Applications/Multimedia
|
|
Summary: PHP extension for graphviz
|
|
Requires: %{name} = %{version}-%{release}
|
|
%if %{?php_zend_api}0
|
|
Requires: php(zend-abi) = %{php_zend_api}
|
|
Requires: php(api) = %{php_core_api}
|
|
%else
|
|
Requires: php-api = %{php_apiver}
|
|
%endif
|
|
|
|
%description php
|
|
PHP extension for graphviz.
|
|
|
|
%package python
|
|
Group: Applications/Multimedia
|
|
Summary: Python extension for graphviz
|
|
Requires: %{name} = %{version}-%{release}, python
|
|
|
|
%description python
|
|
Python extension for graphviz.
|
|
|
|
%package R
|
|
Group: Applications/Multimedia
|
|
Summary: R extension for graphviz
|
|
Requires: %{name} = %{version}-%{release}, R-core
|
|
|
|
%description R
|
|
R extension for graphviz.
|
|
|
|
%package ruby
|
|
Group: Applications/Multimedia
|
|
Summary: Ruby extension for graphviz
|
|
Requires: %{name} = %{version}-%{release}, ruby
|
|
|
|
%description ruby
|
|
Ruby extension for graphviz.
|
|
|
|
%if %{SHARP}
|
|
%package sharp
|
|
Group: Applications/Multimedia
|
|
Summary: C# extension for graphviz
|
|
Requires: %{name} = %{version}-%{release}, mono-core
|
|
|
|
%description sharp
|
|
C# extension for graphviz.
|
|
%endif
|
|
|
|
%package tcl
|
|
Group: Applications/Multimedia
|
|
Summary: Tcl extension & tools for graphviz
|
|
Requires: %{name} = %{version}-%{release}, tcl >= 8.3, tk
|
|
|
|
%description tcl
|
|
Various tcl packages (extensions) for the graphviz tools.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
|
|
%build
|
|
# %%define NO_IO --disable-io
|
|
|
|
# XXX ix86 only used to have -ffast-math, let's use everywhere
|
|
%{expand: %%define optflags %{optflags} -ffast-math}
|
|
# Hack in the java includes we need
|
|
sed -i '/JavaVM.framework/!s/JAVA_INCLUDES=/JAVA_INCLUDES=\"_MY_JAVA_INCLUDES_\"/g' configure
|
|
sed -i 's|_MY_JAVA_INCLUDES_|-I%{java_home}/include/ -I%{java_home}/include/linux/|g' configure
|
|
%configure --with-x --disable-static --disable-dependency-tracking --without-mylibgd --with-ipsepcola --with-pangocairo --with-gdk-pixbuf \
|
|
%if ! %{SHARP}
|
|
--disable-sharp \
|
|
%endif
|
|
%if ! %{OCAML}
|
|
--disable-ocaml \
|
|
%endif
|
|
%if ! %{MING}
|
|
--without-ming \
|
|
%endif
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
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
|
|
|
|
# PHP configuration file
|
|
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
|
|
%{__cat} << __EOF__ > %{buildroot}%{_sysconfdir}/php.d/%{name}.ini
|
|
; Enable %{name} extension module
|
|
extension=gv.so
|
|
__EOF__
|
|
|
|
%check
|
|
%ifnarch ppc64 ppc
|
|
# regression test, segfaults on ppc/ppc64, possible endian issues?
|
|
cd rtest
|
|
make rtest
|
|
%endif
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%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
|
|
|
|
# run "dot -c" to generate plugin config in %{_libdir}/graphviz/config
|
|
%post devil
|
|
%{_bindir}/dot -c
|
|
|
|
%postun devil
|
|
[ -x %{_bindir}/dot ] && %{_bindir}/dot -c || :
|
|
|
|
%post gd
|
|
/sbin/ldconfig
|
|
%{_bindir}/dot -c
|
|
|
|
%postun gd
|
|
/sbin/ldconfig
|
|
[ -x %{_bindir}/dot ] && %{_bindir}/dot -c || :
|
|
|
|
%if %{MING}
|
|
# run "dot -c" to generate plugin config in %{_libdir}/graphviz/config
|
|
%post ming
|
|
%{_bindir}/dot -c
|
|
|
|
%postun ming
|
|
[ -x %{_bindir}/dot ] && %{_bindir}/dot -c || :
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
%{_bindir}/*
|
|
%dir %{_libdir}/graphviz
|
|
%{_libdir}/*.so.*
|
|
%{_libdir}/graphviz/*.so.*
|
|
%{_mandir}/man1/*.1*
|
|
%{_mandir}/man7/*.7*
|
|
%dir %{_datadir}/graphviz
|
|
%{_datadir}/graphviz/lefty
|
|
%exclude %{_libdir}/graphviz/*/*
|
|
%exclude %{_libdir}/graphviz/libgvplugin_gd.*
|
|
%exclude %{_libdir}/graphviz/libgvplugin_devil.*
|
|
%if %{MING}
|
|
%exclude %{_libdir}/graphviz/libgvplugin_ming.*
|
|
%exclude %{_libdir}/graphviz/*fdb
|
|
%endif
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/graphviz
|
|
%{_libdir}/*.so
|
|
%{_libdir}/graphviz/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_mandir}/man3/*.3*
|
|
|
|
%files devil
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/libgvplugin_devil.so.*
|
|
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%doc __doc/*
|
|
|
|
%files gd
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/libgvplugin_gd.so.*
|
|
|
|
%files graphs
|
|
%defattr(-,root,root,-)
|
|
%dir %{_datadir}/graphviz
|
|
%{_datadir}/graphviz/graphs
|
|
|
|
%files guile
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/guile/
|
|
%{_mandir}/mann/gv_guile.n*
|
|
|
|
%files java
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/java/
|
|
%{_mandir}/mann/gv_java.n*
|
|
|
|
%files lua
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/lua/
|
|
%{_libdir}/lua*/*
|
|
%{_mandir}/mann/gv_lua.n*
|
|
|
|
%if %{MING}
|
|
%files ming
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/libgvplugin_ming.so.*
|
|
%{_libdir}/graphviz/*fdb
|
|
%endif
|
|
|
|
%if %{OCAML}
|
|
%files ocaml
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/ocaml/
|
|
%{_mandir}/mann/gv_ocaml.n*
|
|
%endif
|
|
|
|
%files perl
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/perl/
|
|
%{_libdir}/perl*/*
|
|
%{_mandir}/mann/gv_perl.n*
|
|
|
|
%files php
|
|
%defattr(-,root,root,-)
|
|
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
|
|
%{_libdir}/graphviz/php/
|
|
%{php_extdir}/gv.so
|
|
%{_datadir}/php*/*
|
|
%{_mandir}/mann/gv_php.n*
|
|
|
|
%files python
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/python/
|
|
%{_libdir}/python*/*
|
|
%{_mandir}/mann/gv_python.n*
|
|
|
|
%files R
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/R/
|
|
%{_mandir}/mann/gv_R.n*
|
|
|
|
%files ruby
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/ruby/
|
|
%{_libdir}/*ruby*/*
|
|
%{_mandir}/mann/gv_ruby.n*
|
|
|
|
%if %{SHARP}
|
|
%files sharp
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/sharp/
|
|
%{_mandir}/mann/gv_sharp.n*
|
|
%endif
|
|
|
|
%files tcl
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/graphviz/tcl/
|
|
%{_libdir}/tcl*/*
|
|
%{_datadir}/graphviz/demo/
|
|
# hack to include gv_tcl.n only if available
|
|
# always includes tcldot.n, gdtclft.n
|
|
%{_mandir}/mann/*tcl*.n*
|
|
%{_mandir}/mann/tkspline.n*
|
|
|
|
|
|
%changelog
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20.3-5.1
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Mon Jul 13 2009 Remi Collet <Fedora@FamilleCollet.com> 2.20.3-4.1
|
|
- fix mistake in make rtest fix
|
|
|
|
* Mon Jul 13 2009 Remi Collet <Fedora@FamilleCollet.com> 2.20.3-4
|
|
- rebuild for new PHP 5.3.0 ABI (20090626)
|
|
- add PHP ABI check
|
|
- use php_extdir (and don't own it)
|
|
- add php configuration file (/etc/php.d/graphviz.ini)
|
|
|
|
* Mon Mar 2 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.20.3-3
|
|
- this spec makes baby animals cry... massively clean it up
|
|
- hack in java includes to build against openjdk
|
|
- add ruby as a BuildRequires (configure checks for /usr/bin/ruby)
|
|
|
|
* Wed Feb 25 2009 John Ellson <ellson@graphviz.org> 2.20.3-2.2
|
|
- fixes for swig changes
|
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20.3-1.3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Wed Feb 11 2009 Karsten Hopp <karsten@redhat.com> 2.20.3-.2
|
|
- make it build on s390, s390x (#469044)
|
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.20.3-1.1
|
|
- Rebuild for Python 2.6
|
|
|
|
* Mon Nov 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.20.3-1
|
|
- update to 2.20.3
|
|
|
|
* Sat Nov 22 2008 Rex Dieter <rdieter@fedoraproject.org> 2.16.1-0.7
|
|
- respin (libtool)
|
|
|
|
* Mon Jul 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.16.1-0.6
|
|
- fix conditional comparison
|
|
|
|
* Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.16.1-0.5
|
|
- add Requires for versioned perl (libperl.so)
|
|
|
|
* Tue Mar 04 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.16.1-0.4
|
|
- Disable R support
|
|
|
|
* Mon Mar 03 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.16.1-0.2
|
|
- New upstream release (fixes BZ#433205, BZ#427376)
|
|
- Merged spec changes in from upstream
|
|
- Added patch from BZ#432683
|
|
|
|
* Tue Feb 12 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.16-3.3
|
|
- Added upstream-provided patch for building under GCC 4.3 (thanks John!)
|
|
|
|
* Thu Jan 3 2008 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.16-3.2
|
|
- Re-added tcl/tk 8.5 patch
|
|
- Tweaked ming stuff
|
|
|
|
* Thu Jan 3 2008 Alex Lancaster <alexlan[AT]fedoraproject.org> - 2.16-3.1
|
|
- Rebuild against new Tcl 8.5
|
|
|
|
* Wed Dec 12 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.16-2
|
|
- What the heck? Can't BR stuff that hasn't even gotten reviewed yet.
|
|
|
|
* Wed Nov 28 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.16-1
|
|
- New upstream release
|
|
- Remove arith.h patch
|
|
|
|
* Tue Sep 04 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 2.14.1-3
|
|
- Patch to resurrect arith.h
|
|
|
|
* 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)
|
|
* Tue Sep 13 2005 John Ellson <ellson@research.att.com>
|
|
- split out language bindings into their own rpms so that
|
|
main rpm doesn't depend on (e.g.) ocaml
|
|
|
|
* 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>
|
|
|
|
* Wed Jul 20 2005 John Ellson <ellson@research.att.com>
|
|
- release 2.4
|