]>
Commit | Line | Data |
---|---|---|
796f6711 | 1 | %define module EditObj2 |
77d189f5 | 2 | Summary: Useful tool for writing editors of all kinds |
dfb7a039 | 3 | Summary(pl.UTF-8): Narzędzie służące do tworzenia różnych edytorów |
796f6711 | 4 | Name: python-%{module} |
ef31b664 JR |
5 | Version: 0.5.1 |
6 | Release: 1 | |
796f6711 | 7 | License: GPL v2+ |
ce7d3fae | 8 | Group: Applications |
ef31b664 JR |
9 | Source0: https://pypi.python.org/packages/source/E/%{module}/%{module}-%{version}.tar.gz |
10 | # Source0-md5: fd7c0c16bb70cdf5eaa30f0e47b16e4f | |
11 | Patch0: install.patch | |
12 | URL: http://www.lesfleursdunormal.fr/static/informatique/editobj/index_en.html | |
1a580b10 | 13 | BuildRequires: python-devel |
be741682 | 14 | BuildRequires: rpm-pythonprov |
d985b344 | 15 | BuildRequires: rpmbuild(macros) >= 1.710 |
ce7d3fae | 16 | Requires: python-tkinter |
796f6711 | 17 | Obsoletes: python-EditObj |
68d42001 | 18 | BuildArch: noarch |
ce7d3fae | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | EditObj can create and display a Tkinter dialog box for editing any | |
23 | Python object (similarly to what Java call a Bean editor, but for | |
77d189f5 | 24 | Python object). EditObj is a useful tool for writing (text or |
ce7d3fae | 25 | non-text) editors of all kinds, including GUI editor and 3D editor. |
26 | ||
48d19720 JR |
27 | %description -l pl.UTF-8 |
28 | EditObj tworzy i wyświetla okno dialogowe Tkinter do edycji obiektów | |
29 | Pythona (podobnie do edytora Java Bean, tylko dla objektów Pythona). | |
1a580b10 | 30 | EditObj jest użytecznym narzędziem służącym do tworzenia różnych |
31 | edytorów (tekstowych lub nie), włącznie z edytorami GUI i 3D. | |
ce7d3fae | 32 | |
33 | %prep | |
77d189f5 | 34 | %setup -q -n %{module}-%{version} |
ef31b664 | 35 | %patch0 -p1 |
ce7d3fae | 36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
1ae08a5b | 40 | %py_install |
ce7d3fae | 41 | |
be741682 | 42 | %py_postclean |
43 | ||
ce7d3fae | 44 | %clean |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
796f6711 | 49 | %dir %{py_sitescriptdir}/editobj2 |
7613ded8 | 50 | %{py_sitescriptdir}/editobj2/*.py[co] |
796f6711 | 51 | %{py_sitescriptdir}/editobj2/icons |
1a580b10 | 52 | %if "%{py_ver}" > "2.4" |
53 | %{py_sitescriptdir}/EditObj2-*.egg-info | |
54 | %endif |