blob: 4790aa2f27234a8e8194ef89c0f9e9c7663a93b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
%define module EditObj2
Summary: Useful tool for writing editors of all kinds
Summary(pl.UTF-8): Narzędzie służące do tworzenia różnych edytorów
Name: python-%{module}
Version: 0.3
Release: 1
License: GPL v2+
Group: Applications
Source0: http://download.gna.org/songwrite/%{module}-%{version}.tar.gz
# Source0-md5: 8df0397b86e63b1ece1da4ffb5143053
URL: http://home.gna.org/oomadness/en/editobj/
BuildRequires: python-devel
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
Requires: python-tkinter
Obsoletes: python-EditObj
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
EditObj can create and display a Tkinter dialog box for editing any
Python object (similarly to what Java call a Bean editor, but for
Python object). EditObj is a useful tool for writing (text or
non-text) editors of all kinds, including GUI editor and 3D editor.
%description -l pl.UTF-8
EditObj tworzy i wyświetla okno dialogowe Tkinter do edycji obiektów
Pythona (podobnie do edytora Java Bean, tylko dla objektów Pythona).
EditObj jest użytecznym narzędziem służącym do tworzenia różnych
edytorów (tekstowych lub nie), włącznie z edytorami GUI i 3D.
%prep
%setup -q -n %{module}-%{version}
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install \
--root=$RPM_BUILD_ROOT
%py_postclean
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%dir %{py_sitescriptdir}/editobj2
%{py_sitescriptdir}/editobj2/*.py[co]
%{py_sitescriptdir}/editobj2/icons
%if "%{py_ver}" > "2.4"
%{py_sitescriptdir}/EditObj2-*.egg-info
%endif
|