]>
Commit | Line | Data |
---|---|---|
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 | # | |
7 | %define _ver_major 3.3 | |
8 | %define _buildid 200706251500 | |
9 | # | |
10 | Summary: Eclipse - an open extensible IDE | |
11 | Summary(pl.UTF-8): Eclipse - otwarte, rozszerzalne środowisko programistyczne | |
12 | Name: eclipse | |
13 | Version: %{_ver_major} | |
14 | Release: 0.1 | |
15 | License: EPL v1.0 | |
16 | Group: Development/Tools | |
17 | Source0: http://download.eclipse.org/eclipse/downloads/drops/R-%{_ver_major}-%{_buildid}/%{name}-sourceBuild-srcIncluded-%{_ver_major}.zip | |
18 | # Source0-md5: 91c688221479986dbdd7d1a0771f04cc | |
19 | Source1: %{name}.desktop | |
20 | URL: http://www.eclipse.org/ | |
21 | BuildRequires: ant >= 1.6.1 | |
22 | BuildRequires: ant-apache-regexp | |
23 | BuildRequires: jdk >= 1.6 | |
24 | BuildRequires: pkgconfig | |
25 | BuildRequires: rpm-pythonprov | |
26 | BuildRequires: rpmbuild(macros) >= 1.300 | |
27 | BuildRequires: unzip | |
28 | BuildRequires: zip | |
29 | Requires: ant | |
30 | Requires: jdk >= 1.4 | |
31 | Obsoletes: eclipse-SDK | |
32 | ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664} | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %define _eclipse_arch %(echo %{_target_cpu} | sed 's/i.86\\|athlon\\|pentium/x86/;s/amd64/x86_64/') | |
36 | %define no_install_post_chrpath 1 | |
37 | ||
38 | # list of script capabilities (regexps) not to be used in Provides | |
39 | %define _noautoprov libcairo.so.2 | |
40 | ||
41 | %description | |
42 | Eclipse is a kind of universal tool platform - an open extensible IDE | |
43 | for anything and nothing in particular. | |
44 | ||
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. | |
49 | ||
50 | %prep | |
51 | %setup -q -c | |
52 | ||
53 | %build | |
54 | unset CLASSPATH || : | |
55 | export JAVA_HOME=%{java_home} | |
56 | ||
57 | ./build -os linux -ws gtk -arch %{_eclipse_arch} -target compile | |
58 | ||
59 | export JAVA_INC="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux" | |
60 | ||
61 | %{__make} -C plugins/org.eclipse.core.filesystem/natives/unix/linux/ \ | |
62 | OPT_FLAGS="%{rpmcflags} $JAVA_INC" \ | |
63 | CFLAGS="%{rpmcflags} $JAVA_INC" \ | |
64 | LDFLAGS="%{rpmldflags}" | |
65 | ||
66 | cd plugins/org.eclipse.update.core.linux/src | |
67 | %{__cc} %{rpmcflags} -fPIC %{rpmldflags} -I. $JAVA_INC update.c -o libupdate.so -shared | |
68 | cd - | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_libdir}/%{name}} | |
73 | # place for arch independent plugins | |
74 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{features,plugins} | |
75 | ||
76 | unset JAVA_HOME || : | |
77 | export JAVA_HOME=%{java_home} | |
78 | ./build -os linux -ws gtk -arch %{_eclipse_arch} -target install | |
79 | ||
80 | tar xfz result/linux-gtk-%{_eclipse_arch}-sdk.tar.gz -C $RPM_BUILD_ROOT%{_libdir} | |
81 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
82 | ||
83 | install plugins/org.eclipse.core.filesystem/natives/unix/linux/lib*.so $RPM_BUILD_ROOT%{_libdir}/%{name} | |
84 | install plugins/org.eclipse.update.core.linux/src/lib*.so $RPM_BUILD_ROOT%{_libdir}/%{name} | |
85 | ||
86 | #cp -a baseLocation/plugins/* $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins | |
87 | ||
88 | #wrapper | |
89 | install -d $RPM_BUILD_ROOT%{_bindir} | |
90 | cat > $RPM_BUILD_ROOT%{_bindir}/eclipse << 'EOF' | |
91 | #!/bin/sh | |
92 | exec %{_libdir}/%{name}/eclipse ${1:+"$@"} | |
93 | EOF | |
94 | ||
95 | :> $RPM_BUILD_ROOT%{_datadir}/%{name}/.eclipseextension | |
96 | ||
97 | if [ ! -f "$RPM_BUILD_ROOT%{_libdir}/%{name}/icon.xpm" ]; then | |
98 | install features/org.eclipse.equinox.executable/bin/gtk/linux/x86/icon.xpm $RPM_BUILD_ROOT%{_libdir}/%{name}/icon.xpm | |
99 | fi | |
100 | install -D features/org.eclipse.equinox.executable/bin/gtk/linux/x86/icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/eclipse-icon.xpm | |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_bindir}/eclipse | |
108 | %attr(755,root,root) %{_libdir}/%{name}/eclipse | |
109 | %attr(755,root,root) %{_libdir}/%{name}/lib*.so | |
110 | %{_desktopdir}/eclipse.desktop | |
111 | %{_pixmapsdir}/eclipse-icon.xpm | |
112 | %dir %{_libdir}/%{name} | |
113 | %{_libdir}/%{name}/.eclipseproduct | |
114 | %{_libdir}/%{name}/configuration | |
115 | %{_libdir}/%{name}/eclipse.ini | |
116 | %{_libdir}/%{name}/epl-v10.html | |
117 | %{_libdir}/%{name}/icon.xpm | |
118 | %{_libdir}/%{name}/notice.html | |
119 | %{_libdir}/%{name}/readme | |
120 | #%{_libdir}/%{name}/startup.jar | |
121 | %{_libdir}/%{name}/about.html | |
122 | #%{_libdir}/%{name}/about_files | |
123 | %dir %{_libdir}/%{name}/features | |
124 | %{_libdir}/%{name}/features/org.eclipse.jdt_*.*.* | |
125 | %{_libdir}/%{name}/features/org.eclipse.jdt.source_*.*.* | |
126 | %{_libdir}/%{name}/features/org.eclipse.pde_*.*.* | |
127 | %{_libdir}/%{name}/features/org.eclipse.pde.source_*.*.* | |
128 | %{_libdir}/%{name}/features/org.eclipse.platform_*.*.* | |
129 | %{_libdir}/%{name}/features/org.eclipse.platform.source_*.*.* | |
130 | %{_libdir}/%{name}/features/org.eclipse.rcp_*.*.* | |
131 | %{_libdir}/%{name}/features/org.eclipse.rcp.source_*.*.* | |
132 | %{_libdir}/%{name}/features/org.eclipse.sdk_*.*.* | |
133 | %dir %{_libdir}/%{name}/plugins | |
134 | %{_libdir}/%{name}/plugins/com.ibm.icu_*.*.* | |
135 | #%{_libdir}/%{name}/plugins/com.ibm.icu.source_*.*.* | |
136 | #%{_libdir}/%{name}/plugins/com.ibm.icu.base_*.*.* | |
137 | #%{_libdir}/%{name}/plugins/com.ibm.icu.base.source_*.*.* | |
138 | %{_libdir}/%{name}/plugins/com.jcraft.jsch_*.*.* | |
139 | %{_libdir}/%{name}/plugins/org.apache.ant_*.*.* | |
140 | %{_libdir}/%{name}/plugins/org.apache.lucene_*.*.* | |
141 | %{_libdir}/%{name}/plugins/org.eclipse.ant.core_*.*.* | |
142 | %{_libdir}/%{name}/plugins/org.eclipse.ant.ui_*.*.* | |
143 | %{_libdir}/%{name}/plugins/org.eclipse.compare_*.*.* | |
144 | %{_libdir}/%{name}/plugins/org.eclipse.core.boot_*.*.* | |
145 | %{_libdir}/%{name}/plugins/org.eclipse.core.commands_*.*.* | |
146 | %{_libdir}/%{name}/plugins/org.eclipse.core.contenttype_*.*.* | |
147 | %{_libdir}/%{name}/plugins/org.eclipse.core.expressions_*.*.* | |
148 | %{_libdir}/%{name}/plugins/org.eclipse.core.filebuffers_*.*.* | |
149 | %{_libdir}/%{name}/plugins/org.eclipse.core.filesystem_*.*.* | |
150 | %{_libdir}/%{name}/plugins/org.eclipse.core.filesystem.linux.*_*.*.* | |
151 | %{_libdir}/%{name}/plugins/org.eclipse.core.jobs_*.*.* | |
152 | %{_libdir}/%{name}/plugins/org.eclipse.core.resources_*.*.* | |
153 | %{_libdir}/%{name}/plugins/org.eclipse.core.resources.compatibility_*.*.* | |
154 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime_*.*.* | |
155 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility_*.*.* | |
156 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility.auth_*.*.* | |
157 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility.registry_*.*.* | |
158 | %{_libdir}/%{name}/plugins/org.eclipse.core.variables_*.*.* | |
159 | %{_libdir}/%{name}/plugins/org.eclipse.debug.core_*.*.* | |
160 | %{_libdir}/%{name}/plugins/org.eclipse.debug.ui_*.*.* | |
161 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.app_*.*.* | |
162 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.common_*.*.* | |
163 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.launcher_*.*.* | |
164 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.launcher.gtk.linux.%{_eclipse_arch}_*.*.* | |
165 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.preferences_*.*.* | |
166 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.registry_*.*.* | |
167 | %{_libdir}/%{name}/plugins/org.eclipse.help_*.*.* | |
168 | %{_libdir}/%{name}/plugins/org.eclipse.help.appserver_*.*.* | |
169 | %{_libdir}/%{name}/plugins/org.eclipse.help.base_*.*.* | |
170 | %{_libdir}/%{name}/plugins/org.eclipse.help.ui_*.*.* | |
171 | %{_libdir}/%{name}/plugins/org.eclipse.help.webapp_*.*.* | |
172 | %{_libdir}/%{name}/plugins/org.eclipse.jdt_*.*.* | |
173 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.apt.*.*.* | |
174 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.core_*.*.* | |
175 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.core.manipulation*.*.* | |
176 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.debug_*.*.* | |
177 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.debug.ui_*.*.* | |
178 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.doc.isv_*.*.* | |
179 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.doc.user_*.*.* | |
180 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit_*.*.* | |
181 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit.runtime_*.*.* | |
182 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit4.runtime_*.*.* | |
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_*.*.* | |
187 | %{_libdir}/%{name}/plugins/org.eclipse.jface.databinding_*.*.* | |
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_*.*.* | |
197 | %{_libdir}/%{name}/plugins/org.eclipse.pde.doc.user_*.*.* | |
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_*.*.* | |
203 | %{_libdir}/%{name}/plugins/org.eclipse.platform.doc.isv_*.*.* | |
204 | %{_libdir}/%{name}/plugins/org.eclipse.platform.doc.user_*.*.* | |
205 | %{_libdir}/%{name}/plugins/org.eclipse.platform.source_*.*.* | |
206 | %{_libdir}/%{name}/plugins/org.eclipse.platform.source.linux.gtk.%{_eclipse_arch}_*.*.* | |
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}_*.*.* | |
210 | %{_libdir}/%{name}/plugins/org.eclipse.sdk_*.*.* | |
211 | %{_libdir}/%{name}/plugins/org.eclipse.swt.gtk.linux.%{_eclipse_arch}_*.*.*.jar | |
212 | %{_libdir}/%{name}/plugins/org.eclipse.search_*.*.* | |
213 | %{_libdir}/%{name}/plugins/org.eclipse.swt_*.*.* | |
214 | %{_libdir}/%{name}/plugins/org.eclipse.ui.browser_*.*.* | |
215 | %{_libdir}/%{name}/plugins/org.eclipse.ui.navigator_*.*.* | |
216 | %{_libdir}/%{name}/plugins/org.eclipse.ui.navigator.resources_*.*.* | |
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_*.*.* | |
233 | %{_libdir}/%{name}/plugins/org.eclipse.ui.intro.universal_*.*.* | |
234 | %{_libdir}/%{name}/plugins/org.eclipse.ui.presentations.r21_*.*.* | |
235 | %{_libdir}/%{name}/plugins/org.eclipse.ui.views_*.*.* | |
236 | %{_libdir}/%{name}/plugins/org.eclipse.ui.views.properties.tabbed_*.*.* | |
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_*.*.* | |
242 | %{_libdir}/%{name}/plugins/org.eclipse.update.core.linux_*.*.*.jar | |
243 | %{_libdir}/%{name}/plugins/org.eclipse.update.scheduler_*.*.* | |
244 | %{_libdir}/%{name}/plugins/org.eclipse.update.ui_*.*.* | |
245 | %{_libdir}/%{name}/plugins/org.junit_*.*.* | |
246 | %{_libdir}/%{name}/plugins/org.junit4_*.*.* | |
247 | ||
248 | %dir %{_datadir}/%{name} | |
249 | %dir %{_datadir}/%{name}/features | |
250 | %dir %{_datadir}/%{name}/plugins | |
251 | %{_datadir}/%{name}/.eclipseextension |