Summary(uk.UTF-8): Програма для малювання діаграм
Summary(zh_CN.UTF-8): 基于GTK+的流程图程序
Name: dia
-Version: 0.97
-Release: 3
+Version: 0.97.2
+Release: 8
Epoch: 1
License: GPL v2+
Group: X11/Applications/Graphics
-Source0: http://ftp.gnome.org/pub/GNOME/sources/dia/0.97/%{name}-%{version}.tar.bz2
-# Source0-md5: 3d11f9aaa5a4923f0a5533962c87bdfb
+Source0: http://ftp.gnome.org/pub/gnome/sources/dia/0.97/%{name}-%{version}.tar.xz
+# Source0-md5: 1e1180a513fb567709b09bc19f12105e
Source1: http://dia-installer.de/shapes/central_data_processing/central_data_processing.zip
# Source1-md5: 103865b35609d2a0f8a0e034c49cf130
Source2: http://dia-installer.de/shapes/chemistry_lab/chemistry_lab.zip
-# Source2-md5: 988e4c992f0ca4452c9eb8e224b73adf
+# Source2-md5: ad752d7dfb733b6a9f8c54e05685223c
Source3: http://dia-installer.de/shapes/cmos/cmos.zip
# Source3-md5: 65f319c9c0c15d0691f9e97fd034c005
Source4: http://dia-installer.de/shapes/digital/digital.zip
# Source4-md5: 8eef8562b618254fc5ebd4ac3f4f15ed
Source5: http://dia-installer.de/shapes/edpc/edpc.zip
-# Source5-md5: 3cc6f6eb886715ea7ce1a09bd3a46a5e
+# Source5-md5: 6d62a586419b5ed616cc2a67f80a2e3d
Source6: http://dia-installer.de/shapes/electronic/electronic.zip
# Source6-md5: ddeca421f725af66be41f14ab170b2b8
Source7: http://dia-installer.de/shapes/lst/lst.zip
Source11: http://dia-installer.de/shapes/scenegraph/scenegraph.zip
# Source11-md5: 2bca8efa9bae10c13968ebacc9f1a00b
Patch0: %{name}-python.patch
-URL: http://www.gnome.org/projects/dia/
+Patch1: %{name}-wmf-cast.patch
+Patch2: %{name}-glib2.patch
+Patch3: %{name}-glib.patch
+URL: https://live.gnome.org/Dia
BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: cairo-devel >= 1.0.0
BuildRequires: docbook-style-xsl
-BuildRequires: docbook-utils
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
BuildRequires: gtk+2-devel >= 2:2.6.0
BuildRequires: intltool >= 0.35.0
+BuildRequires: libEMF-devel
BuildRequires: libart_lgpl-devel >= 2.0
BuildRequires: libgnomeui-devel >= 2.0.0
BuildRequires: libpng-devel
BuildRequires: libxslt-progs
BuildRequires: pkgconfig
BuildRequires: python-devel >= 1:2.3
-BuildRequires: python-pygtk-devel
+BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(find_lang) >= 1.23
BuildRequires: rpmbuild(macros) >= 1.311
-BuildRequires: rpm-pythonprov
BuildRequires: scrollkeeper
BuildRequires: sed >= 4.0
BuildRequires: unzip
BuildRequires: zlib-devel
-%ifnarch %{x8664}
-BuildRequires: libEMF-devel
-%else
-BuildConflicts: libEMF-devel
-%endif
Requires(post,postun): desktop-file-utils
-Requires(post,postun): gtk+2
+Requires(post,postun): gtk-update-icon-cache
Requires: python-modules >= 1:2.3
Requires: python-pygtk-gtk
# sr@Latn vs. sr@latin
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%{__sed} -i -e s#sr@Latn#sr@latin# po/LINGUAS
mv -f po/sr@{Latn,latin}.po
unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE10}
unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE11}
-# Conflicts with Assorted/square.shape
-sed -i "s@Square@Square2@" $RPM_BUILD_ROOT%{_datadir}/%{name}/shapes/chemistry_lab/square.shape
-
%{__rm} $RPM_BUILD_ROOT%{_libdir}/dia/*.la
%{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/mime-info