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