]>
Commit | Line | Data |
---|---|---|
8735ef21 MŁ |
1 | # TODO: |
2 | # - separate SWT (there are separate tarballs at http://www.eclipse.org/swt/) | |
3 | # and add proper provides, obsoletes, conflicts etc. where needed. | |
4 | # This will make building such things like Azureus possible without having | |
5 | # whole Eclipse suite installed. | |
6 | # | |
fe262ca0 AM |
7 | %define _ver_major 3.2.2 |
8 | %define _buildid 200702121330 | |
151c941e | 9 | # |
69216044 | 10 | Summary: Eclipse - an open extensible IDE |
bd003119 | 11 | Summary(pl.UTF-8): Eclipse - otwarte, rozszerzalne środowisko programistyczne |
0525a2f6 | 12 | Name: eclipse |
69216044 | 13 | Version: %{_ver_major} |
fe262ca0 | 14 | Release: 1 |
dcc07087 | 15 | License: EPL v1.0 |
22af25e3 | 16 | Group: Development/Tools |
c5e12690 | 17 | Source0: http://download.eclipse.org/eclipse/downloads/drops/R-%{_ver_major}-%{_buildid}/%{name}-sourceBuild-srcIncluded-%{_ver_major}.zip |
fe262ca0 | 18 | # Source0-md5: 5d1b9f6a146ffc59191e513083a6ec86 |
31f1a10a | 19 | Source1: %{name}.desktop |
dfdb264a | 20 | Patch0: %{name}-core_resources-makefile.patch |
dbeb098e | 21 | Patch1: %{name}-build.patch |
d0fe9857 | 22 | URL: http://www.eclipse.org/ |
d760f282 | 23 | BuildRequires: ant >= 1.6.1 |
4c914576 | 24 | BuildRequires: jdk >= 1.4 |
59566f52 | 25 | BuildRequires: pkgconfig |
089ae4b7 | 26 | BuildRequires: rpm-pythonprov |
053b902e | 27 | BuildRequires: rpmbuild(macros) >= 1.300 |
0525a2f6 | 28 | BuildRequires: unzip |
20ebcf7c | 29 | BuildRequires: zip |
55cf9bc9 | 30 | Requires: ant |
74c2f627 | 31 | Requires: jdk >= 1.4 |
1134810b | 32 | Obsoletes: eclipse-SDK |
3e55babc | 33 | ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664} |
2b804e44 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
ef01f847 | 36 | %define _eclipse_arch %(echo %{_target_cpu} | sed 's/i.86\\|athlon\\|pentium/x86/;s/amd64/x86_64/') |
82c93865 | 37 | %define no_install_post_chrpath 1 |
82c93865 | 38 | |
2b804e44 | 39 | %description |
1134810b JB |
40 | Eclipse is a kind of universal tool platform - an open extensible IDE |
41 | for anything and nothing in particular. | |
2b804e44 | 42 | |
81f2b6f3 JR |
43 | %description -l pl.UTF-8 |
44 | Eclipse to rodzaj uniwersalnej platformy narzędziowej - otwarte, | |
45 | rozszerzalne IDE (zintegrowane środowisko programistyczne) do | |
46 | wszystkiego i niczego w szczególności. | |
2b804e44 | 47 | |
48 | %prep | |
a04ac78e | 49 | %setup -q -c |
dfdb264a | 50 | %patch0 -p0 |
dbeb098e | 51 | %patch1 -p0 |
2b804e44 | 52 | |
53 | %build | |
051e7ef3 | 54 | unset CLASSPATH || : |
9edd9930 | 55 | export JAVA_HOME=%{java_home} |
3c64d1e0 | 56 | |
631eb7f6 | 57 | ./build -os linux -ws gtk -arch %{_eclipse_arch} -target compile -java5home %{_libdir}/java |
3c64d1e0 | 58 | |
3c64d1e0 PS |
59 | export JAVA_INC="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux" |
60 | ||
d0308528 AM |
61 | %{__make} -C plugins/org.eclipse.core.filesystem/natives/unix/linux/ \ |
62 | CFLAGS="%{rpmcflags} $JAVA_INC" \ | |
63 | LDFLAGS="%{rpmldflags}" | |
05b9dd8e PS |
64 | |
65 | cd plugins/org.eclipse.update.core.linux/src | |
07051078 | 66 | %{__cc} %{rpmcflags} -fPIC %{rpmldflags} -I. $JAVA_INC update.c -o libupdate.so -shared |
05b9dd8e | 67 | cd - |
69216044 | 68 | |
2b804e44 | 69 | %install |
70 | rm -rf $RPM_BUILD_ROOT | |
d6fcec86 | 71 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_libdir}/%{name}} |
20db4ab6 | 72 | # place for arch independent plugins |
73 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{features,plugins} | |
2b804e44 | 74 | |
9edd9930 JK |
75 | unset JAVA_HOME || : |
76 | export JAVA_HOME=%{java_home} | |
dbeb098e | 77 | ./build -os linux -ws gtk -arch %{_eclipse_arch} -target install -java5home %{_libdir}/java |
2b804e44 | 78 | |
dfdb264a | 79 | tar xfz result/linux-gtk-%{_eclipse_arch}-sdk.tar.gz -C $RPM_BUILD_ROOT%{_libdir} |
22af25e3 | 80 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
2b804e44 | 81 | |
d0308528 AM |
82 | install plugins/org.eclipse.core.filesystem/natives/unix/linux/lib*.so $RPM_BUILD_ROOT%{_libdir}/%{name} |
83 | install plugins/org.eclipse.update.core.linux/src/lib*.so $RPM_BUILD_ROOT%{_libdir}/%{name} | |
84 | ||
dbeb098e AM |
85 | cp -a baseLocation/plugins/* $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins |
86 | ||
2b804e44 | 87 | #wrapper |
88 | install -d $RPM_BUILD_ROOT%{_bindir} | |
1a1ff8f2 | 89 | cat > $RPM_BUILD_ROOT%{_bindir}/eclipse << 'EOF' |
fa1ae53e ER |
90 | #!/bin/sh |
91 | exec %{_libdir}/%{name}/eclipse ${1:+"$@"} | |
2b804e44 | 92 | EOF |
93 | ||
20db4ab6 | 94 | :> $RPM_BUILD_ROOT%{_datadir}/%{name}/.eclipseextension |
95 | ||
9ebbcddd AM |
96 | if [ ! -f "$RPM_BUILD_ROOT%{_libdir}/%{name}/icon.xpm" ]; then |
97 | install features/org.eclipse.platform.launchers/bin/gtk/linux/x86/icon.xpm $RPM_BUILD_ROOT%{_libdir}/%{name}/icon.xpm | |
98 | fi | |
ecfc8104 | 99 | install -D features/org.eclipse.platform.launchers/bin/gtk/linux/x86/icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/eclipse-icon.xpm |
9ebbcddd | 100 | |
2b804e44 | 101 | %clean |
da03ba7f | 102 | rm -rf $RPM_BUILD_ROOT |
2b804e44 | 103 | |
104 | %files | |
105 | %defattr(644,root,root,755) | |
2b804e44 | 106 | %attr(755,root,root) %{_bindir}/eclipse |
d6fcec86 | 107 | %attr(755,root,root) %{_libdir}/%{name}/eclipse |
dbeb098e | 108 | %attr(755,root,root) %{_libdir}/%{name}/lib*.so |
f4a571c1 | 109 | %{_desktopdir}/eclipse.desktop |
ecfc8104 | 110 | %{_pixmapsdir}/eclipse-icon.xpm |
d6fcec86 PS |
111 | %dir %{_libdir}/%{name} |
112 | %{_libdir}/%{name}/.eclipseproduct | |
113 | %{_libdir}/%{name}/configuration | |
dfdb264a | 114 | %{_libdir}/%{name}/eclipse.ini |
115 | %{_libdir}/%{name}/epl-v10.html | |
d6fcec86 PS |
116 | %{_libdir}/%{name}/icon.xpm |
117 | %{_libdir}/%{name}/notice.html | |
118 | %{_libdir}/%{name}/readme | |
119 | %{_libdir}/%{name}/startup.jar | |
dbeb098e | 120 | %{_libdir}/%{name}/about.html |
dbbad0c5 | 121 | #%{_libdir}/%{name}/about_files |
d6fcec86 PS |
122 | %dir %{_libdir}/%{name}/features |
123 | %{_libdir}/%{name}/features/org.eclipse.jdt_*.*.* | |
124 | %{_libdir}/%{name}/features/org.eclipse.jdt.source_*.*.* | |
125 | %{_libdir}/%{name}/features/org.eclipse.pde_*.*.* | |
126 | %{_libdir}/%{name}/features/org.eclipse.pde.source_*.*.* | |
127 | %{_libdir}/%{name}/features/org.eclipse.platform_*.*.* | |
128 | %{_libdir}/%{name}/features/org.eclipse.platform.source_*.*.* | |
dfdb264a | 129 | %{_libdir}/%{name}/features/org.eclipse.rcp_*.*.* |
130 | %{_libdir}/%{name}/features/org.eclipse.rcp.source_*.*.* | |
d6fcec86 | 131 | %{_libdir}/%{name}/features/org.eclipse.sdk_*.*.* |
d6fcec86 | 132 | %dir %{_libdir}/%{name}/plugins |
f5281fab AM |
133 | %{_libdir}/%{name}/plugins/com.ibm.icu_*.*.* |
134 | %{_libdir}/%{name}/plugins/com.ibm.icu.source_*.*.* | |
dbbad0c5 AM |
135 | %{_libdir}/%{name}/plugins/com.ibm.icu.base_*.*.* |
136 | %{_libdir}/%{name}/plugins/com.ibm.icu.base.source_*.*.* | |
f5281fab | 137 | %{_libdir}/%{name}/plugins/com.jcraft.jsch_*.*.* |
d6fcec86 PS |
138 | %{_libdir}/%{name}/plugins/org.apache.ant_*.*.* |
139 | %{_libdir}/%{name}/plugins/org.apache.lucene_*.*.* | |
140 | %{_libdir}/%{name}/plugins/org.eclipse.ant.core_*.*.* | |
141 | %{_libdir}/%{name}/plugins/org.eclipse.ant.ui_*.*.* | |
142 | %{_libdir}/%{name}/plugins/org.eclipse.compare_*.*.* | |
143 | %{_libdir}/%{name}/plugins/org.eclipse.core.boot_*.*.* | |
82c93865 | 144 | %{_libdir}/%{name}/plugins/org.eclipse.core.commands_*.*.* |
dbeb098e | 145 | %{_libdir}/%{name}/plugins/org.eclipse.core.contenttype_*.*.* |
d6fcec86 PS |
146 | %{_libdir}/%{name}/plugins/org.eclipse.core.expressions_*.*.* |
147 | %{_libdir}/%{name}/plugins/org.eclipse.core.filebuffers_*.*.* | |
dbeb098e AM |
148 | %{_libdir}/%{name}/plugins/org.eclipse.core.filesystem_*.*.* |
149 | %{_libdir}/%{name}/plugins/org.eclipse.core.filesystem.linux.*_*.*.* | |
150 | %{_libdir}/%{name}/plugins/org.eclipse.core.jobs_*.*.* | |
d6fcec86 | 151 | %{_libdir}/%{name}/plugins/org.eclipse.core.resources_*.*.* |
82c93865 | 152 | %{_libdir}/%{name}/plugins/org.eclipse.core.resources.compatibility_*.*.* |
d6fcec86 PS |
153 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime_*.*.* |
154 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility_*.*.* | |
dbeb098e AM |
155 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility.auth_*.*.* |
156 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility.registry_*.*.* | |
d6fcec86 PS |
157 | %{_libdir}/%{name}/plugins/org.eclipse.core.variables_*.*.* |
158 | %{_libdir}/%{name}/plugins/org.eclipse.debug.core_*.*.* | |
159 | %{_libdir}/%{name}/plugins/org.eclipse.debug.ui_*.*.* | |
dbeb098e AM |
160 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.common_*.*.* |
161 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.preferences_*.*.* | |
162 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.registry_*.*.* | |
d6fcec86 PS |
163 | %{_libdir}/%{name}/plugins/org.eclipse.help_*.*.* |
164 | %{_libdir}/%{name}/plugins/org.eclipse.help.appserver_*.*.* | |
165 | %{_libdir}/%{name}/plugins/org.eclipse.help.base_*.*.* | |
d6fcec86 PS |
166 | %{_libdir}/%{name}/plugins/org.eclipse.help.ui_*.*.* |
167 | %{_libdir}/%{name}/plugins/org.eclipse.help.webapp_*.*.* | |
168 | %{_libdir}/%{name}/plugins/org.eclipse.jdt_*.*.* | |
fe262ca0 | 169 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.apt.*.*.* |
d6fcec86 | 170 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.core_*.*.* |
dbeb098e | 171 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.core.manipulation*.*.* |
d6fcec86 PS |
172 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.debug_*.*.* |
173 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.debug.ui_*.*.* | |
dbbad0c5 AM |
174 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.doc.isv_*.*.* |
175 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.doc.user_*.*.* | |
d6fcec86 PS |
176 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit_*.*.* |
177 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit.runtime_*.*.* | |
fe262ca0 | 178 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit4.runtime_*.*.* |
d6fcec86 PS |
179 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.launching_*.*.* |
180 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.source_*.*.* | |
181 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.ui_*.*.* | |
182 | %{_libdir}/%{name}/plugins/org.eclipse.jface_*.*.* | |
dbeb098e | 183 | %{_libdir}/%{name}/plugins/org.eclipse.jface.databinding_*.*.* |
d6fcec86 PS |
184 | %{_libdir}/%{name}/plugins/org.eclipse.jface.text_*.*.* |
185 | %{_libdir}/%{name}/plugins/org.eclipse.ltk.core.refactoring_*.*.* | |
186 | %{_libdir}/%{name}/plugins/org.eclipse.ltk.ui.refactoring_*.*.* | |
187 | %{_libdir}/%{name}/plugins/org.eclipse.osgi_*.*.* | |
188 | %{_libdir}/%{name}/plugins/org.eclipse.osgi.services_*.*.* | |
189 | %{_libdir}/%{name}/plugins/org.eclipse.osgi.util_*.*.* | |
190 | %{_libdir}/%{name}/plugins/org.eclipse.pde_*.*.* | |
191 | %{_libdir}/%{name}/plugins/org.eclipse.pde.build_*.*.* | |
192 | %{_libdir}/%{name}/plugins/org.eclipse.pde.core_*.*.* | |
dbbad0c5 | 193 | %{_libdir}/%{name}/plugins/org.eclipse.pde.doc.user_*.*.* |
d6fcec86 PS |
194 | %{_libdir}/%{name}/plugins/org.eclipse.pde.junit.runtime_*.*.* |
195 | %{_libdir}/%{name}/plugins/org.eclipse.pde.runtime_*.*.* | |
196 | %{_libdir}/%{name}/plugins/org.eclipse.pde.source_*.*.* | |
197 | %{_libdir}/%{name}/plugins/org.eclipse.pde.ui_*.*.* | |
198 | %{_libdir}/%{name}/plugins/org.eclipse.platform_*.*.* | |
dbbad0c5 AM |
199 | %{_libdir}/%{name}/plugins/org.eclipse.platform.doc.isv_*.*.* |
200 | %{_libdir}/%{name}/plugins/org.eclipse.platform.doc.user_*.*.* | |
d6fcec86 PS |
201 | %{_libdir}/%{name}/plugins/org.eclipse.platform.source_*.*.* |
202 | %{_libdir}/%{name}/plugins/org.eclipse.platform.source.linux.gtk.%{_eclipse_arch}_*.*.* | |
dfdb264a | 203 | %{_libdir}/%{name}/plugins/org.eclipse.rcp_*.*.* |
204 | %{_libdir}/%{name}/plugins/org.eclipse.rcp.source_*.*.* | |
205 | %{_libdir}/%{name}/plugins/org.eclipse.rcp.source.linux.gtk.%{_eclipse_arch}_*.*.* | |
d6fcec86 | 206 | %{_libdir}/%{name}/plugins/org.eclipse.sdk_*.*.* |
dfdb264a | 207 | %{_libdir}/%{name}/plugins/org.eclipse.swt.gtk.linux.%{_eclipse_arch}_*.*.*.jar |
d6fcec86 PS |
208 | %{_libdir}/%{name}/plugins/org.eclipse.search_*.*.* |
209 | %{_libdir}/%{name}/plugins/org.eclipse.swt_*.*.* | |
82c93865 | 210 | %{_libdir}/%{name}/plugins/org.eclipse.ui.browser_*.*.* |
dbeb098e AM |
211 | %{_libdir}/%{name}/plugins/org.eclipse.ui.navigator_*.*.* |
212 | %{_libdir}/%{name}/plugins/org.eclipse.ui.navigator.resources_*.*.* | |
d6fcec86 PS |
213 | %{_libdir}/%{name}/plugins/org.eclipse.team.core_*.*.* |
214 | %{_libdir}/%{name}/plugins/org.eclipse.team.cvs.core_*.*.* | |
215 | %{_libdir}/%{name}/plugins/org.eclipse.team.cvs.ssh2_*.*.* | |
216 | %{_libdir}/%{name}/plugins/org.eclipse.team.cvs.ssh_*.*.* | |
217 | %{_libdir}/%{name}/plugins/org.eclipse.team.cvs.ui_*.*.* | |
218 | %{_libdir}/%{name}/plugins/org.eclipse.team.ui_*.*.* | |
219 | %{_libdir}/%{name}/plugins/org.eclipse.text_*.*.* | |
220 | %{_libdir}/%{name}/plugins/org.eclipse.tomcat_*.*.* | |
221 | %{_libdir}/%{name}/plugins/org.eclipse.ui_*.*.* | |
222 | %{_libdir}/%{name}/plugins/org.eclipse.ui.cheatsheets_*.*.* | |
223 | %{_libdir}/%{name}/plugins/org.eclipse.ui.console_*.*.* | |
224 | %{_libdir}/%{name}/plugins/org.eclipse.ui.editors_*.*.* | |
225 | %{_libdir}/%{name}/plugins/org.eclipse.ui.externaltools_*.*.* | |
226 | %{_libdir}/%{name}/plugins/org.eclipse.ui.forms_*.*.* | |
227 | %{_libdir}/%{name}/plugins/org.eclipse.ui.ide_*.*.* | |
228 | %{_libdir}/%{name}/plugins/org.eclipse.ui.intro_*.*.* | |
dbeb098e | 229 | %{_libdir}/%{name}/plugins/org.eclipse.ui.intro.universal_*.*.* |
d6fcec86 PS |
230 | %{_libdir}/%{name}/plugins/org.eclipse.ui.presentations.r21_*.*.* |
231 | %{_libdir}/%{name}/plugins/org.eclipse.ui.views_*.*.* | |
dbeb098e | 232 | %{_libdir}/%{name}/plugins/org.eclipse.ui.views.properties.tabbed_*.*.* |
d6fcec86 PS |
233 | %{_libdir}/%{name}/plugins/org.eclipse.ui.workbench_*.*.* |
234 | %{_libdir}/%{name}/plugins/org.eclipse.ui.workbench.compatibility_*.*.* | |
235 | %{_libdir}/%{name}/plugins/org.eclipse.ui.workbench.texteditor_*.*.* | |
236 | %{_libdir}/%{name}/plugins/org.eclipse.update.configurator_*.*.* | |
237 | %{_libdir}/%{name}/plugins/org.eclipse.update.core_*.*.* | |
dfdb264a | 238 | %{_libdir}/%{name}/plugins/org.eclipse.update.core.linux_*.*.*.jar |
d6fcec86 PS |
239 | %{_libdir}/%{name}/plugins/org.eclipse.update.scheduler_*.*.* |
240 | %{_libdir}/%{name}/plugins/org.eclipse.update.ui_*.*.* | |
241 | %{_libdir}/%{name}/plugins/org.junit_*.*.* | |
fe262ca0 | 242 | %{_libdir}/%{name}/plugins/org.junit4_*.*.* |
20db4ab6 | 243 | |
244 | %dir %{_datadir}/%{name} | |
245 | %dir %{_datadir}/%{name}/features | |
246 | %dir %{_datadir}/%{name}/plugins | |
247 | %{_datadir}/%{name}/.eclipseextension |