]>
Commit | Line | Data |
---|---|---|
8735ef21 | 1 | # TODO: |
e6bf5c90 | 2 | # - make use of eclipse-swt package |
1b345fea | 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. | |
e6bf5c90 | 6 | # - there are unpackaged source files, -devel? |
8735ef21 | 7 | # |
72bb041d ER |
8 | %define ver_major 3.3.1.1 |
9 | %define buildid 200710231652 | |
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 |
72bb041d ER |
14 | Version: %{ver_major} |
15 | Release: 1 | |
dcc07087 | 16 | License: EPL v1.0 |
22af25e3 | 17 | Group: Development/Tools |
72bb041d | 18 | Source0: http://download.eclipse.org/eclipse/downloads/drops/R-%{ver_major}-%{buildid}/%{name}-sourceBuild-srcIncluded-%{ver_major}.zip |
bfe04644 | 19 | # Source0-md5: 593b56fce7d1f1f799e87365cafefbef |
31f1a10a | 20 | Source1: %{name}.desktop |
d0fe9857 | 21 | URL: http://www.eclipse.org/ |
d760f282 | 22 | BuildRequires: ant >= 1.6.1 |
82c698c6 | 23 | BuildRequires: ant-apache-regexp |
9384d675 | 24 | BuildRequires: jdk >= 1.6 |
59566f52 | 25 | BuildRequires: pkgconfig |
089ae4b7 | 26 | BuildRequires: rpm-pythonprov |
053b902e | 27 | BuildRequires: rpmbuild(macros) >= 1.300 |
1b345fea | 28 | BuildRequires: sed |
0525a2f6 | 29 | BuildRequires: unzip |
20ebcf7c | 30 | BuildRequires: zip |
55cf9bc9 | 31 | Requires: ant |
74c2f627 | 32 | Requires: jdk >= 1.4 |
1134810b | 33 | Obsoletes: eclipse-SDK |
3e55babc | 34 | ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664} |
2b804e44 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
72bb041d | 37 | %define eclipse_arch %(echo %{_target_cpu} | sed 's/i.86\\|athlon\\|pentium/x86/;s/amd64/x86_64/') |
82c93865 | 38 | %define no_install_post_chrpath 1 |
82c93865 | 39 | |
79a6ce50 ER |
40 | # list of script capabilities (regexps) not to be used in Provides |
41 | %define _noautoprov libcairo.so.2 | |
42 | ||
2b804e44 | 43 | %description |
1134810b JB |
44 | Eclipse is a kind of universal tool platform - an open extensible IDE |
45 | for anything and nothing in particular. | |
2b804e44 | 46 | |
81f2b6f3 JR |
47 | %description -l pl.UTF-8 |
48 | Eclipse to rodzaj uniwersalnej platformy narzędziowej - otwarte, | |
49 | rozszerzalne IDE (zintegrowane środowisko programistyczne) do | |
50 | wszystkiego i niczego w szczególności. | |
2b804e44 | 51 | |
52 | %prep | |
a04ac78e | 53 | %setup -q -c |
2b804e44 | 54 | |
7ad395d2 | 55 | # Build Id - it's visible in couple places in gui |
e6bf5c90 | 56 | # TODO: just patch build.xml not every single file |
7ad395d2 | 57 | find . '(' -name 'config.ini' -o -name 'about.mappings' ')' -type f -print \ |
58 | | xargs %{__sed} -i -e 's/=@build@/=PLD %{name}-%{version}-%{release}/' | |
1b345fea | 59 | |
2b804e44 | 60 | %build |
051e7ef3 | 61 | unset CLASSPATH || : |
9edd9930 | 62 | export JAVA_HOME=%{java_home} |
3c64d1e0 | 63 | |
72bb041d | 64 | ./build -os linux -ws gtk -arch %{eclipse_arch} -target compile |
3c64d1e0 | 65 | |
3c64d1e0 PS |
66 | export JAVA_INC="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux" |
67 | ||
d0308528 | 68 | %{__make} -C plugins/org.eclipse.core.filesystem/natives/unix/linux/ \ |
9384d675 | 69 | OPT_FLAGS="%{rpmcflags} $JAVA_INC" \ |
d0308528 AM |
70 | CFLAGS="%{rpmcflags} $JAVA_INC" \ |
71 | LDFLAGS="%{rpmldflags}" | |
05b9dd8e PS |
72 | |
73 | cd plugins/org.eclipse.update.core.linux/src | |
07051078 | 74 | %{__cc} %{rpmcflags} -fPIC %{rpmldflags} -I. $JAVA_INC update.c -o libupdate.so -shared |
05b9dd8e | 75 | cd - |
69216044 | 76 | |
2b804e44 | 77 | %install |
78 | rm -rf $RPM_BUILD_ROOT | |
d6fcec86 | 79 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_libdir}/%{name}} |
20db4ab6 | 80 | # place for arch independent plugins |
81 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{features,plugins} | |
2b804e44 | 82 | |
9edd9930 JK |
83 | unset JAVA_HOME || : |
84 | export JAVA_HOME=%{java_home} | |
72bb041d | 85 | ./build -os linux -ws gtk -arch %{eclipse_arch} -target install |
2b804e44 | 86 | |
72bb041d | 87 | tar xfz result/linux-gtk-%{eclipse_arch}-sdk.tar.gz -C $RPM_BUILD_ROOT%{_libdir} |
22af25e3 | 88 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
2b804e44 | 89 | |
d0308528 AM |
90 | install plugins/org.eclipse.core.filesystem/natives/unix/linux/lib*.so $RPM_BUILD_ROOT%{_libdir}/%{name} |
91 | install plugins/org.eclipse.update.core.linux/src/lib*.so $RPM_BUILD_ROOT%{_libdir}/%{name} | |
92 | ||
2b804e44 | 93 | #wrapper |
94 | install -d $RPM_BUILD_ROOT%{_bindir} | |
1a1ff8f2 | 95 | cat > $RPM_BUILD_ROOT%{_bindir}/eclipse << 'EOF' |
fa1ae53e ER |
96 | #!/bin/sh |
97 | exec %{_libdir}/%{name}/eclipse ${1:+"$@"} | |
2b804e44 | 98 | EOF |
99 | ||
20db4ab6 | 100 | :> $RPM_BUILD_ROOT%{_datadir}/%{name}/.eclipseextension |
101 | ||
9ebbcddd | 102 | if [ ! -f "$RPM_BUILD_ROOT%{_libdir}/%{name}/icon.xpm" ]; then |
82c698c6 | 103 | install features/org.eclipse.equinox.executable/bin/gtk/linux/x86/icon.xpm $RPM_BUILD_ROOT%{_libdir}/%{name}/icon.xpm |
9ebbcddd | 104 | fi |
82c698c6 | 105 | install -D features/org.eclipse.equinox.executable/bin/gtk/linux/x86/icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/eclipse-icon.xpm |
9ebbcddd | 106 | |
2b804e44 | 107 | %clean |
da03ba7f | 108 | rm -rf $RPM_BUILD_ROOT |
2b804e44 | 109 | |
110 | %files | |
111 | %defattr(644,root,root,755) | |
2b804e44 | 112 | %attr(755,root,root) %{_bindir}/eclipse |
d6fcec86 | 113 | %attr(755,root,root) %{_libdir}/%{name}/eclipse |
dbeb098e | 114 | %attr(755,root,root) %{_libdir}/%{name}/lib*.so |
f4a571c1 | 115 | %{_desktopdir}/eclipse.desktop |
ecfc8104 | 116 | %{_pixmapsdir}/eclipse-icon.xpm |
d6fcec86 PS |
117 | %dir %{_libdir}/%{name} |
118 | %{_libdir}/%{name}/.eclipseproduct | |
119 | %{_libdir}/%{name}/configuration | |
dfdb264a | 120 | %{_libdir}/%{name}/eclipse.ini |
121 | %{_libdir}/%{name}/epl-v10.html | |
d6fcec86 PS |
122 | %{_libdir}/%{name}/icon.xpm |
123 | %{_libdir}/%{name}/notice.html | |
124 | %{_libdir}/%{name}/readme | |
dbeb098e | 125 | %{_libdir}/%{name}/about.html |
dee0c6f3 BZ |
126 | #%dir %{_libdir}/%{name}/about_files |
127 | #%{_libdir}/%{name}/about_files/mpl-v11.txt | |
d6fcec86 | 128 | %dir %{_libdir}/%{name}/features |
1b345fea | 129 | %{_libdir}/%{name}/features/org.eclipse.cvs_*.*.* |
d6fcec86 | 130 | %{_libdir}/%{name}/features/org.eclipse.jdt_*.*.* |
d6fcec86 | 131 | %{_libdir}/%{name}/features/org.eclipse.pde_*.*.* |
d6fcec86 | 132 | %{_libdir}/%{name}/features/org.eclipse.platform_*.*.* |
dfdb264a | 133 | %{_libdir}/%{name}/features/org.eclipse.rcp_*.*.* |
d6fcec86 | 134 | %{_libdir}/%{name}/features/org.eclipse.sdk_*.*.* |
d6fcec86 | 135 | %dir %{_libdir}/%{name}/plugins |
1b345fea | 136 | %{_libdir}/%{name}/plugins/javax.servlet.jsp_*.*.* |
137 | %{_libdir}/%{name}/plugins/javax.servlet_*.*.* | |
f5281fab | 138 | %{_libdir}/%{name}/plugins/com.ibm.icu_*.*.* |
f5281fab | 139 | %{_libdir}/%{name}/plugins/com.jcraft.jsch_*.*.* |
d6fcec86 | 140 | %{_libdir}/%{name}/plugins/org.apache.ant_*.*.* |
1b345fea | 141 | %{_libdir}/%{name}/plugins/org.apache.commons.el_*.*.* |
142 | %{_libdir}/%{name}/plugins/org.apache.commons.logging_*.*.* | |
143 | %{_libdir}/%{name}/plugins/org.apache.jasper_*.*.* | |
d6fcec86 | 144 | %{_libdir}/%{name}/plugins/org.apache.lucene_*.*.* |
1b345fea | 145 | %{_libdir}/%{name}/plugins/org.apache.lucene.analysis_*.*.* |
d6fcec86 PS |
146 | %{_libdir}/%{name}/plugins/org.eclipse.ant.core_*.*.* |
147 | %{_libdir}/%{name}/plugins/org.eclipse.ant.ui_*.*.* | |
148 | %{_libdir}/%{name}/plugins/org.eclipse.compare_*.*.* | |
149 | %{_libdir}/%{name}/plugins/org.eclipse.core.boot_*.*.* | |
82c93865 | 150 | %{_libdir}/%{name}/plugins/org.eclipse.core.commands_*.*.* |
dbeb098e | 151 | %{_libdir}/%{name}/plugins/org.eclipse.core.contenttype_*.*.* |
1b345fea | 152 | %{_libdir}/%{name}/plugins/org.eclipse.core.databinding_*.*.* |
153 | %{_libdir}/%{name}/plugins/org.eclipse.core.databinding.beans_*.*.* | |
d6fcec86 PS |
154 | %{_libdir}/%{name}/plugins/org.eclipse.core.expressions_*.*.* |
155 | %{_libdir}/%{name}/plugins/org.eclipse.core.filebuffers_*.*.* | |
dbeb098e AM |
156 | %{_libdir}/%{name}/plugins/org.eclipse.core.filesystem_*.*.* |
157 | %{_libdir}/%{name}/plugins/org.eclipse.core.filesystem.linux.*_*.*.* | |
158 | %{_libdir}/%{name}/plugins/org.eclipse.core.jobs_*.*.* | |
1b345fea | 159 | %{_libdir}/%{name}/plugins/org.eclipse.core.net_*.*.* |
d6fcec86 | 160 | %{_libdir}/%{name}/plugins/org.eclipse.core.resources_*.*.* |
82c93865 | 161 | %{_libdir}/%{name}/plugins/org.eclipse.core.resources.compatibility_*.*.* |
d6fcec86 PS |
162 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime_*.*.* |
163 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility_*.*.* | |
dbeb098e AM |
164 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility.auth_*.*.* |
165 | %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility.registry_*.*.* | |
d6fcec86 | 166 | %{_libdir}/%{name}/plugins/org.eclipse.core.variables_*.*.* |
1b345fea | 167 | %{_libdir}/%{name}/plugins/org.eclipse.cvs_*.*.* |
d6fcec86 PS |
168 | %{_libdir}/%{name}/plugins/org.eclipse.debug.core_*.*.* |
169 | %{_libdir}/%{name}/plugins/org.eclipse.debug.ui_*.*.* | |
80fa57ab | 170 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.app_*.*.* |
dbeb098e | 171 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.common_*.*.* |
1b345fea | 172 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.http.jetty_*.*.* |
173 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.http.registry_*.*.* | |
174 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.http.servlet_*.*.* | |
175 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.jsp.jasper.registry_*.*.* | |
176 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.jsp.jasper_*.*.* | |
80fa57ab | 177 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.launcher_*.*.* |
72bb041d | 178 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.launcher.gtk.linux.%{eclipse_arch}_*.*.* |
dbeb098e AM |
179 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.preferences_*.*.* |
180 | %{_libdir}/%{name}/plugins/org.eclipse.equinox.registry_*.*.* | |
d6fcec86 PS |
181 | %{_libdir}/%{name}/plugins/org.eclipse.help_*.*.* |
182 | %{_libdir}/%{name}/plugins/org.eclipse.help.appserver_*.*.* | |
183 | %{_libdir}/%{name}/plugins/org.eclipse.help.base_*.*.* | |
d6fcec86 PS |
184 | %{_libdir}/%{name}/plugins/org.eclipse.help.ui_*.*.* |
185 | %{_libdir}/%{name}/plugins/org.eclipse.help.webapp_*.*.* | |
186 | %{_libdir}/%{name}/plugins/org.eclipse.jdt_*.*.* | |
fe262ca0 | 187 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.apt.*.*.* |
d6fcec86 | 188 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.core_*.*.* |
dbeb098e | 189 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.core.manipulation*.*.* |
d6fcec86 PS |
190 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.debug_*.*.* |
191 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.debug.ui_*.*.* | |
dbbad0c5 AM |
192 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.doc.isv_*.*.* |
193 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.doc.user_*.*.* | |
d6fcec86 PS |
194 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit_*.*.* |
195 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit.runtime_*.*.* | |
fe262ca0 | 196 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit4.runtime_*.*.* |
d6fcec86 | 197 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.launching_*.*.* |
d6fcec86 | 198 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.ui_*.*.* |
1b345fea | 199 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.compiler.apt_*.*.* |
200 | %{_libdir}/%{name}/plugins/org.eclipse.jdt.compiler.tool_*.*.* | |
d6fcec86 | 201 | %{_libdir}/%{name}/plugins/org.eclipse.jface_*.*.* |
dbeb098e | 202 | %{_libdir}/%{name}/plugins/org.eclipse.jface.databinding_*.*.* |
d6fcec86 | 203 | %{_libdir}/%{name}/plugins/org.eclipse.jface.text_*.*.* |
1b345fea | 204 | %{_libdir}/%{name}/plugins/org.eclipse.jsch.core_*.*.* |
205 | %{_libdir}/%{name}/plugins/org.eclipse.jsch.ui_*.*.* | |
d6fcec86 PS |
206 | %{_libdir}/%{name}/plugins/org.eclipse.ltk.core.refactoring_*.*.* |
207 | %{_libdir}/%{name}/plugins/org.eclipse.ltk.ui.refactoring_*.*.* | |
208 | %{_libdir}/%{name}/plugins/org.eclipse.osgi_*.*.* | |
209 | %{_libdir}/%{name}/plugins/org.eclipse.osgi.services_*.*.* | |
210 | %{_libdir}/%{name}/plugins/org.eclipse.osgi.util_*.*.* | |
211 | %{_libdir}/%{name}/plugins/org.eclipse.pde_*.*.* | |
212 | %{_libdir}/%{name}/plugins/org.eclipse.pde.build_*.*.* | |
213 | %{_libdir}/%{name}/plugins/org.eclipse.pde.core_*.*.* | |
dbbad0c5 | 214 | %{_libdir}/%{name}/plugins/org.eclipse.pde.doc.user_*.*.* |
d6fcec86 PS |
215 | %{_libdir}/%{name}/plugins/org.eclipse.pde.junit.runtime_*.*.* |
216 | %{_libdir}/%{name}/plugins/org.eclipse.pde.runtime_*.*.* | |
d6fcec86 | 217 | %{_libdir}/%{name}/plugins/org.eclipse.pde.ui_*.*.* |
1b345fea | 218 | %{_libdir}/%{name}/plugins/org.eclipse.pde.ui.templates_*.*.* |
d6fcec86 | 219 | %{_libdir}/%{name}/plugins/org.eclipse.platform_*.*.* |
dbbad0c5 AM |
220 | %{_libdir}/%{name}/plugins/org.eclipse.platform.doc.isv_*.*.* |
221 | %{_libdir}/%{name}/plugins/org.eclipse.platform.doc.user_*.*.* | |
dfdb264a | 222 | %{_libdir}/%{name}/plugins/org.eclipse.rcp_*.*.* |
d6fcec86 | 223 | %{_libdir}/%{name}/plugins/org.eclipse.sdk_*.*.* |
d6fcec86 | 224 | %{_libdir}/%{name}/plugins/org.eclipse.swt_*.*.* |
72bb041d | 225 | %{_libdir}/%{name}/plugins/org.eclipse.swt.gtk.linux.%{eclipse_arch}_*.*.* |
1b345fea | 226 | %{_libdir}/%{name}/plugins/org.eclipse.search_*.*.* |
d6fcec86 PS |
227 | %{_libdir}/%{name}/plugins/org.eclipse.team.core_*.*.* |
228 | %{_libdir}/%{name}/plugins/org.eclipse.team.cvs.core_*.*.* | |
229 | %{_libdir}/%{name}/plugins/org.eclipse.team.cvs.ssh2_*.*.* | |
230 | %{_libdir}/%{name}/plugins/org.eclipse.team.cvs.ssh_*.*.* | |
231 | %{_libdir}/%{name}/plugins/org.eclipse.team.cvs.ui_*.*.* | |
232 | %{_libdir}/%{name}/plugins/org.eclipse.team.ui_*.*.* | |
233 | %{_libdir}/%{name}/plugins/org.eclipse.text_*.*.* | |
234 | %{_libdir}/%{name}/plugins/org.eclipse.tomcat_*.*.* | |
235 | %{_libdir}/%{name}/plugins/org.eclipse.ui_*.*.* | |
1b345fea | 236 | %{_libdir}/%{name}/plugins/org.eclipse.ui.browser_*.*.* |
d6fcec86 PS |
237 | %{_libdir}/%{name}/plugins/org.eclipse.ui.cheatsheets_*.*.* |
238 | %{_libdir}/%{name}/plugins/org.eclipse.ui.console_*.*.* | |
239 | %{_libdir}/%{name}/plugins/org.eclipse.ui.editors_*.*.* | |
240 | %{_libdir}/%{name}/plugins/org.eclipse.ui.externaltools_*.*.* | |
241 | %{_libdir}/%{name}/plugins/org.eclipse.ui.forms_*.*.* | |
242 | %{_libdir}/%{name}/plugins/org.eclipse.ui.ide_*.*.* | |
1b345fea | 243 | %{_libdir}/%{name}/plugins/org.eclipse.ui.ide.application_*.*.* |
d6fcec86 | 244 | %{_libdir}/%{name}/plugins/org.eclipse.ui.intro_*.*.* |
dbeb098e | 245 | %{_libdir}/%{name}/plugins/org.eclipse.ui.intro.universal_*.*.* |
1b345fea | 246 | %{_libdir}/%{name}/plugins/org.eclipse.ui.navigator_*.*.* |
247 | %{_libdir}/%{name}/plugins/org.eclipse.ui.navigator.resources_*.*.* | |
248 | %{_libdir}/%{name}/plugins/org.eclipse.ui.net_*.*.* | |
d6fcec86 PS |
249 | %{_libdir}/%{name}/plugins/org.eclipse.ui.presentations.r21_*.*.* |
250 | %{_libdir}/%{name}/plugins/org.eclipse.ui.views_*.*.* | |
dbeb098e | 251 | %{_libdir}/%{name}/plugins/org.eclipse.ui.views.properties.tabbed_*.*.* |
d6fcec86 PS |
252 | %{_libdir}/%{name}/plugins/org.eclipse.ui.workbench_*.*.* |
253 | %{_libdir}/%{name}/plugins/org.eclipse.ui.workbench.compatibility_*.*.* | |
254 | %{_libdir}/%{name}/plugins/org.eclipse.ui.workbench.texteditor_*.*.* | |
255 | %{_libdir}/%{name}/plugins/org.eclipse.update.configurator_*.*.* | |
256 | %{_libdir}/%{name}/plugins/org.eclipse.update.core_*.*.* | |
1b345fea | 257 | %{_libdir}/%{name}/plugins/org.eclipse.update.core.linux_*.*.* |
d6fcec86 PS |
258 | %{_libdir}/%{name}/plugins/org.eclipse.update.scheduler_*.*.* |
259 | %{_libdir}/%{name}/plugins/org.eclipse.update.ui_*.*.* | |
260 | %{_libdir}/%{name}/plugins/org.junit_*.*.* | |
fe262ca0 | 261 | %{_libdir}/%{name}/plugins/org.junit4_*.*.* |
1b345fea | 262 | %{_libdir}/%{name}/plugins/org.mortbay.jetty_*.*.* |
20db4ab6 | 263 | |
264 | %dir %{_datadir}/%{name} | |
265 | %dir %{_datadir}/%{name}/features | |
266 | %dir %{_datadir}/%{name}/plugins | |
267 | %{_datadir}/%{name}/.eclipseextension |