]>
Commit | Line | Data |
---|---|---|
5c2f16b8 | 1 | # TODO: Switch to python3 |
e2cab009 MK |
2 | |
3 | %define module eric6 | |
4 | Summary: Eric6 - a full featured Python IDE | |
5 | Summary(pl.UTF-8): Eric6 - pełnowartościowe IDE dla Pythona | |
6 | # Name must match the python module/package name (as on pypi or in 'import' statement) | |
7 | Name: eric6 | |
8 | Version: 6.1.8 | |
15c587b5 | 9 | Release: 0.6 |
e2cab009 MK |
10 | License: GPL v3 |
11 | Group: Libraries/Python | |
5c2f16b8 | 12 | Source0: https://sourceforge.net/projects/eric-ide/files/eric6/stable/%{version}/eric6-%{version}.tar.gz |
e2cab009 MK |
13 | # Source0-md5: a070c679fbc93fab4f3b718a5875e5d0 |
14 | URL: http://eric-ide.python-projects.org/index.html | |
15 | BuildRequires: rpm-pythonprov | |
16 | # for the py_build, py_install macros | |
17 | BuildRequires: rpmbuild(macros) >= 1.714 | |
e2cab009 MK |
18 | BuildRequires: python-modules |
19 | BuildRequires: python-setuptools | |
20 | # NOTE: As for 6.1.8 eric6 still tries to import PyQt5 while having PyQt4 leading to crash | |
21 | # http://die-offenbachs.homelinux.org:48888/issues/issue204 | |
22 | # for --pyqt=4 | |
e2cab009 | 23 | # BuildRequires: python-PyQt4-qscintilla2 |
5c2f16b8 | 24 | # BuildRequires: python-PyQt4-uic |
e2cab009 MK |
25 | # for --pyqt=5 |
26 | BuildRequires: python-PyQt5-qscintilla2 | |
27 | BuildRequires: python-PyQt5-uic | |
e2cab009 MK |
28 | Requires: python-modules |
29 | BuildArch: noarch | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
5c2f16b8 MK |
33 | Eric is a Python IDE written using PyQt and QScintilla. It provides |
34 | various features such as any number of open editors, an integrated | |
35 | (remote) debugger, project management facilities, unit test, | |
36 | refactoring and much more. | |
e2cab009 MK |
37 | |
38 | %description -l pl.UTF-8 | |
5c2f16b8 MK |
39 | Eric jest pythonowym graficznym środowiskiem programistycznym |
40 | używającym PyQt i QScintilla. | |
e2cab009 MK |
41 | |
42 | %prep | |
43 | %setup -q | |
44 | ||
45 | %build | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | python install.py -z -c -b %{_bindir} -d %{py_sitescriptdir} -i $RPM_BUILD_ROOT --pyqt=5 | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
e2cab009 MK |
54 | %files |
55 | %defattr(644,root,root,755) | |
56 | %doc README.rst | |
57 | %{py_sitescriptdir}/%{module} | |
58 | %attr(755,root,root) %{_bindir}/eric6 | |
59 | %attr(755,root,root) %{_bindir}/eric6_* | |
60 | # for --pyqt=4 | |
5c2f16b8 MK |
61 | # %{_datadir}/qt4/qsci/api/qss/ |
62 | # %{_datadir}/qt4/qsci/api/ruby/ | |
63 | # %{_datadir}/qt4/qsci/api/python/eric6.* | |
64 | # %{_datadir}/qt4/qsci/api/python/zope-*.api | |
e2cab009 MK |
65 | |
66 | # for --pyqt=5 | |
5c2f16b8 MK |
67 | %{_datadir}/qt5/qsci/api/qss/ |
68 | %{_datadir}/qt5/qsci/api/ruby/ | |
69 | %{_datadir}/qt5/qsci/api/python/eric6.* | |
70 | %{_datadir}/qt5/qsci/api/python/zope-*.api | |
e2cab009 | 71 | |
5c2f16b8 MK |
72 | %{_pixmapsdir}/eric*.png |
73 | %{_desktopdir}/eric6.desktop | |
74 | %{_desktopdir}/eric6_webbrowser.desktop | |
75 | %{_datadir}/appdata/eric6.appdata.xml | |
76 | # file %{_datadir}/qt4/qsci/api/ruby/Ruby-1.8.7.api from install of eric6-6.1.8-0.1.noarch conflicts with file from package eric4-4.5.24-3.noarch | |
77 | %{py_sitescriptdir}/eric6config.py | |
78 | %{py_sitescriptdir}/eric6plugins |