File tulip.spec of Package tulip

#
# spec file for package tulip (Version 3.0.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           tulip
BuildRequires:  Mesa-devel freefont glew-devel libdrm-devel libjpeg-devel libqt4-devel libxml2-devel update-alternatives update-desktop-files xorg-x11-devel
# These are for (cd docs; make html) below
# To speed up build time, this is pre-generated
#BuildRequires: doxygen graphviz-gd xmltex passivetex texlive texlive-bin java libqt4-devel-doc-data
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
Summary:        Visualization of huge graphs
Version:        3.0.0
Release:        20
Prefix:         /usr
# .so version
%define tulip_version %{version}
%define datadir %{prefix}/share
%define pkgdatadir %{prefix}/share/tulip
Url:            http://www.tulip-software.org
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Source2:        %{name}-docs-%{version}.tar.bz2
Source3:        %{name}-rpmlintrc
Patch:          %{name}-%{version}.dif
License:        GPL v2 or later
Group:          Productivity/Graphics/Visualization/Graph
Requires:       Mesa
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on

%description
Tulip software is a system dedicated to the visualization of huge
graphs. It manages graphs with a number of elements(node and edges) up
to 500.000 on a personal computer(PIII 600, with 256MB). Its SuperGraph
technology architecture enables to do the following things :

* 3D visualizations

* 3D modifications

* Plug-in support for easy evolution

* Building of clusters and navigation into it

* Automatic drawing of graphs

* Automatic clustering of graphs

* Automatic selection of elements

* Automatic Metric coloration of graphs



Authors:
--------
    Auber David <auber@tulip-software.org>
    Visualization Module improvements, Bertrand Mathieu
    Tlp Import/export Improvements, Bertrand Mathieu
    A lot of other things, Bertrand Mathieu
    GCC-3 port of the Graph Library, Sebastien Grivet.
    GEM plug-in, David Duke.
    Adjacency Matrix import plug-in Luis Garcia.
    Poset Import plug-in Luis Garcia.

%package devel
License:        GPL v2 or later
Summary:        Visualization of huge graphs - development files
Group:          Development/Libraries/Other
Requires:       tulip

%description devel
Tulip software is a system dedicated to the visualization of huge
graphs. It manages graphs with a number of elements(node and edges) up
to 500.000 on a personal computer(PIII 600, with 256MB). Its SuperGraph
technology architecture enables to do the following things :

* 3D visualizations

* 3D modifications

* Plug-in support for easy evolution

* Building of clusters and navigation into it

* Automatic drawing of graphs

* Automatic clustering of graphs

* Automatic selection of elements

* Automatic Metric coloration of graphs



Authors:
--------
    Auber David <auber@tulip-software.org>
    Visualization Module improvements, Bertrand Mathieu
    Tlp Import/export Improvements, Bertrand Mathieu
    A lot of other things, Bertrand Mathieu
    GCC-3 port of the Graph Library, Sebastien Grivet.
    GEM plug-in, David Duke.
    Adjacency Matrix import plug-in Luis Garcia.
    Poset Import plug-in Luis Garcia.

%package doc
License:        GPL v2 or later
Summary:        Visualization of huge graphs - user documentation
Group:          Productivity/Graphics/Visualization/Graph
Requires:       tulip

%description doc
Tulip software is a system dedicated to the visualization of huge
graphs. It manages graphs with a number of elements(node and edges) up
to 500.000 on a personal computer(PIII 600, with 256MB). Its SuperGraph
technology architecture enables to do the following things :

* 3D visualizations

* 3D modifications

* Plug-in support for easy evolution

* Building of clusters and navigation into it

* Automatic drawing of graphs

* Automatic clustering of graphs

* Automatic selection of elements

* Automatic Metric coloration of graphs



Authors:
--------
    Auber David <auber@tulip-software.org>
    Visualization Module improvements, Bertrand Mathieu
    Tlp Import/export Improvements, Bertrand Mathieu
    A lot of other things, Bertrand Mathieu
    GCC-3 port of the Graph Library, Sebastien Grivet.
    GEM plug-in, David Duke.
    Adjacency Matrix import plug-in Luis Garcia.
    Poset Import plug-in Luis Garcia.

%package devel-doc
License:        GPL v2 or later
Summary:        Visualization of huge graphs - development documentation
Group:          Documentation/HTML
Requires:       tulip-doc

%description devel-doc
Tulip software is a system dedicated to the visualization of huge
graphs. It manages graphs with a number of elements(node and edges) up
to 500.000 on a personal computer(PIII 600, with 256MB). Its SuperGraph
technology architecture enables to do the following things :

