]>
Commit | Line | Data |
---|---|---|
0e7be590 | 1 | %define module pydev |
c6f98dad | 2 | %define _ver 1.2.5 |
e0444228 | 3 | %define _src_name org.python.pydev.feature |
0e7be590 KK |
4 | %define _src_ver %(echo %{_ver}|tr . _) |
5 | Summary: Python development environment for Eclipse | |
3690c1ea | 6 | Summary(pl.UTF-8): Środowisko programistyczne Pythona dla Eclipse |
0e7be590 KK |
7 | Name: eclipse-%{module} |
8 | Version: %{_ver} | |
2bc97002 | 9 | Release: 1 |
0e7be590 KK |
10 | License: CPL |
11 | Group: Development/Tools | |
e0444228 | 12 | Source0: http://dl.sourceforge.net/pydev/%{_src_name}-%{_src_ver}.zip |
c6f98dad | 13 | # Source0-md5: e2ca769825fa133dfc34c2a13bf1c06a |
0e7be590 | 14 | URL: http://pydev.sourceforge.net/ |
e0444228 | 15 | BuildRequires: rpm-pythonprov |
0e7be590 | 16 | BuildRequires: unzip |
ee90d0fc | 17 | Requires: eclipse >= 3.2 |
0e7be590 | 18 | Requires: python |
8fec0e12 | 19 | BuildArch: noarch |
0e7be590 KK |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
8fec0e12 | 22 | %define _eclipsedir %{_datadir}/eclipse |
23 | ||
0e7be590 KK |
24 | %description |
25 | PyDev is a plugin for Eclipse for editing, running and debugging | |
26 | Python scripts. | |
27 | ||
3690c1ea JR |
28 | %description -l pl.UTF-8 |
29 | PyDev jest wtyczką dla Eclipse służącą do edycji, uruchamiania | |
30 | i odpluskwiania skryptów Pythona. | |
0e7be590 KK |
31 | |
32 | %prep | |
33 | %setup -q -c -T | |
cde9850f | 34 | unzip -qq %{SOURCE0} -x *.db |
0e7be590 KK |
35 | |
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
2bc97002 | 38 | install -d $RPM_BUILD_ROOT%{_eclipsedir}/{features,plugins} |
e0444228 KK |
39 | cp -rf eclipse/features/* $RPM_BUILD_ROOT%{_eclipsedir}/features |
40 | cp -rf eclipse/plugins/* $RPM_BUILD_ROOT%{_eclipsedir}/plugins | |
0e7be590 KK |
41 | |
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
2bc97002 KK |
47 | %{_eclipsedir}/features/org.python.pydev* |
48 | %{_eclipsedir}/plugins/org.python.pydev* | |
8fec0e12 | 49 | |
e62fc23a | 50 | %triggerpostun -- %{name} < 0.9.5-0.3 |
0888d18e | 51 | %banner %{name} -e << EOF |
8fec0e12 | 52 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
53 | !!! !!! | |
54 | !!! WARNING!!! !!! | |
55 | !!! !!! | |
56 | !!! An user manual intervention is required after eclipse-pydev !!! | |
57 | !!! instalation. To get this plugin working you have to add !!! | |
58 | !!! /usr/share/eclipse directory as Extension Location. Click !!! | |
59 | !!! from eclipse menu Help->Software Updates->Manage Configuration !!! | |
60 | !!! ->Add an Extension Location and choose /usr/share/eclipse . !!! | |
61 | !!! !!! | |
62 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
63 | EOF |