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