]> git.pld-linux.org Git - packages/gaphor.git/blob - gaphor.spec
38d4a077a36ecc552889897b12670b5fe52c653d
[packages/gaphor.git] / gaphor.spec
1 Summary:        UML modeling environment written in Python
2 Summary(pl):    ¦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.3
15 BuildRequires:  python-pygtk-gtk >= 2.8.4
16 %pyrequires_eq  python-libs
17 Requires:       python-diacanvas >= 0.14.3
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
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.078394 seconds and 3 git commands to generate.