X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=dia.spec;h=3431e52a4db8064157548f28d502b55cf0b2e499;hb=de74c1092baea2082cee452f2a43ba8aa514fbd7;hp=54ec6d2108d80fec4f729920a89399da7ef50ea9;hpb=550d5022016a6dd594c122294cb78f7c3d84a321;p=packages%2Fdia.git diff --git a/dia.spec b/dia.spec index 54ec6d2..3431e52 100644 --- a/dia.spec +++ b/dia.spec @@ -1,83 +1,152 @@ -Summary: Dia - a gtk+ based diagram creation program -Summary(pl): Dia - program do tworzenie diagramów + +#%%define snap 20030908.0723 +%define pre pre3 + +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.41 -Release: 3 -Copyright: GPL +Version: 0.94 +Release: 8 +Epoch: 1 +License: GPL Group: X11/Applications/Graphics -Group(pl): X11/Aplikacje/Grafika -Vendor: Alexander Larsson -Source0: http://www.lysator.liu.se/~alla/dia/files/%{name}-%{version}.tar.gz -Source1: dia.wmconfig -URL: http://www.lysator.liu.se/~alla/dia/dia.html -BuildPrereq: gtk+-devel >= 1.2.0 -BuildPrereq: XFree86-devel -BuildPrereq: libxml-devel -BuildPrereq: zlib-devel -BuildPrereq: imlib-devel -BuildPrereq: gettext -Requires: gtk+ >= 1.2.0 -BuildRoot: /tmp/%{name}-%{version}-root +Vendor: James Henstridge +Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.94/%{name}-%{version}.tar.bz2 +# Source0-md5: 63584224912dab49fed8d2cf87ea2d85 +## this only for snapshots +##Source0: http://www.crans.org/~chepelov/dia/snapshots/%{name}-CVS-%(echo %{snap} | tr . -).tar.gz +#Patch0: dia-state.patch +#Patch1: %{name}-home_etc.patch +Patch2: %{name}-locale-names.patch +Patch3: %{name}-python.patch +Patch4: %{name}-desktop.patch +Patch5: %{name}-gcc4.patch +URL: http://www.gnome.org/projects/dia/ +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gettext-devel +BuildRequires: howl-devel >= 0.9.10 +BuildRequires: intltool >= 0.21 +BuildRequires: libart_lgpl-devel +BuildRequires: libgnomeui-devel >= 2.0.0 +BuildRequires: libpng-devel +BuildRequires: libtool +BuildRequires: libxml2-devel >= 2.3.9 +BuildRequires: libxslt-devel +BuildRequires: popt-devel +BuildRequires: python-devel >= 1:2.3 +BuildRequires: python-pygtk-devel +Requires(post,postun): desktop-file-utils +Requires: python-modules >= 2.3 +Requires: python-pygtk-gtk +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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 version there -is support for UML static structure diagrams (class diagrams) and Network -diagrams. It can currently load and save diagrams to a custom fileformat and -export to postscript. +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 +version there is support for UML static structure diagrams (class +diagrams) and Network diagrams. It can currently load and save +diagrams to a custom fileformat and export to postscript. + +%description -l es +Programa proyectado para que fuera semejante al Visio. Puede usarse +para realizar diagramas de diferentes tipos e incluye soporte para +diagramas de estructuras UML estáticas (diagramas de clase), modelos +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 pl -Dia jest programem zaprojektowanym tak by byæ podobnym do programu 'Visio' -znanego z Windows. Dia mo¿e byæ u¿ywany do rysowania ró¿nego rodzaju diagramów. -W tej wersji znajduje siê wsparcie dla diagramów o statycznej strukturze UML -(diagramy klasowe) i dla diagramów sieciowych. Aktualnie mo¿e on ³adowaæ -i zapisywaæ diagramy we w³asnym formacie oraz eksportowaæ je do postscriptu. +Dia jest programem zaprojektowanym tak by byæ podobnym do programu +'Visio' znanego z Windows. Dia mo¿e byæ u¿ywany do rysowania ró¿nego +rodzaju diagramów. W tej wersji znajduje siê wsparcie dla diagramów o +statycznej strukturze UML (diagramy klasowe) i dla diagramów +sieciowych. Aktualnie mo¿e on ³adowaæ i zapisywaæ diagramy we w³asnym +formacie oraz eksportowaæ je do postscriptu. + +%description -l pt_BR +Programa projetado para ser semelhante ao Visio. Pode ser usado para +desenhar diferentes tipos de diagramas e inclui suporte a diagramas de +estruturas UML estáticas (diagramas de classe), modelo de entidades e +relacionamento e diagramas de rede. O Dia usa um formato próprio de +arquivo e pode também usar o formato .xml, bem como exportar para +PostScript(TM). + +%description -l ru +ðÒÏÇÒÁÍÍÁ Dia ÒÁÚÒÁÂÏÔÁÎÁ ËÁË ÁÌØÔÅÒÎÁÔÉ×Á Visio ÄÌÑ Windows(TM). Dia +ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÄÌÑ ÒÉÓÏ×ÁÎÉÑ ÒÁÚÌÉÞÎÙÈ ÔÉÐÏ× ÄÉÁÇÒÁÍÍ, ÏÎÁ +×ËÌÀÞÁÅÔ ÐÏÄÄÅÒÖËÕ ÓÔÒÕËÔÕÒÎÙÈ ÓÔÁÔÉÞÅÓËÉÈ ÄÉÁÇÒÁÍÍ UML (ÄÉÁÇÒÁÍÍ +ËÌÁÓÓÏ×), ÍÏÄÅÌÉÒÏ×ÁÎÉÅ ÏÔÎÏÛÅÎÉÊ ÏÂßÅËÔÏ× É ÓÅÔÅ×ÙÈ ÄÉÁÇÒÁÍÍ. Dia +ÍÏÖÅÔ ÚÁÇÒÕÖÁÔØ É ÓÏÈÒÁÎÑÔØ ÄÉÁÇÒÁÍÍÙ × ÓÏÂÓÔ×ÅÎÎÏÍ ÆÏÒÍÁÔÅ É × +ÆÏÒÍÁÔÅ .xml Á ÔÁËÖÅ ÜËÓÐÏÒÔÉÒÏ×ÁÔØ ÉÈ × PostScript(TM). + +%description -l uk +ðÒÏÇÒÁÍÁ Dia ÒÏÚÒÏÂÌÅÎÁ ÑË ÁÌØÔÅÒÎÁÔÉ×Á Visio ÄÌÑ Windows(TM). Dia +ÍÏÖÎÁ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÄÌÑ ÍÁÌÀ×ÁÎÎÑ Ò¦ÚÎÏÍÁΦÔÎÉÈ ÔÉÐ¦× Ä¦ÁÇÒÁÍ, ×ÏÎÁ +×ËÌÀÞÁ¤ ЦÄÔÒÉÍËÕ ÓÔÒÕËÔÕÒÎÉÈ ÓÔÁÔÉÞÎÉÈ Ä¦ÁÇÒÁÍ UML (ĦÁÇÒÁÍ ËÌÁÓ¦×), +ÍÏÄÅÌÀ×ÁÎÎÑ ×¦ÄÎÏÛÅÎØ ÏÂ'¤ËÔ¦× ÔÁ ÍÅÒÅÖÅ×ÉÈ Ä¦ÁÇÒÁÍ. Dia ÍÏÖÅ +ÚÁ×ÁÎÔÁÖÕ×ÁÔÉ ÔÁ ÚÂÅÒ¦ÇÁÔÉ ÄÉÁÇÒÁÍÉ Õ ×ÌÁÓÎÏÍÕ ÆÏÒÍÁÔ¦ ÔÁ ÆÏÒÍÁÔ¦ .xml +Á ÔÁËÏÖ ÅËÓÐÏÒÔÕ×ÁÔÉ §È × PostScript(TM). %prep %setup -q +#%patch0 -p1 +#%patch1 -p1 - obsoleted? +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 + +mv po/{no,nb}.po %build -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ -./configure %{_target} \ - --prefix=/usr/X11R6 -make +%{__libtoolize} +%{__aclocal} +%{__autoheader} +%{__autoconf} +%{__automake} +%configure \ + --enable-gnome \ + --with-python + +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/etc/X11/wmconfig -make install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + Applicationsdir=%{_desktopdir} -install %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/wmconfig/%{name} +rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info -strip $RPM_BUILD_ROOT/usr/X11R6/{bin/*,lib/dia/lib*.so.*.*} +%find_lang %{name} --with-gnome %clean rm -rf $RPM_BUILD_ROOT -%files +%post +%update_desktop_database_post + +%postun +%update_desktop_database_postun + +%files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS NEWS README TODO -%attr(755,root,root) /usr/X11R6/bin/dia -%dir /usr/X11R6/lib/dia -%attr(755,root,root) /usr/X11R6/lib/dia/lib*.so* -%attr(755,root,root) /usr/X11R6/lib/dia/lib*.la - -%changelog -* Wed Apr 21 1999 Piotr Czerwiñski - [0.41-2] -- recompiled on rpm 3. - -* Thu Mar 11 1999 Tomasz K³oczko - [0.30-1] -- changed way passing $RPM_OPT_FLAGS, -- updated requires (gtk+ = 1.2.0), -- "make install" with using DESTDIR. - -* Sat Sep 26 1998 Arkadiusz Mi¶kiewicz - [0.20-2] -- added pl translation. - -* Sun Aug 30 1998 Tomasz K³oczko - [0.20-1] -- first release in rpm package. +%attr(755,root,root) %{_bindir}/* + +%dir %{_libdir}/dia +%attr(755,root,root) %{_libdir}/dia/lib*.so +%{_libdir}/dia/lib*.la + +%{_mandir}/man1/* + +%{_datadir}/dia +%{_desktopdir}/dia.desktop +%{_pixmapsdir}/*