%define name dia %define ver 0.86 %define prefix /usr Summary: A gtk+ based diagram creation program. Name: %name Version: %ver Release: 1 Copyright: GPL Group: Applications/ Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/dia/%{name}-%{ver}.tar.gz URL: http://www.lysator.liu.se/~alla/dia/dia.html Packager: Francis J. Lacoste BuildRoot: /var/tmp/%{name}-%{ver}-root Requires: libxml >= 1.8.5 %description Dia is a GNU program designed to be much like the Windows program 'Visio'. It can be used to draw different kind of diagrams. It can be used to draw a variety of diagram types, including UML, Network, flowchart and others. The native file format for Dia is XML (optionally gzip compressed). It has print support, and can export to a number of formats such as EPS, SVG, CGM and PNG. %changelog * Sun Aug 6 2000 James Henstridge - update description as it was out of date, and increment version number. * Sun Sep 5 1999 James Henstridge - added $(prefix)/share/dia to files list. * Thu Apr 29 1999 Enrico Scholz - Made %setup quiet - Enabled build from cvs - Removed superfluous mkdirs - using DESTDIR and install-strip * Fri Aug 28 1998 Francis J. Lacoste - First RPM release. %prep %setup -q %build # this is to make sure all translations are included in the build unset LINGUAS || : if [ -x ./configure ]; then CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=%{prefix} --enable-gnome else CFLAGS=$RPM_OPT_FLAGS ./autogen.sh --prefix=%{prefix} --enable-gnome fi make %install rm -fr $RPM_BUILD_ROOT make prefix=$RPM_BUILD_ROOT%{prefix} install-strip %clean rm -fr $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README TODO NEWS INSTALL COPYING ChangeLog AUTHORS doc %{prefix}/bin/dia %{prefix}/lib/dia %{prefix}/man/man1/dia.1 %{prefix}/share/dia %{prefix}/share/gnome/apps/Applications/dia.desktop %{prefix}/share/locale/*/*/* %{prefix}/share/mime-info/* %{prefix}/share/pixmaps/*