Dark Lord of the Sith
Joined: 10 May 2003
Location: Outer Space
|Posted: Wed Aug 09, 2006 7:27 pm Post subject: Binary and source RPMs for dia in SuSE 9.0
Dia is inspired by the commercial Windows program 'Visio', though more geared towards informal diagrams for casual use. It can be used to draw many different kinds of diagrams. It currently has special objects to help draw entity relationship diagrams, UML diagrams, flowcharts, network diagrams, and many other diagrams. It is also possible to add support for new shapes by writing simple XML files, using a subset of SVG to draw the shape.
It can load and save diagrams to a custom XML format (gzipped by default, to save space), can export diagrams to a number of formats, including EPS, SVG, XFIG, WMF and PNG, and can print diagrams (including ones that span multiple pages).
For dia, I have created binary and source RPM packages for SuSE 9.0:
Use the command
to install the binary RPMs. I used the build package of SuSE to compile my own source RPMs from source, as described for example in Compiling SuSE Source Packages. Note that up to and including version 9.0, SuSE uses the usedforbuild string on a comment line of the spec file to list all needed files for a successful compilation of the package.
The packages are build for SuSE 9.0. To rebuild a package for your own version of (SuSE) Linux, use the source RPMs and the build and/or rpmbuild commands, as described in How to compile an older version for a newer system in RPM.
For those of you interested in the gory details, here they are (if you don't care, don't worry - the spec file will duly remind you of all of them, one by one ):
To compile dia on a SuSE 9.0 system, you need a "base Linux system" comprising of the following packages:
AND also the following "extra packages", needed specifically by dia:
It is important to have python, python-gtk, pyxml, docbook_4 and docbook-xsl-stylesheets, because otherwise the compilation process will break with various errors like:
ImportError: cannot import name saxexts
(which is a way of telling you "install pyxml") or
*** No rule to make target 'dia.1', needed by 'all-am'. Stop.
(which is a shorthand for "you didn't install docbook and its XML stylesheets, so I could not build 'dia.1', which is needed by 'all-am', which in turn seems to be so improtant that I have to stop").
You should also make sure that your installed versions satisfy the following minimum version requirements:
- gtk2 >= 2.4
- pango >= 1.1.5
- libxml2 >= 2.3.9
- freetype2 >= 2.0.9
- intltool >= 0.21
- fontconfig >= 1.0.1
- glib2 >= 2.1.3
- atk >= 1.9.1
- python >= 1.5.2
Install the above, have an eye on the minimum version requirements and you should up and running fine! Enjoy!