- rel 1 (rel 1, deunderscore local macros)
[packages/eclipse.git] / eclipse.spec
1 # TODO:
2 # - make use of eclipse-swt package
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 # - there are unpackaged source files, -devel?
7 #
8 %define         ver_major       3.3.1.1
9 %define         buildid 200710231652
10 #
11 Summary:        Eclipse - an open extensible IDE
12 Summary(pl.UTF-8):      Eclipse - otwarte, rozszerzalne środowisko programistyczne
13 Name:           eclipse
14 Version:        %{ver_major}
15 Release:        1
16 License:        EPL v1.0
17 Group:          Development/Tools
18 Source0:        http://download.eclipse.org/eclipse/downloads/drops/R-%{ver_major}-%{buildid}/%{name}-sourceBuild-srcIncluded-%{ver_major}.zip
19 # Source0-md5:  593b56fce7d1f1f799e87365cafefbef
20 Source1:        %{name}.desktop
21 URL:            http://www.eclipse.org/
22 BuildRequires:  ant >= 1.6.1
23 BuildRequires:  ant-apache-regexp
24 BuildRequires:  jdk >= 1.6
25 BuildRequires:  pkgconfig
26 BuildRequires:  rpm-pythonprov
27 BuildRequires:  rpmbuild(macros) >= 1.300
28 BuildRequires:  sed
29 BuildRequires:  unzip
30 BuildRequires:  zip
31 Requires:       ant
32 Requires:       jdk >= 1.4
33 Obsoletes:      eclipse-SDK
34 ExclusiveArch:  i586 i686 pentium3 pentium4 athlon %{x8664}
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %define         eclipse_arch    %(echo %{_target_cpu} | sed 's/i.86\\|athlon\\|pentium/x86/;s/amd64/x86_64/')
38 %define         no_install_post_chrpath         1
39
40 # list of script capabilities (regexps) not to be used in Provides
41 %define         _noautoprov                     libcairo.so.2
42
43 %description
44 Eclipse is a kind of universal tool platform - an open extensible IDE
45 for anything and nothing in particular.
46
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.
51
52 %prep
53 %setup -q -c
54
55 # Build Id - it's visible in couple places in gui
56 # TODO: just patch build.xml not every single file
57 find . '(' -name 'config.ini' -o -name 'about.mappings' ')' -type f -print \
58     | xargs %{__sed} -i -e 's/=@build@/=PLD %{name}-%{version}-%{release}/'
59
60 %build
61 unset CLASSPATH || :
62 export JAVA_HOME=%{java_home}
63
64 ./build -os linux -ws gtk -arch %{eclipse_arch} -target compile
65
66 export JAVA_INC="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
67
68 %{__make} -C plugins/org.eclipse.core.filesystem/natives/unix/linux/ \
69     OPT_FLAGS="%{rpmcflags} $JAVA_INC" \
70     CFLAGS="%{rpmcflags} $JAVA_INC" \
71     LDFLAGS="%{rpmldflags}"
72
73 cd plugins/org.eclipse.update.core.linux/src
74 %{__cc} %{rpmcflags} -fPIC %{rpmldflags} -I. $JAVA_INC update.c -o libupdate.so -shared
75 cd -
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_libdir}/%{name}}
80 # place for arch independent plugins
81 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{features,plugins}
82
83 unset JAVA_HOME || :
84 export JAVA_HOME=%{java_home}
85 ./build -os linux -ws gtk -arch %{eclipse_arch} -target install
86
87 tar xfz result/linux-gtk-%{eclipse_arch}-sdk.tar.gz -C $RPM_BUILD_ROOT%{_libdir}
88 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
89
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
93 #wrapper
94 install -d $RPM_BUILD_ROOT%{_bindir}
95 cat > $RPM_BUILD_ROOT%{_bindir}/eclipse << 'EOF'
96 #!/bin/sh
97 exec %{_libdir}/%{name}/eclipse ${1:+"$@"}
98 EOF
99
100 :> $RPM_BUILD_ROOT%{_datadir}/%{name}/.eclipseextension
101
102 if [ ! -f "$RPM_BUILD_ROOT%{_libdir}/%{name}/icon.xpm" ]; then
103         install features/org.eclipse.equinox.executable/bin/gtk/linux/x86/icon.xpm $RPM_BUILD_ROOT%{_libdir}/%{name}/icon.xpm
104 fi
105 install -D features/org.eclipse.equinox.executable/bin/gtk/linux/x86/icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/eclipse-icon.xpm
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %files
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_bindir}/eclipse
113 %attr(755,root,root) %{_libdir}/%{name}/eclipse
114 %attr(755,root,root) %{_libdir}/%{name}/lib*.so
115 %{_desktopdir}/eclipse.desktop
116 %{_pixmapsdir}/eclipse-icon.xpm
117 %dir %{_libdir}/%{name}
118 %{_libdir}/%{name}/.eclipseproduct
119 %{_libdir}/%{name}/configuration
120 %{_libdir}/%{name}/eclipse.ini
121 %{_libdir}/%{name}/epl-v10.html
122 %{_libdir}/%{name}/icon.xpm
123 %{_libdir}/%{name}/notice.html
124 %{_libdir}/%{name}/readme
125 %{_libdir}/%{name}/about.html
126 #%dir %{_libdir}/%{name}/about_files
127 #%{_libdir}/%{name}/about_files/mpl-v11.txt
128 %dir %{_libdir}/%{name}/features
129 %{_libdir}/%{name}/features/org.eclipse.cvs_*.*.*
130 %{_libdir}/%{name}/features/org.eclipse.jdt_*.*.*
131 %{_libdir}/%{name}/features/org.eclipse.pde_*.*.*
132 %{_libdir}/%{name}/features/org.eclipse.platform_*.*.*
133 %{_libdir}/%{name}/features/org.eclipse.rcp_*.*.*
134 %{_libdir}/%{name}/features/org.eclipse.sdk_*.*.*
135 %dir %{_libdir}/%{name}/plugins
136 %{_libdir}/%{name}/plugins/javax.servlet.jsp_*.*.*
137 %{_libdir}/%{name}/plugins/javax.servlet_*.*.*
138 %{_libdir}/%{name}/plugins/com.ibm.icu_*.*.*
139 %{_libdir}/%{name}/plugins/com.jcraft.jsch_*.*.*
140 %{_libdir}/%{name}/plugins/org.apache.ant_*.*.*
141 %{_libdir}/%{name}/plugins/org.apache.commons.el_*.*.*
142 %{_libdir}/%{name}/plugins/org.apache.commons.logging_*.*.*
143 %{_libdir}/%{name}/plugins/org.apache.jasper_*.*.*
144 %{_libdir}/%{name}/plugins/org.apache.lucene_*.*.*
145 %{_libdir}/%{name}/plugins/org.apache.lucene.analysis_*.*.*
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_*.*.*
150 %{_libdir}/%{name}/plugins/org.eclipse.core.commands_*.*.*
151 %{_libdir}/%{name}/plugins/org.eclipse.core.contenttype_*.*.*
152 %{_libdir}/%{name}/plugins/org.eclipse.core.databinding_*.*.*
153 %{_libdir}/%{name}/plugins/org.eclipse.core.databinding.beans_*.*.*
154 %{_libdir}/%{name}/plugins/org.eclipse.core.expressions_*.*.*
155 %{_libdir}/%{name}/plugins/org.eclipse.core.filebuffers_*.*.*
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_*.*.*
159 %{_libdir}/%{name}/plugins/org.eclipse.core.net_*.*.*
160 %{_libdir}/%{name}/plugins/org.eclipse.core.resources_*.*.*
161 %{_libdir}/%{name}/plugins/org.eclipse.core.resources.compatibility_*.*.*
162 %{_libdir}/%{name}/plugins/org.eclipse.core.runtime_*.*.*
163 %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility_*.*.*
164 %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility.auth_*.*.*
165 %{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility.registry_*.*.*
166 %{_libdir}/%{name}/plugins/org.eclipse.core.variables_*.*.*
167 %{_libdir}/%{name}/plugins/org.eclipse.cvs_*.*.*
168 %{_libdir}/%{name}/plugins/org.eclipse.debug.core_*.*.*
169 %{_libdir}/%{name}/plugins/org.eclipse.debug.ui_*.*.*
170 %{_libdir}/%{name}/plugins/org.eclipse.equinox.app_*.*.*
171 %{_libdir}/%{name}/plugins/org.eclipse.equinox.common_*.*.*
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_*.*.*
177 %{_libdir}/%{name}/plugins/org.eclipse.equinox.launcher_*.*.*
178 %{_libdir}/%{name}/plugins/org.eclipse.equinox.launcher.gtk.linux.%{eclipse_arch}_*.*.*
179 %{_libdir}/%{name}/plugins/org.eclipse.equinox.preferences_*.*.*
180 %{_libdir}/%{name}/plugins/org.eclipse.equinox.registry_*.*.*
181 %{_libdir}/%{name}/plugins/org.eclipse.help_*.*.*
182 %{_libdir}/%{name}/plugins/org.eclipse.help.appserver_*.*.*
183 %{_libdir}/%{name}/plugins/org.eclipse.help.base_*.*.*
184 %{_libdir}/%{name}/plugins/org.eclipse.help.ui_*.*.*
185 %{_libdir}/%{name}/plugins/org.eclipse.help.webapp_*.*.*
186 %{_libdir}/%{name}/plugins/org.eclipse.jdt_*.*.*
187 %{_libdir}/%{name}/plugins/org.eclipse.jdt.apt.*.*.*
188 %{_libdir}/%{name}/plugins/org.eclipse.jdt.core_*.*.*
189 %{_libdir}/%{name}/plugins/org.eclipse.jdt.core.manipulation*.*.*
190 %{_libdir}/%{name}/plugins/org.eclipse.jdt.debug_*.*.*
191 %{_libdir}/%{name}/plugins/org.eclipse.jdt.debug.ui_*.*.*
192 %{_libdir}/%{name}/plugins/org.eclipse.jdt.doc.isv_*.*.*
193 %{_libdir}/%{name}/plugins/org.eclipse.jdt.doc.user_*.*.*
194 %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit_*.*.*
195 %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit.runtime_*.*.*
196 %{_libdir}/%{name}/plugins/org.eclipse.jdt.junit4.runtime_*.*.*
197 %{_libdir}/%{name}/plugins/org.eclipse.jdt.launching_*.*.*
198 %{_libdir}/%{name}/plugins/org.eclipse.jdt.ui_*.*.*
199 %{_libdir}/%{name}/plugins/org.eclipse.jdt.compiler.apt_*.*.*
200 %{_libdir}/%{name}/plugins/org.eclipse.jdt.compiler.tool_*.*.*
201 %{_libdir}/%{name}/plugins/org.eclipse.jface_*.*.*
202 %{_libdir}/%{name}/plugins/org.eclipse.jface.databinding_*.*.*
203 %{_libdir}/%{name}/plugins/org.eclipse.jface.text_*.*.*
204 %{_libdir}/%{name}/plugins/org.eclipse.jsch.core_*.*.*
205 %{_libdir}/%{name}/plugins/org.eclipse.jsch.ui_*.*.*
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_*.*.*
214 %{_libdir}/%{name}/plugins/org.eclipse.pde.doc.user_*.*.*
215 %{_libdir}/%{name}/plugins/org.eclipse.pde.junit.runtime_*.*.*
216 %{_libdir}/%{name}/plugins/org.eclipse.pde.runtime_*.*.*
217 %{_libdir}/%{name}/plugins/org.eclipse.pde.ui_*.*.*
218 %{_libdir}/%{name}/plugins/org.eclipse.pde.ui.templates_*.*.*
219 %{_libdir}/%{name}/plugins/org.eclipse.platform_*.*.*
220 %{_libdir}/%{name}/plugins/org.eclipse.platform.doc.isv_*.*.*
221 %{_libdir}/%{name}/plugins/org.eclipse.platform.doc.user_*.*.*
222 %{_libdir}/%{name}/plugins/org.eclipse.rcp_*.*.*
223 %{_libdir}/%{name}/plugins/org.eclipse.sdk_*.*.*
224 %{_libdir}/%{name}/plugins/org.eclipse.swt_*.*.*
225 %{_libdir}/%{name}/plugins/org.eclipse.swt.gtk.linux.%{eclipse_arch}_*.*.*
226 %{_libdir}/%{name}/plugins/org.eclipse.search_*.*.*
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_*.*.*
236 %{_libdir}/%{name}/plugins/org.eclipse.ui.browser_*.*.*
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_*.*.*
243 %{_libdir}/%{name}/plugins/org.eclipse.ui.ide.application_*.*.*
244 %{_libdir}/%{name}/plugins/org.eclipse.ui.intro_*.*.*
245 %{_libdir}/%{name}/plugins/org.eclipse.ui.intro.universal_*.*.*
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_*.*.*
249 %{_libdir}/%{name}/plugins/org.eclipse.ui.presentations.r21_*.*.*
250 %{_libdir}/%{name}/plugins/org.eclipse.ui.views_*.*.*
251 %{_libdir}/%{name}/plugins/org.eclipse.ui.views.properties.tabbed_*.*.*
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_*.*.*
257 %{_libdir}/%{name}/plugins/org.eclipse.update.core.linux_*.*.*
258 %{_libdir}/%{name}/plugins/org.eclipse.update.scheduler_*.*.*
259 %{_libdir}/%{name}/plugins/org.eclipse.update.ui_*.*.*
260 %{_libdir}/%{name}/plugins/org.junit_*.*.*
261 %{_libdir}/%{name}/plugins/org.junit4_*.*.*
262 %{_libdir}/%{name}/plugins/org.mortbay.jetty_*.*.*
263
264 %dir %{_datadir}/%{name}
265 %dir %{_datadir}/%{name}/features
266 %dir %{_datadir}/%{name}/plugins
267 %{_datadir}/%{name}/.eclipseextension
This page took 0.117103 seconds and 3 git commands to generate.