]> git.pld-linux.org Git - packages/dia.git/blob - dia.spec
4a9481e17be59eed5d463ade349ee3c5592d4e0e
[packages/dia.git] / dia.spec
1 Summary:        Dia - a GTK+ based diagram creation program
2 Summary(es.UTF-8):      Programa para dibujo de diagramas
3 Summary(pl.UTF-8):      Dia - program do tworzenia diagramów
4 Summary(pt_BR.UTF-8):   Programa para desenho de diagramas
5 Summary(ru.UTF-8):      Программа для рисования диаграмм
6 Summary(uk.UTF-8):      Програма для малювання діаграм
7 Summary(zh_CN.UTF-8):   基于GTK+的流程图程序
8 Name:           dia
9 Version:        0.96
10 Release:        1
11 Epoch:          1
12 License:        GPL
13 Group:          X11/Applications/Graphics
14 Source0:        ftp://ftp.gnome.org/pub/gnome/sources/dia/%{version}/%{name}-%{version}.tar.bz2
15 # Source0-md5:  0c173dd5f46672efb77952ecbd884bfd
16 Patch0:         %{name}-python.patch
17 Patch1:         %{name}-desktop.patch
18 URL:            http://www.gnome.org/projects/dia/
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 BuildRequires:  cairo-devel
22 BuildRequires:  docbook-utils
23 BuildRequires:  gettext-devel
24 BuildRequires:  gtk+2-devel >= 2:2.6.0
25 BuildRequires:  intltool >= 0.21
26 BuildRequires:  libart_lgpl-devel >= 2.0
27 BuildRequires:  libgnomeprint-devel >= 2.0.0
28 BuildRequires:  libgnomeui-devel >= 2.0.0
29 BuildRequires:  libpng-devel
30 BuildRequires:  libstdc++-devel
31 BuildRequires:  libtool >= 2:1.5
32 BuildRequires:  libxml2-devel >= 2.3.9
33 BuildRequires:  libxslt-devel
34 BuildRequires:  libxslt-progs
35 BuildRequires:  pkgconfig
36 BuildRequires:  popt-devel
37 BuildRequires:  python-PyXML
38 BuildRequires:  python-devel >= 1:2.3
39 BuildRequires:  python-pygtk-devel
40 BuildRequires:  rpm-pythonprov
41 Requires(post,postun):  desktop-file-utils
42 Requires:       python-modules >= 1:2.3
43 Requires:       python-pygtk-gtk
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %description
47 Dia is a program designed to be much like the Windows program 'Visio'.
48 It can be used to draw different kind of diagrams. In this first
49 version there is support for UML static structure diagrams (class
50 diagrams) and Network diagrams. It can currently load and save
51 diagrams to a custom fileformat and export to postscript.
52
53 %description -l es.UTF-8
54 Programa proyectado para que fuera semejante al Visio. Puede usarse
55 para realizar diagramas de diferentes tipos e incluye soporte para
56 diagramas de estructuras UML estáticas (diagramas de clase), modelos
57 de entidades y relacionamiento y diagramas de red. El programa Dia usa
58 un formato propio de archivo y también puede usar el formato .xml, así
59 como también puede exportar para PostScript(TM).
60
61 %description -l pl.UTF-8
62 Dia jest programem zaprojektowanym tak by być podobnym do programu
63 'Visio' znanego z Windows. Dia może być używany do rysowania różnego
64 rodzaju diagramów. W tej wersji znajduje się wsparcie dla diagramów o
65 statycznej strukturze UML (diagramy klasowe) i dla diagramów
66 sieciowych. Aktualnie może on ładować i zapisywać diagramy we własnym
67 formacie oraz eksportować je do postscriptu.
68
69 %description -l pt_BR.UTF-8
70 Programa projetado para ser semelhante ao Visio. Pode ser usado para
71 desenhar diferentes tipos de diagramas e inclui suporte a diagramas de
72 estruturas UML estáticas (diagramas de classe), modelo de entidades e
73 relacionamento e diagramas de rede. O Dia usa um formato próprio de
74 arquivo e pode também usar o formato .xml, bem como exportar para
75 PostScript(TM).
76
77 %description -l ru.UTF-8
78 Программа Dia разработана как альтернатива Visio для Windows(TM). Dia
79 можно использовать для рисования различных типов диаграмм, она
80 включает поддержку структурных статических диаграмм UML (диаграмм
81 классов), моделирование отношений объектов и сетевых диаграмм. Dia
82 может загружать и сохранять диаграммы в собственном формате и в
83 формате .xml а также экспортировать их в PostScript(TM).
84
85 %description -l uk.UTF-8
86 Програма Dia розроблена як альтернатива Visio для Windows(TM). Dia
87 можна використовувати для малювання різноманітних типів діаграм, вона
88 включає підтримку структурних статичних діаграм UML (діаграм класів),
89 моделювання відношень об'єктів та мережевих діаграм. Dia може
90 завантажувати та зберігати диаграми у власному форматі та форматі .xml
91 а також експортувати їх в PostScript(TM).
92
93 %prep
94 %setup -q
95 %patch0 -p1
96 %patch1 -p0
97
98 %build
99 %{__libtoolize}
100 %{__aclocal}
101 %{__autoheader}
102 %{__autoconf}
103 %{__automake}
104 %{__sed} -i -e 's|/lib/|/%{_lib}/|' configure
105 %configure \
106         --enable-gnome \
107         --with-gnomeprint \
108         --with-cairo \
109         --with-python \
110         --with-xslt-prefix=%{_libdir}
111         
112 %{__make}
113
114 %install
115 rm -rf $RPM_BUILD_ROOT
116
117 %{__make} install \
118         DESTDIR=$RPM_BUILD_ROOT \
119         desktopdir=%{_desktopdir}
120
121 rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
122
123 %find_lang %{name} --with-gnome
124
125 %clean
126 rm -rf $RPM_BUILD_ROOT
127
128 %post
129 %update_desktop_database_post
130
131 %postun
132 %update_desktop_database_postun
133
134 %files -f %{name}.lang
135 %defattr(644,root,root,755)
136 %doc AUTHORS NEWS README TODO
137 %attr(755,root,root) %{_bindir}/*
138
139 %dir %{_libdir}/dia
140 %attr(755,root,root) %{_libdir}/dia/lib*.so
141 %{_libdir}/dia/lib*.la
142 %{_docdir}/dia/*.xml
143 %dir %{_docdir}/dia
144 %dir %{_docdir}/dia/graphics
145 %{_docdir}/dia/graphics/*.png
146
147 %{_mandir}/man1/*
148
149 %{_datadir}/dia
150 %{_desktopdir}/dia.desktop
151 %{_pixmapsdir}/*
This page took 0.190552 seconds and 2 git commands to generate.