Rebuild for new ECF

This commit is contained in:
Mat Booth 2015-08-26 11:26:27 +01:00
parent d5d3d8a5cc
commit 9b95fdbb48

View File

@ -37,7 +37,7 @@ Epoch: 1
Summary: An open, extensible IDE
Name: eclipse
Version: %{eclipse_version}
Release: 6%{?dist}
Release: 7%{?dist}
License: EPL
URL: http://www.eclipse.org/
@ -180,7 +180,7 @@ BuildRequires: atinject-tck >= 1-18
BuildRequires: tycho >= 0.22.0-15
BuildRequires: tycho-extras >= 0.22
BuildRequires: cbi-plugins
BuildRequires: eclipse-ecf-core >= 3.10.0-5
BuildRequires: eclipse-ecf-core >= 3.10.1-1
BuildRequires: eclipse-emf-core >= 1:2.10.1-1
BuildRequires: eclipse-license
BuildRequires: glassfish-jsp-api >= 2.2.1-4
@ -262,7 +262,7 @@ Requires: batik-css >= 1.8-0.17
Requires: xml-commons-apis >= 1.4.01-12
Requires: atinject >= 1-18
Requires: geronimo-annotation >= 1.0-7
Requires: eclipse-ecf-core >= 3.10.0-5
Requires: eclipse-ecf-core >= 3.10.1-1
Requires: eclipse-emf-core >= 1:2.10.1-1
Requires: glassfish-jsp-api >= 2.2.1-4
Requires: glassfish-jsp >= 2.2.5
@ -701,28 +701,28 @@ rsync -vrpl eclipse.platform.releng.tychoeclipsebuilder/platform/target/products
#eclipse compiler
install -m 755 jdtcompilatorscript/efj.sh $RPM_BUILD_ROOT%{_bindir}/efj
TARGET_LAUNCHER=%{_libdir}/%{pkg_name}/plugins/`ls eclipse.platform.releng.tychoeclipsebuilder/platform/target/products/org.eclipse.platform.ide/linux/gtk/%{eclipse_arch}/eclipse/plugins | grep launcher_[0-9]*`
TARGET_LAUNCHER=%{_libdir}/eclipse/plugins/`ls eclipse.platform.releng.tychoeclipsebuilder/platform/target/products/org.eclipse.platform.ide/linux/gtk/%{eclipse_arch}/eclipse/plugins | grep launcher_[0-9]*`
sed -i -e "s,@LAUNCHER@,${TARGET_LAUNCHER}," $RPM_BUILD_ROOT%{_bindir}/efj
# Symlink eclipse binary
pushd $RPM_BUILD_ROOT%{_bindir}
ln -s %{_libdir}/%{pkg_name}/eclipse
ln -s %{_libdir}/eclipse/eclipse
popd
# SWT is a directory, but we need to provide jars for others that depend on it
pushd $RPM_BUILD_ROOT/%{_libdir}/%{pkg_name}/plugins
pushd $RPM_BUILD_ROOT/%{_libdir}/eclipse/plugins
SWT_JAR=$(ls | grep swt.gtk.linux)
(cd ${SWT_JAR} && zip -r "../../swt.jar" * )
popd
# Symlink SWT jar
pushd $RPM_BUILD_ROOT/%{_jnidir}/
ln -s $(abs2rel %{_libdir}/%{pkg_name}/swt.jar %{_jnidir})
ln -s $(abs2rel %{_libdir}/eclipse/swt.jar %{_jnidir})
popd
# Symlink eclipse ini
pushd $RPM_BUILD_ROOT/%{_sysconfdir}/
ln -s %{_libdir}/%{pkg_name}/eclipse.ini
ln -s %{_libdir}/eclipse/eclipse.ini
popd
# List jars to be symlinked into javadir
@ -830,15 +830,15 @@ pushd $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing/testbundle
# Set the proper paths for scripts
sed -i 's|\.\+/\(gatherBundles\.sh\)|%{_javadir}/eclipse-testing/testbundle/\1|' prepRuntimeLocation.sh
sed -i 's|\.\+/\(genRepo\.sh\)|%{_javadir}/eclipse-testing/testbundle/\1|' prepAllTestBundles.sh
sed -i 's|\.\+/\(prepRuntimeLocation\.sh\)|%{_javadir}/eclipse-testing/testbundle/\1|' %{pkg_name}-runTestBundles
sed -i 's|\.\+/\(prepAllTestBundles\.sh\)|%{_javadir}/eclipse-testing/testbundle/\1|' %{pkg_name}-runTestBundles
sed -i 's|\.\+/\(prepRuntimeLocation\.sh\)|%{_javadir}/eclipse-testing/testbundle/\1|' eclipse-runTestBundles
sed -i 's|\.\+/\(prepAllTestBundles\.sh\)|%{_javadir}/eclipse-testing/testbundle/\1|' eclipse-runTestBundles
sed -i 's|cp swtbot-library.xml alltest.xml updateTestBundleXML.sh target/|cp %{_javadir}/eclipse-testing/testbundle/{swtbot-library.xml,alltest.xml,updateTestBundleXML.sh} target/|' prepRuntimeLocation.sh
for file in genRepo.sh gatherBundles.sh ;do
sed -i 's|scl_root=|scl_root=%{?_scl_root}|' ${file}
done
mv $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing/testbundle/%{pkg_name}-runTestBundles $RPM_BUILD_ROOT/%{_bindir}/%{pkg_name}-runTestBundles
mv $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing/testbundle/eclipse-runTestBundles $RPM_BUILD_ROOT/%{_bindir}/eclipse-runTestBundles
popd
#fix so permissions
@ -1090,6 +1090,9 @@ fi
%{_libdir}/%{pkg_name}/plugins/org.eclipse.osgi.compatibility.state_*
%changelog
* Wed Aug 26 2015 Mat Booth <mat.booth@redhat.com> - 1:4.5.0-7
- Rebuild for new ECF
* Thu Aug 20 2015 Mat Booth <mat.booth@redhat.com> - 1:4.5.0-6
- Add patch for rhbz#1255150
- Use older requires on emf (not emf-runtime)