]>
Commit | Line | Data |
---|---|---|
0285db7b | 1 | # TODO: |
8f6f0e28 | 2 | # - separate packages (eg. brm, KdeQt - with R: python-PyKDE) |
0285db7b | 3 | # |
558c59c0 | 4 | %define tar_name eric |
bc4c34f7 | 5 | Summary: Eric3 is a full featured Python IDE |
8b84ae25 | 6 | Summary(pl.UTF-8): Eric3 - pełnowartościowe IDE dla Pythona |
988a594c | 7 | Name: eric3 |
d0e74194 | 8 | Version: 3.9.5 |
f089a766 | 9 | Release: 1 |
bc4c34f7 AM |
10 | License: GPL |
11 | Group: X11/Development/Tools | |
31af68a4 | 12 | Source0: http://dl.sourceforge.net/eric-ide/%{tar_name}-%{version}.tar.gz |
d0e74194 | 13 | # Source0-md5: 63d6fb3c302b603577554af62520c948 |
3762e58d | 14 | Source1: %{name}.desktop |
bc4c34f7 | 15 | URL: http://www.die-offenbachs.de/detlev/eric3.html |
b5f23851 | 16 | BuildRequires: python-PyQt >= 3.15 |
2f61230e | 17 | BuildRequires: qscintilla-devel >= 1:1.5 |
b5f23851 | 18 | BuildRequires: rpm-pythonprov |
33a3727e | 19 | %pyrequires_eq python-modules |
b5f23851 | 20 | Requires: python-PyQt >= 3.15 |
049621f0 | 21 | Requires: python-devel-tools |
b53ad4ce | 22 | Obsoletes: eric |
d28c0885 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
bc4c34f7 AM |
24 | |
25 | %description | |
262180f1 JB |
26 | Eric3 is a full featured Python IDE that is written in PyQt using the |
27 | QScintilla editor widget. | |
bc4c34f7 | 28 | |
21871da4 JR |
29 | %description -l pl.UTF-8 |
30 | Eric3 jest pełnowartościowym IDE dla Pythona napisanym w PyQt i | |
31 | używającym edytora QScintilla. | |
bc4c34f7 | 32 | |
42dad419 KK |
33 | %package doc |
34 | Summary: Documentation for Eric3 | |
8b84ae25 | 35 | Summary(pl.UTF-8): Dodatkowa dokumentacja dla Eric3 |
42dad419 | 36 | Group: X11/Development/Tools |
0eb76957 | 37 | Requires: %{name} = %{version}-%{release} |
42dad419 KK |
38 | |
39 | %description doc | |
40 | Documentation for Eric3. | |
41 | ||
21871da4 | 42 | %description doc -l pl.UTF-8 |
c5a00864 | 43 | Dodatkowa dokumentacja dla Eric3. |
42dad419 | 44 | |
bc4c34f7 | 45 | %prep |
d8432f9c | 46 | %setup -q -n %{tar_name}-%{version} |
10c6e49b | 47 | |
bc4c34f7 | 48 | %install |
262180f1 | 49 | rm -rf $RPM_BUILD_ROOT |
3762e58d | 50 | install -d $RPM_BUILD_ROOT{%{_docdir}/%{name},%{_pixmapsdir},%{_desktopdir}} |
4c467dd8 | 51 | |
70b466fa | 52 | python install.py -c -b %{_bindir} -d %{py_sitedir} -i $RPM_BUILD_ROOT |
4c467dd8 | 53 | |
10c6e49b MK |
54 | %py_comp $RPM_BUILD_ROOT%{py_sitedir}/* |
55 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/* | |
4c467dd8 | 56 | |
3762e58d | 57 | cp $RPM_BUILD_ROOT%{py_sitedir}/%{name}/icons/default/eric.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
58 | install %SOURCE1 $RPM_BUILD_ROOT%{_desktopdir} | |
262180f1 | 59 | |
bc4c34f7 AM |
60 | %clean |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
8f6f0e28 KK |
63 | # NOTE: eric3 uses *.py files for it's own purposes |
64 | # so do not remove them from package | |
65 | ||
bc4c34f7 AM |
66 | %files |
67 | %defattr(644,root,root,755) | |
9fc3900d | 68 | %doc README* THANKS |
bc4c34f7 | 69 | %attr(755,root,root) %{_bindir}/* |
10c6e49b MK |
70 | %{py_sitedir}/eric3config.py |
71 | %{py_sitedir}/sitecustomize.py | |
42dad419 KK |
72 | %{py_sitedir}/%{name} |
73 | %exclude %{py_sitedir}/%{name}/Documentation | |
74 | %{_desktopdir}/%{name}.desktop | |
75 | %{_pixmapsdir}/%{name}.png | |
0285db7b | 76 | |
42dad419 KK |
77 | %files doc |
78 | %defattr(644,root,root,755) | |
0285db7b KK |
79 | %dir %{py_sitedir}/%{name}/Documentation |
80 | %{py_sitedir}/%{name}/Documentation/mod_python.* | |
81 | %{py_sitedir}/%{name}/Documentation/Source |