* 3D visualizations

* 3D modifications

* Plug-in support for easy evolution

* Building of clusters and navigation into it

* Automatic drawing of graphs

* Automatic clustering of graphs

* Automatic selection of elements

* Automatic Metric coloration of graphs



Authors:
--------
    Auber David <auber@tulip-software.org>
    Visualization Module improvements, Bertrand Mathieu
    Tlp Import/export Improvements, Bertrand Mathieu
    A lot of other things, Bertrand Mathieu
    GCC-3 port of the Graph Library, Sebastien Grivet.
    GEM plug-in, David Duke.
    Adjacency Matrix import plug-in Luis Garcia.
    Poset Import plug-in Luis Garcia.

%package -n     libtulip
License:        GPL v2 or later
Summary:        A library for handling large graphs
Group:          Productivity/Graphics/Visualization/Graph

%description -n libtulip
See package 'tulip' for details.



Authors:
--------
    Auber David <auber@tulip-software.org>
    Visualization Module improvements, Bertrand Mathieu
    Tlp Import/export Improvements, Bertrand Mathieu
    A lot of other things, Bertrand Mathieu
    GCC-3 port of the Graph Library, Sebastien Grivet.
    GEM plug-in, David Duke.
    Adjacency Matrix import plug-in Luis Garcia.
    Poset Import plug-in Luis Garcia.

%package -n     libtulip-ogl
License:        GPL v2 or later
Summary:        A library for displaying graph in a GL context
Group:          Productivity/Graphics/Visualization/Graph
Requires:       Mesa

%description -n libtulip-ogl
See package 'tulip' for details.



Authors:
--------
    Auber David <auber@tulip-software.org>
    Visualization Module improvements, Bertrand Mathieu
    Tlp Import/export Improvements, Bertrand Mathieu
    A lot of other things, Bertrand Mathieu
    GCC-3 port of the Graph Library, Sebastien Grivet.
    GEM plug-in, David Duke.
    Adjacency Matrix import plug-in Luis Garcia.
    Poset Import plug-in Luis Garcia.

%package -n     libtulip-qt4
License:        GPL v2 or later
Provides:       libtulip-qt3
Obsoletes:      libtulip-qt3
Summary:        A set of Qt Widgets for tulip/tulip-ogl
Group:          Productivity/Graphics/Visualization/Graph

%description -n libtulip-qt4
See package 'tulip' for details.



Authors:
--------
    Auber David <auber@tulip-software.org>
    Visualization Module improvements, Bertrand Mathieu
    Tlp Import/export Improvements, Bertrand Mathieu
    A lot of other things, Bertrand Mathieu
    GCC-3 port of the Graph Library, Sebastien Grivet.
    GEM plug-in, David Duke.
    Adjacency Matrix import plug-in Luis Garcia.
    Poset Import plug-in Luis Garcia.

%prep
%setup -q -n %{name}-%{version}
%patch

%build
%{?suse_update_config:%{suse_update_config -f}}
autoreconf --force --install
#./gen-conf.sh
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-deprecated" \
 ./configure --prefix=%{prefix}			 \
	--libdir=%{_libdir}			 \
	--docdir=%{_docdir}/%{name}		 \
	--mandir=/usr/share/man			 \
	--disable-static 			 \
	--enable-stats-gui			 \
	--with-qt-dir=/usr/bin                   \
	--with-qt-libraries=%{_libdir}           \
	--with-qt-includes=/usr/include 	 \
	--x-includes=/usr/X11R6/include		 \
	--x-libraries=/usr/X11R6/%{_lib}	 \
	--with-gl-includes=/usr/include		 \
	--with-gl-libraries=/usr/%{_lib}
make
# generating docs during build is disabled
#(cd docs; make html)
# unpack pre-generated docs instead
tar xf %_sourcedir/%{name}-docs-%{version}.tar.bz2

%install
make DESTDIR=${RPM_BUILD_ROOT} install
cd docs
sh gen-profile.sh
make DESTDIR=${RPM_BUILD_ROOT} install
cd ..
%suse_update_desktop_file -i %{name} Graphics 3DGraphics
find ${RPM_BUILD_ROOT}%{_libdir} -name *.la | xargs rm -f
%if 0%{?suse_version} > 1020
# create symlinks for man pages and documentation
%fdupes -s %{buildroot}/%{_mandir}/man3
%fdupes -s %{buildroot}%{_docdir}/%{name}
%fdupes -s %{buildroot}/%{prefix}/include/tulip
%endif

