2 # - get evaluation key from http://www.oxygenxml.com/register.html
5 %bcond_without inst # build without using installer
7 Summary: <oXygen/> XML Editor
12 Group: Development/Tools
13 Source0: http://www.oxygenxml.com/InstData/Editor/Linux/VM/oxygen32.sh
14 # NoSource0-md5: 5b1be07b602c0e94e6d49d6600b89f22
16 Source1: http://www.oxygenxml.com/InstData/Editor/Linux64/VM/oxygen64.sh
17 # NoSource1-md5: 012ee56a167af4a8979f3e8fb7078360
19 URL: http://www.oxygenxml.com/download_oxygenxml_editor.html
20 BuildRequires: jdk >= 1.6
21 BuildRequires: symlinks
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _appdir %{_libdir}/%{name}
27 # avoid strip abortion:
28 # /usr/bin/strip: Unable to recognise the format of the input file `/usr/lib64/oxygen-editor/lib/com/sun/jna/linux-ia64/libjnidispatch.so'
29 %define _noautostrip .*/libjnidispatch.so
32 <oXygen/> XML Editor is a complete XML development platform providing
33 the necessary tools for working with a wide range of XML standards and
37 - XML Schema development
38 - XSLT/ XQuery/ XPath execution and debugging
39 - SOAP and WSDL testing
40 - Native XML and relational database support
51 offset=$(grep -a 'tail -c' $SOURCE | awk '{print $3}')
52 tail -c $offset $SOURCE > sfx_archive.tar.gz
53 tar zxf sfx_archive.tar.gz
54 grep -aoE totalDataLength=[0-9]+ $SRC | cut -d= -f2 > totalDataLength.txt
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
62 # nuke previous install info, confuses our answers sequence
64 rm -f $HOME/.java/.userPrefs/com/install4j/installations/prefs.xml
66 export INSTALL4J_TEMP=$(pwd)
67 export INSTALL4J_KEEP_TEMP=yes
69 # command sequence to installer
89 $RPM_BUILD_ROOT%{_appdir}
92 $RPM_BUILD_ROOT%{_bindir}
98 sh -x src.sh -c < cmd.txt
102 # make the license shorter not span screen to make install automation to work,
103 # we package complete copy separetely anyway.
104 head -n6 i4j_extf_15_1im7gi7.txt > lic.txt
105 sed -i -e 's,i4j_extf_15_1im7gi7.txt,lic.txt,' i4jparams.conf
108 -Dinstall4j.jvmDir="%java_home" \
109 -Dexe4j.moduleName="$(pwd)/src.sh" \
110 -Dexe4j.totalDataLength=$(cat totalDataLength) \
111 -Dinstall4j.cwd="$(pwd)" \
113 -Dsun.java2d.noddraw=true \
116 -classpath i4jruntime.jar:user.jar:user/i4jCustom.jar \
117 com.install4j.runtime.launcher.Launcher launch \
118 com.install4j.runtime.installer.Installer false false "" "" false true false "" true true 0 0 "" 20 20 "Arial" "0,0,0" 8 500 "version 12.1" 20 40 "Arial" "0,0,0" 8 500 -1 -c < cmd.txt
121 symlinks -c $RPM_BUILD_ROOT%{_bindir}
124 rm -rf $RPM_BUILD_ROOT
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_bindir}/*
129 # TODO: implicit attrs
130 %defattr(-,root,root,-)