]> git.pld-linux.org Git - packages/gaphor.git/blob - gaphor.spec
06718292b383b01c3b1f981e251dd01c3a9b6d31
[packages/gaphor.git] / gaphor.spec
1 Summary:        UML modeling environment written in Python
2 Summary(pl.UTF-8):      Środowisko modelowania UML oparte o Pythona
3 Name:           gaphor
4 Version:        0.8.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/Engineering
8 Source0:        http://dl.sourceforge.net/gaphor/%{name}-%{version}.tar.gz
9 # Source0-md5:  60768b5ff8163b90cba6e936144644cc
10 Source1:        %{name}.desktop
11 URL:            http://gaphor.sourceforge.net/
12 BuildRequires:  xorg-xserver-Xvfb
13 BuildRequires:  python-devel
14 BuildRequires:  python-diacanvas >= 0.14.4
15 BuildRequires:  python-pygtk-gtk >= 2.8.4
16 %pyrequires_eq  python-libs
17 Requires:       python-diacanvas >= 0.14.4
18 Requires:       python-pygtk-gtk >= 2.8.4
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Gaphor is an easy to use modeling environment. This means that you are
24 able to create nice UML diagrams for documentation and to assist you
25 with design decisions. Gaphor will help you create your applications.
26
27 %description -l pl.UTF-8
28 Gaphor jest łatwym w użyciu środowiskiem do projektowania UML. To
29 znaczy ułatwia tworzenie diagramów UML dla dokumentacji oraz pomaga w
30 podejmowaniu decyzji. Gaphor ułatwia pracę przy tworzeniu aplikacji.
31
32 %prep
33 %setup -q
34
35 %build
36 Xvfb :69 -nolisten tcp -ac -terminate >/dev/null 2>&1 &
37 xvfb_pid=${!}
38 DISPLAY=:69 \
39         python setup.py build
40 kill ${xvfb_pid} >/dev/null 2>&1 || :
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}}
45
46 Xvfb :69 -nolisten tcp -ac -terminate >/dev/null 2>&1 &
47 xvfb_pid=${!}
48 DISPLAY=:69 \
49         python setup.py install \
50                 --optimize=2 \
51                 --root=$RPM_BUILD_ROOT
52 kill ${xvfb_pid} >/dev/null 2>&1 || :
53
54 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
55
56 %py_postclean
57
58 %find_lang %{name}
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files -f %{name}.lang
64 %defattr(644,root,root,755)
65 %doc README PKG-INFO NEWS TODO AUTHORS
66 %attr(755,root,root) %{_bindir}/*
67 %{py_sitescriptdir}/%{name}
68 %{py_sitescriptdir}/zope
69 %{_datadir}/%{name}
70 %{_desktopdir}/%{name}.desktop
This page took 0.342203 seconds and 3 git commands to generate.