]> git.pld-linux.org Git - packages/dia.git/blobdiff - dia.spec
- additional shapes
[packages/dia.git] / dia.spec
index f1d1d212df71e6043718f12262ae588993df0fcd..338d6315c545a77604dba97e4102fc373b056a4c 100644 (file)
--- a/dia.spec
+++ b/dia.spec
@@ -1,31 +1,53 @@
 Summary:       Dia - a GTK+ based diagram creation program
 Summary(es.UTF-8):     Programa para dibujo de diagramas
+Summary(hu.UTF-8):     Dia - gtk alapú diagram-készítő program
 Summary(pl.UTF-8):     Dia - program do tworzenia diagramów
 Summary(pt_BR.UTF-8):  Programa para desenho de diagramas
 Summary(ru.UTF-8):     Программа для рисования диаграмм
 Summary(uk.UTF-8):     Програма для малювання діаграм
 Summary(zh_CN.UTF-8):  基于GTK+的流程图程序
 Name:          dia
-%define                _ver    0.96
-%define                _extraver       pre3
-Version:       %{_ver}.%{_extraver}
-Release:       0.5
+Version:       0.96.1
+Release:       6
 Epoch:         1
-License:       GPL
+License:       GPL v2+
 Group:         X11/Applications/Graphics
-Source0:       ftp://ftp.gnome.org/pub/gnome/sources/dia/%{_ver}/%{name}-%{_ver}-%{_extraver}.tar.bz2
-# Source0-md5: abcb045a4f0c88d9d91ca2dbcdc7be37
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/dia/0.96/%{name}-%{version}.tar.bz2
+# Source0-md5: 7b81b22baa2df55efe4845865dddc7b6
+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
+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
+Source6:       http://dia-installer.de/shapes/electronic/electronic.zip
+# Source6-md5: ddeca421f725af66be41f14ab170b2b8
+Source7:       http://dia-installer.de/shapes/lst/lst.zip
+# Source7-md5: 84d216457305ae53eb1635f6abaa4368
+Source8:       http://dia-installer.de/shapes/optics/optics.zip
+# Source8-md5: 6c2bb1ffa6229b832e2d24fb1fd927c9
+Source9:       http://dia-installer.de/shapes/Racks/Racks.zip
+# Source9-md5: 5ca48da8899b28ed266e21ba522d1e64
+Source10:      http://dia-installer.de/shapes/renewable_energy/renewable_energy.zip
+# Source10-md5:        13e7e934ab87b924101faaf56414ad00
+Source11:      http://dia-installer.de/shapes/scenegraph/scenegraph.zip
+# Source11-md5:        2bca8efa9bae10c13968ebacc9f1a00b
 Patch0:                %{name}-python.patch
 Patch1:                %{name}-desktop.patch
-Patch2:                %{name}-gcc4.patch
 URL:           http://www.gnome.org/projects/dia/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
+BuildRequires: cairo-devel
 BuildRequires: docbook-utils
 BuildRequires: gettext-devel
 BuildRequires: gtk+2-devel >= 2:2.6.0
 BuildRequires: intltool >= 0.21
 BuildRequires: libart_lgpl-devel >= 2.0
+BuildRequires: libgnomeprint-devel >= 2.0.0
 BuildRequires: libgnomeui-devel >= 2.0.0
 BuildRequires: libpng-devel
 BuildRequires: libstdc++-devel
@@ -42,6 +64,8 @@ BuildRequires:        rpm-pythonprov
 Requires(post,postun): desktop-file-utils
 Requires:      python-modules >= 1:2.3
 Requires:      python-pygtk-gtk
+# sr@Latn vs. sr@latin
+Conflicts:     glibc-misc < 6:2.7
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -59,6 +83,13 @@ de entidades y relacionamiento y diagramas de red. El programa Dia usa
 un formato propio de archivo y también puede usar el formato .xml, así
 como también puede exportar para PostScript(TM).
 
+%description -l hu.UTF-8
+Dia egy program, amely a windows-os 'Visio' programhoz hasonló.
+Különféle fajta diagramokat rajzolhatsz. Ebben a verzióban már van
+lehetőség UML struktúra diagramok (osztálydiagramok) és Network
+diagramok készítésére. Többféle fájlformátumot ismer, és képes
+postscript-be exportálni.
+
 %description -l pl.UTF-8
 Dia jest programem zaprojektowanym tak by być podobnym do programu
 'Visio' znanego z Windows. Dia może być używany do rysowania różnego
@@ -92,20 +123,27 @@ PostScript(TM).
 а також експортувати їх в PostScript(TM).
 
 %prep
-%setup -q -n %{name}-%{_ver}-%{_extraver}
+%setup -q
 %patch0 -p1
 %patch1 -p0
-#%patch2 -p1 -- needs check
+
+%{__sed} -i -e s#sr\@Latn#sr\@latin# configure.in
+mv -f po/sr\@{Latn,latin}.po
 
 %build
+%{__intltoolize}
 %{__libtoolize}
 %{__aclocal}
 %{__autoheader}
 %{__autoconf}
 %{__automake}
+%{__sed} -i -e 's|/lib/|/%{_lib}/|' configure
 %configure \
        --enable-gnome \
-       --with-python
+       --with-gnomeprint \
+       --with-cairo \
+       --with-python \
+       --with-xslt-prefix=%{_libdir}
 
 %{__make}
 
@@ -120,6 +158,21 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
 
 %find_lang %{name} --with-gnome
 
+unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE1}
+unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE2}
+unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE3}
+unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE4}
+unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE5}
+unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE6}
+unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE7}
+unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE8}
+unzip -n -d $RPM_BUILD_ROOT%{_datadir}/%{name} %{SOURCE9}
+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
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.035234 seconds and 4 git commands to generate.