[eclipse-filesystem] Generate and install eclipse.conf

Mikolaj Izdebski mizdebsk at fedoraproject.org
Fri Nov 28 11:16:53 UTC 2014


commit ece1c50906770c70308110e72c438a56d8c2aeaa
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date:   Fri Nov 28 12:16:36 2014 +0100

    Generate and install eclipse.conf

 eclipse-filesystem.spec |   31 ++++++++++++++++++++++++++++---
 1 files changed, 28 insertions(+), 3 deletions(-)
---
diff --git a/eclipse-filesystem.spec b/eclipse-filesystem.spec
index 6ec7392..4d3d1f3 100644
--- a/eclipse-filesystem.spec
+++ b/eclipse-filesystem.spec
@@ -2,11 +2,15 @@
 
 Name:           eclipse-filesystem
 Version:        1.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Eclipse Platform Filesystem Layout
 License:        EPL
 URL:            http://www.eclipse.org/
 
+# javapackages-tools defines %%{_javaconfdir} macro and owns that directory
+BuildRequires:  javapackages-tools
+Requires:       javapackages-tools
+
 %description
 This package provides directories needed by the Eclipse platform and other
 Eclipse plug-ins. This is abstracted out of the main Eclipse package due to
@@ -14,10 +18,24 @@ the need to build some Eclipse plug-ins before the Eclipse platform itself
 without introducing circular dependencies.
 
 %prep
-%setup -c -T
+%setup -q -c -T
 
 %build
-# Nothing to do
+# Generate Eclipse configuration file
+cat <<EOF >eclipse.conf
+# Eclipse platform root directory
+eclipse.root=%{_libdir}/eclipse
+# Location of architecture-independant dropins
+eclipse.dropins.noarch=%{_datadir}/eclipse/dropins
+# Location of architecture-dependant dropins
+eclipse.dropins.archful=%{_libdir}/eclipse/dropins
+# Comma-separated list of directories searched for external bundles
+eclipse.bundles=%{_javadir},%{_jnidir},%{_javadir}-1.8.0,%{_jnidir}-1.8.0,%{_javadir}-1.7.0,%{_jnidir}-1.7.0,%{_javadir}-1.6.0,%{_jnidir}-1.6.0,%{_javadir}-1.5.0,%{_jnidir}-1.5.0
+# Software collection ID (empty if not SCL)
+scl.namespace=%{?scl}
+# Software collection root directory (empty if not SCL)
+scl.root=%{?_scl_root}
+EOF
 
 %install
 # Platform bundles
@@ -27,6 +45,9 @@ install -m 755 -d %{buildroot}%{_libdir}/eclipse/plugins
 install -m 755 -d %{buildroot}%{_libdir}/eclipse/dropins
 # Noarch dropins
 install -m 755 -d %{buildroot}%{_datadir}/eclipse/dropins
+# eclipse.conf
+install -m 755 -d %{buildroot}%{_javaconfdir}
+install -m 644 -p eclipse.conf %{buildroot}%{_javaconfdir}/
 
 %files
 %dir %{_libdir}/eclipse
@@ -35,8 +56,12 @@ install -m 755 -d %{buildroot}%{_datadir}/eclipse/dropins
 %dir %{_libdir}/eclipse/dropins
 %dir %{_datadir}/eclipse
 %dir %{_datadir}/eclipse/dropins
+%config(noreplace) %{_javaconfdir}/eclipse.conf
 
 %changelog
+* Fri Nov 28 2014 Mikolaj Izdebski <mizdebsk at redhat.com> - 1.0-3
+- Generate and install eclipse.conf
+
 * Mon Sep 08 2014 Mat Booth <mat.booth at redhat.com> - 1.0-2
 - Suppress debuginfo package generation
 


More information about the scm-commits mailing list