%clean
# Clear up the mess
rm -rf $RPM_BUILD_ROOT
#

%post -n libtulip -p /sbin/ldconfig

%postun -n libtulip -p /sbin/ldconfig

%post -n libtulip-qt4 -p /sbin/ldconfig

%postun -n libtulip-qt4 -p /sbin/ldconfig

%post -n libtulip-ogl -p /sbin/ldconfig

%postun -n libtulip-ogl -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{prefix}/bin/tulip
#%{prefix}/bin/tlprender
%{_libdir}/libtulip-pluginsmanager.so
%{_libdir}/libtulip-pluginsmanager-%{tulip_version}.so*
%{_datadir}/applications/*.desktop
%dir %{_libdir}/tlp
%dir %{_libdir}/tlp/bitmaps
%{_libdir}/tlp/bitmaps/*
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/profile.adp
%dir %{_docdir}/%{name}/common
%{_docdir}/%{name}/common/*

%files doc
%defattr(-,root,root)
%dir %{_docdir}/%{name}/userHandbook
%{_docdir}/%{name}/userHandbook/*

%files -n libtulip
%defattr(-,root,root)
%{prefix}/bin/tulip-config
%{_libdir}/libtulip.so
%{_libdir}/libtulip-%{tulip_version}.so
%dir %{_libdir}/tlp
%{_libdir}/tlp/lib*.*

%files -n libtulip-ogl
%defattr(-,root,root)
%{_libdir}/libtulip-ogl.so
%{_libdir}/libtulip-ogl-%{tulip_version}.so
%dir %{_libdir}/tlp/glyphs
%{_libdir}/tlp/glyphs/*

%files -n libtulip-qt4
%defattr(-,root,root)
%{_libdir}/libtulip-qt4.so
%{_libdir}/libtulip-qt4-%{tulip_version}.so
%dir %{_libdir}/tlp/designer
%{_libdir}/tlp/designer/lib*.*

%files devel
%defattr(-,root,root)
%{_datadir}/aclocal/tulip.m4
%dir %{prefix}/include/tulip
%{prefix}/include/tulip/*

%files devel-doc
%defattr(-,root,root)
%dir %{_docdir}/%{name}/developerHandbook
%{_docdir}/%{name}/developerHandbook/*
%dir %{_docdir}/%{name}/doxygen
%{_docdir}/%{name}/doxygen/*
%{_mandir}/man3/*

%changelog
* Wed Jun 18 2008 schwab@suse.de
- Fix configure script.
* Tue Apr 22 2008 kkaempf@suse.de
- update documentation to 3.0.0
  - drop "BuildRequires" for generating documentation
* Tue Apr 15 2008 kkaempf@suse.de
- update to 3.0.0
  Main changes:
  - add Qt4 support
  - new plugin handler
  - support svg graphics format
  see http://www.tulip-software.org for the complete list.
* Thu Oct 11 2007 kkaempf@suse.de
- compile with gcc 4.3
* Tue Jul 31 2007 kkaempf@suse.de
- update to 3.0.0B6
- split off -doc and -devel-doc subpackages
* Thu May 24 2007 ro@suse.de
- added ldconfig to post scripts
* Wed Feb 07 2007 kkaempf@suse.de
- small fixes for newer versions of gcc.
* Tue Feb 06 2007 kkaempf@suse.de
- update to 3.0.0 Beta 2
  lots of changes, see project website for details
* Thu Nov 16 2006 kkaempf@suse.de
- fix lib/lib64 bug in plugin loader (#221704).
* Tue Nov 07 2006 kkaempf@suse.de
- remove executable flag from documentation files.
* Wed Nov 01 2006 kkaempf@suse.de
- added sgml-skel to buildreq (#216944)
- removed thirdparty/saxon/saxon6-5-4.zip from the source tarball
  since it
  - contains mixed-licensed (GPL and MPL) code
  - is unneeded for building
  - is rather large (3.2 MB !)
* Mon Oct 30 2006 ro@suse.de
- added docbook-xsl-stylesheets to buildreq
* Wed Oct 11 2006 kkaempf@suse.de
- bugfix update to 2.0.6
  Due to its non GPL license, Tulip no longer includes the Triangle
  package. So the Delaunay triangulation and Voronoi diagram are
  not currently implemented in the current release.
  Most bugs fixes are for 64 bits port and Debian packaging.
* Wed Sep 06 2006 kkaempf@suse.de
- fix 'underquoted definition of AC_PATH_TULIP' in tulip.m4
* Tue Aug 08 2006 kkaempf@suse.de
- fix continuation lines in Makefile.am (for new gnu make)
* Thu Jul 20 2006 kkaempf@suse.de
- update to 2.0.5
- split off -devel subpackage
- generate and package html documentation
* Wed Mar 08 2006 kkaempf@suse.de
- remove qt3-devel-doc from BuildRequires (#155519)
- require qt3 and Mesa.
* Tue Mar 07 2006 kkaempf@suse.de
- Update to 2.0.3
- This is a new release, new features, fix of several bugs
  details :
- Lib tulip: Add support of map (for planar graphs),
  add planarity test algorithm
- Lib tulip-ogl: Add support of node rotation(z-axis)
- Plugins: add new graph drawing algorithm (Mixed Model,
  Squarified treemap, Improved Walker, Dendrogram, rectangle
  packing), improvements and bug fix of other plug-ins.
- Tulip Software: Add help window, add access to test function
  (planar, acyclic, tree, biconnected, triconnected, simple),
  add access to modification fucniton (make acyclic, make
  biconnected, make biconnected).
- Documentation : A new docmuenation generation mechanism has been
  added, all the documentation has been improved (work in progress)
- General : Code cleaning and refactoring
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 09 2005 kkaempf@suse.de
- add x-devel-packages and mesa-devel-packages to neededforbuild.
- support different directories for libGL and libXi.
- disable building of static libs.
* Tue Oct 18 2005 stbinner@suse.de
- remove extra qualification for gcc 4.1 compilation
* Fri Oct 14 2005 stbinner@suse.de
- fix include hints for Qt 3.3.5
* Mon Sep 26 2005 ro@suse.de
- fix build-dir references in installed .la files
* Wed Jul 27 2005 kkaempf@suse.de
- update to 2.0.2
  - Lib tulip: Add possibility to group and ungroup nodes. New
  memory optimization have been done in MutableContainer
  - Lib tulip-ogl: Add antialiasing of lines, change true type
  fonts (licence problem), fix bug in font displaying (multiple
  views).
  - Plugins: Optimization of the strength plug-in.
  - Tulip Software: Include group/ungroup functionality
* Mon Apr 11 2005 kkaempf@suse.de
- update to 2.0.1
- fix lots of 64bit issues
- build with gcc4
* Wed Jun 23 2004 hmacht@suse.de
- building as non-root user
* Thu Jan 22 2004 ro@suse.de
- fix build with current automake
* Thu Sep 04 2003 kkaempf@suse.de
- Update to 1.2.5
  This is a maintenance release, fix of several bugs.
  Plugin : Add the ACE graph drawing algorithm
  Lib tulip : fix a bug in the computation of the degree of nodes
  in a subgraph, fix a bug when erasing a property, fix a bug in
  the isTree() function.
  Software Tulip : fix a bug during snapshot when two windows overlap.
  Lib tulip-qt : fix core dump during the preview of a GlGraphWidget
  in QT-designer.
- drop requirement for qt3-devel-tools
* Fri Aug 15 2003 adrian@suse.de
- add desktop file
* Thu Aug 07 2003 sndirsch@suse.de
- removed mesa/mesaglui/mesaglut from Requires
* Thu Jul 17 2003 kkaempf@suse.de
- update to 1.2.4
  This is a maintenance release, fix of several bugs (for large
  graph) and compilation problems.
  details : fix lighting problem, fix selection problem, split in
  several library, fix centering problem, code cleaning and
  refactoring.
* Mon Mar 31 2003 ro@suse.de
- removed mesa-stuff from neededforbuild
  (included in qt3-devel-packages)
* Wed Mar 19 2003 kkaempf@suse.de
- update to 1.2.3
- fix Makefiles to regenerate moc_* files
- adapt Makefile.am to current automake/autoconf
* Wed Mar 19 2003 kkaempf@suse.de
- fix double declaration of _TULIP_LIB_DIR (#25631)
* Fri Nov 29 2002 kkaempf@suse.de
- fix file list.
* Wed Nov 13 2002 ro@suse.de
- regenerate moc files
* Wed Nov 13 2002 kkaempf@suse.de
- fix lib64.
* Mon Nov 11 2002 ro@suse.de
- remove macros from specfile in places where no macros
  should be used (Name,Version)
* Mon Nov 11 2002 kkaempf@suse.de
- Initial version 1.2.2
openSUSE Build Service is sponsored by