]>
Commit | Line | Data |
---|---|---|
1 | Summary: Eric4 - a full featured Python IDE | |
2 | Summary(pl.UTF-8): Eric4 - pełnowartościowe IDE dla Pythona | |
3 | Name: eric4 | |
4 | Version: 4.3.1 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: X11/Development/Tools | |
8 | Source0: http://dl.sourceforge.net/eric-ide/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: f7060154d397ca53dcc3fc43995c73b7 | |
10 | Source1: %{name}.desktop | |
11 | Patch0: %{name}-distdir.patch | |
12 | URL: http://eric-ide.python-projects.org/ | |
13 | BuildRequires: python-qscintilla2-devel >= 2.2 | |
14 | BuildRequires: rpm-pythonprov | |
15 | %pyrequires_eq python-modules | |
16 | Requires: python-qscintilla2 >= 2.2 | |
17 | Requires: python-devel-tools | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Eric4 is a full featured Python IDE that is written in PyQt4 using the | |
23 | QScintilla editor widget. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Eric4 jest pełnowartościowym IDE dla Pythona napisanym w PyQt4 i | |
27 | używającym edytora QScintilla. | |
28 | ||
29 | %package doc | |
30 | Summary: Documentation for Eric4 | |
31 | Summary(pl.UTF-8): Dodatkowa dokumentacja dla Eric4 | |
32 | Group: X11/Development/Tools | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description doc | |
36 | Documentation for Eric4. | |
37 | ||
38 | %description doc -l pl.UTF-8 | |
39 | Dodatkowa dokumentacja dla Eric4. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | %patch0 -p1 | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | python install.py -c -b %{_bindir} -d %{py_sitescriptdir} -i $RPM_BUILD_ROOT | |
49 | install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/eric4.desktop | |
50 | install -D eric/pixmaps/eric.png $RPM_BUILD_ROOT%{_pixmapsdir}/eric4.png | |
51 | ||
52 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/* | |
53 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/* | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | # NOTE: eric4 uses *.py files for it's own purposes | |
59 | # so do not remove them from package | |
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc README* THANKS | |
63 | %attr(755,root,root) %{_bindir}/* | |
64 | %{py_sitescriptdir}/eric4config.py* | |
65 | %{py_sitescriptdir}/%{name} | |
66 | %dir %{py_sitescriptdir}/%{name}plugins | |
67 | %{py_sitescriptdir}/%{name}plugins/* | |
68 | %exclude %{py_sitescriptdir}/%{name}/Documentation | |
69 | %{_desktopdir}/eric4.desktop | |
70 | %{_pixmapsdir}/eric4.png | |
71 | #%{_datadir}/qt4/qsci/api/python/* | |
72 | #%dir %{_datadir}/qt4/qsci/api/ruby | |
73 | #%{_datadir}/qt4/qsci/api/ruby/* | |
74 | ||
75 | %files doc | |
76 | %defattr(644,root,root,755) | |
77 | %dir %{py_sitescriptdir}/%{name}/Documentation | |
78 | %{py_sitescriptdir}/%{name}/Documentation/Source |