[
https://jira.jboss.org/jira/browse/JBIDE-5792?page=com.atlassian.jira.plu...
]
Nick Boldt resolved JBIDE-5792.
-------------------------------
Resolution: Rejected
(From Andrew Overholt, my go-to guy for RPMing)
I've never used the -tb functionality in rpmbuild and wouldn't recommend
it. If someone seriously wants to have RPMs of JBoss Tools, I would
strongly suggest they package everything up in a hand-written .spec.
Plop stuff into dropins and go. Of course, if they just want a dirty
hack, a .spec with something like this will work:
%prep
<extract zip or tarball>
%build
<nothing if they're not going to build from source
%install
<install stuff to %{_libdir}/eclipse/dropins/jbosstools>
----
Closing because this is not now JBT is meant to be installed. The issue of having mac
stuff in the all zip for linux_64 isn't really a problem either since those fragments
can simply be ignored/deleted (and Eclipse ignores them anyway).
Problems installing
JBossTools-ALL-linux-gtk-x86_64-3.0.3.v200910211631N-H194-GA.zip on linux
---------------------------------------------------------------------------------------------
Key: JBIDE-5792
URL:
https://jira.jboss.org/jira/browse/JBIDE-5792
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Build/Releng
Environment: Linux 64 bit
Reporter: Francesca Ovi
Assignee: Nick Boldt
Priority: Minor
Fix For: 3.1.0.CR2, 3.2.next
I downloaded JBossTools-ALL-linux-gtk-x86_64-3.0.3.v200910211631N-H194-GA.zip and I tried
to install it on linux system.
I was unable to generate rpm files from file .spec (rpmbuild -tb ) in the section
%files.
The error I get is:
"errore: Due file su di una riga:
/opt/six/share/eclipse/plugins/org.mozilla.xulrunner.carbon.macosx_1.8.1.3-20070904/xulrunner/plugins/Default
errore: Il file deve iniziare con "/": Plugin.plugin"
The problem seems to be the presence of a folder named "Default Plugin.plugin"
inside the
"plugins\org.mozilla.xulrunner.carbon.macosx_1.8.1.3-20070904\xulrunner\plugins"
folder. I suppose folder's name causes the problem. I removed this folder and the
generation of rpm completed without errors.
I do not understand the necessity of such folder that seems relative to MAC OS,
considering that the plugin is for linux environment.
Here is the .spec file I used:
# ---- !!!!! DO NOT EDIT THE FOLOWING CCA 20 LINES !!!!! ----
%define six_root /opt/six
%define __check_files %{nil}
Summary: Prodotto per la configurazione
Name:eclipse
Version: 3.0
Release: 1
License: xxx
Group: SIX
Source: eclipse.tgz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}
Vendor: xxx
Distribution: xxx
Packager: xxxx
AutoReqProv:No
#############################
Provides: eclipse
###### ridefinisce la macro per i diritti di default
%define inst_root %{six_root}/share
%define inst_plugin_inside %{inst_root}/pluginInsideEclipse
%define inst_plugin_outside %{inst_root}/pluginOutsideEclipse
####
%prep
%setup -c -n %{name}
%install
# crea la bulidroot se non esiste
[ ! -d %{buildroot} ] && mkdir -p %{buildroot}
# crea la dir dove fare l'installazione se non esiste
[ ! -d %{buildroot}%{inst_root} ] && mkdir -p %{buildroot}%{inst_root}
# Copio i file nella build root
for I in noarch; do
[ ! -d $I ] && continue;
/bin/cp -a $I/* %{buildroot}%{inst_root}/
done
unset I
cd %{buildroot}%{inst_root}
# Scompatto il file .tar.gz nella inst_root
for I in $(ls *.tar.gz); do
[ ! -f $I ] && continue;
gtar xzvf $I
# elimino i file. tar.gz dalla inst_root
rm -f $I
done
unset I
cd %{buildroot}%{inst_plugin_inside}
# Scompatto i file .zip nella inst_root/pluginInsideEclipse da usare per i plugins che
non hanno cartella eclipse
for I in $(ls *.zip); do
[ ! -f $I ] && continue;
unzip -q -o -u $I -d %{buildroot}%{inst_root}/%{name}
done
unset I
cd %{buildroot}%{inst_plugin_outside}
# Scompatto i file .zip nella inst_root/pluginOutsideEclipse per i plugins che hanno
cartella eclipse
for I in $(ls *.zip); do
[ ! -f $I ] && continue;
unzip -q -o -u $I -d %{buildroot}%{inst_root}
done
unset I
# Rimozione delle cartelle che contengono i plugin
rm -rf %{buildroot}%{inst_plugin_inside}
rm -rf %{buildroot}%{inst_plugin_outside}
# crea lista dei files
%{six_root}/bin/rpmhelper -f %{buildroot} > %{_builddir}/%{name}/%{name}.files
# Clean
%clean
[ %{buildroot} != "/" ] && rm -rf %{buildroot}
[ %{_builddir}/%{name} != "/" ] && rm -rf %{_builddir}/%{name}
rm -f %{_sourcedir}/%{name}.tgz
# definisce lista di file da istallare
%files -f %{_builddir}/%{name}/%{name}.files
%description
Istallazione ambiente eclipse e relativi plugin.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira