Name: java-rhino Epoch: 1 Version: 1.7.14 Release: 1mamba Summary: Rhino - JavaScript for Java Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino Source0: https://github.com/mozilla/rhino/releases/download/Rhino1_7_14_Release/rhino-1.7.14.zip Source1: rhino Source2: rhino-debugger Source3: rhino-idswitch Source4: rhino-jsc Source5: rhino-debugger.1 Source6: rhino-jsc.1 License: GPL, MPL 1.1 ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: javapackages Requires: javapackages %description Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users. %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users. This package contains javadoc for %{name}. %prep %setup -q -n rhino%{version} %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} install -pm 644 lib/rhino-%{version}.jar \ %{buildroot}%{_javadir}/rhino-%{version}.jar install -pm 644 lib/rhino-engine-%{version}.jar\ %{buildroot}%{_javadir}/rhino-engine-%{version}.jar install -pm 644 lib/rhino-runtime-%{version}.jar\ %{buildroot}%{_javadir}/rhino-runtime-%{version}.jar ( cd %{buildroot}%{_javadir} ln -s rhino-%{version}.jar js-%{version}.jar ) ( cd %{buildroot}%{_javadir} for jar in *-%{version}*; do ln -s ${jar} `echo $jar| sed "s|-%{version}||g"` done ) mkdir -p %{buildroot}%{_javadocdir}/rhino-%{version} cp -a docs/* %{buildroot}%{_javadocdir}/rhino-%{version} ln -s rhino-%{version} %{buildroot}%{_javadocdir}/rhino find %{buildroot}%{_javadocdir}/rhino-%{version} -type f -name '*.html' | %{_bindir}/xargs %{__perl} -pi -e 's/\r$//g' install -D -m0755 %{S:1} %{buildroot}%{_bindir}/rhino install -D -m0755 %{S:2} %{buildroot}%{_bindir}/rhino-debugger install -D -m0755 %{S:3} %{buildroot}%{_bindir}/rhino-idswitch install -D -m0755 %{S:4} %{buildroot}%{_bindir}/rhino-jsc install -D -m0644 man/rhino.1 %{buildroot}%{_mandir}/man1/rhino.1 install -D -m0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/rhino-debugger.1 install -D -m0644 %{SOURCE6} %{buildroot}%{_mandir}/man1/rhino-jsc.1 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/rhino* %{_javadir}/js-%{version}.jar %{_javadir}/js.jar %{_javadir}/rhino-%{version}.jar %{_javadir}/rhino.jar %{_javadir}/rhino-engine-%{version}.jar %{_javadir}/rhino-engine.jar %{_javadir}/rhino-runtime-%{version}.jar %{_javadir}/rhino-runtime.jar %{_mandir}/man1/rhino*.1* %doc LICENSE.txt %files javadoc %defattr(-,root,root) %{_javadocdir}/rhino-%{version} %{_javadocdir}/rhino %changelog * Thu Aug 18 2022 Silvan Calarco 1.7.14-1mamba - update to 1.7.14 * Fri Mar 25 2011 gil 1.7rc4-3mamba - rebuilt with java-openjdk support * Fri Aug 21 2009 gil 1.7rc4-2mamba - update to 1.7rc4 * Sun Feb 22 2009 gil 1.7-1mamba - package created by autospec