+
+#%%define snap 20030908.0723
+#%define pre pre5
+
Summary: Dia - a gtk+ based diagram creation program
Summary(es): Programa para dibujo de diagramas
Summary(pl): Dia - program do tworzenia diagramów
Summary(pt_BR): Programa para desenho de diagramas
Summary(ru): ðÒÏÇÒÁÍÍÁ ÄÌÑ ÒÉÓÏ×ÁÎÉÑ ÄÉÁÇÒÁÍÍ
Summary(uk): ðÒÏÇÒÁÍÁ ÄÌÑ ÍÁÌÀ×ÁÎÎÑ Ä¦ÁÇÒÁÍ
+Summary(zh_CN): »ùÓÚgtk+µÄÁ÷³Ìͼ³ÌÐò
Name: dia
-Version: 0.88.1
-Release: 4
+Version: 0.92.2
+Release: 2
Epoch: 1
License: GPL
Group: X11/Applications/Graphics
Vendor: James Henstridge <james@daa.com.au>
-Source0: ftp://ftp.gnome.org/pub/GNOME/stable/sources/dia/%{name}-%{version}.tar.gz
-Patch0: %{name}-automake.patch
+Source0: http://ftp.gnome.org/pub/GNOME/sources/dia/0.92/%{name}-%{version}.tar.bz2
+# Source0-md5: 2c14d023bd905e65368ee3df3248dc2a
+## this only for snapshots
+##Source0: http://www.crans.org/~chepelov/dia/snapshots/%{name}-CVS-%(echo %{snap} | tr . -).tar.gz
+## this for pre releases
+##Source0: http://ftp.gnome.org/pub/GNOME/sources/dia/%{version}/%{name}-%{version}-%{pre}.tar.bz2
+#Patch0: dia-state.patch
+Patch1: dia-am.patch
URL: http://www.lysator.liu.se/~alla/dia/dia.html
-BuildRequires: gdk-pixbuf-devel
-BuildRequires: libxml-devel
-BuildRequires: popt-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
-Requires: libxml >= 1.8.7
+BuildRequires: intltool
+BuildRequires: libgnomeui-devel
+BuildRequires: libxslt-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-%define _mandir %{_prefix}/man
-%define _sysconfdir /etc/X11/GNOME
-
%description
Dia is a program designed to be much like the Windows program 'Visio'.
It can be used to draw different kind of diagrams. In this first
%prep
%setup -q
-%patch0 -p1
+#%setup -q -n %{name}-%{version}-%{pre}
+#%patch0 -p1
+%patch1 -p1
%build
-rm -f missing
-aclocal
-autoconf
-autoheader
-automake -a -c -f
+%{__libtoolize}
+%{__aclocal}
+%{__autoheader}
+%{__autoconf}
+%{__automake}
%configure
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- Applicationsdir=%{_applnkdir}/Graphics
+ Applicationsdir=%{_desktopdir}
-gzip -9nf AUTHORS NEWS README TODO
-
-%find_lang %{name}
+%find_lang %{name} --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc *.gz
-%{_applnkdir}/Graphics/dia.desktop
+%doc AUTHORS NEWS README TODO
%attr(755,root,root) %{_bindir}/*
-#%{_sysconfdir}/CORBA/servers/*
+
%dir %{_libdir}/dia
%attr(755,root,root) %{_libdir}/dia/lib*.so
-%attr(755,root,root) %{_libdir}/dia/lib*.la
+%{_libdir}/dia/lib*.la
+
+%{_mandir}/man1/*
+
%{_datadir}/dia
-%{_pixmapsdir}/*
%{_datadir}/mime-info/*
-%{_mandir}/man1/*
+%{_desktopdir}/dia.desktop
+%{_pixmapsdir}/*