2024-01-06 00:10:22 +01:00
|
|
|
Name: java-rhino
|
2024-01-06 00:10:24 +01:00
|
|
|
Epoch: 1
|
|
|
|
Version: 1.7.14
|
|
|
|
Release: 1mamba
|
2024-01-06 00:10:22 +01:00
|
|
|
Summary: Rhino - JavaScript for Java
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 00:10:24 +01:00
|
|
|
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
|
2024-01-06 00:10:22 +01:00
|
|
|
License: GPL, MPL 1.1
|
2024-01-06 00:10:24 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: javapackages
|
|
|
|
Requires: javapackages
|
2024-01-06 00:10:22 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-06 00:10:24 +01:00
|
|
|
%setup -q -n rhino%{version}
|
2024-01-06 00:10:22 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
2024-01-06 00:10:24 +01:00
|
|
|
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
|
2024-01-06 00:10:22 +01:00
|
|
|
|
|
|
|
(
|
|
|
|
cd %{buildroot}%{_javadir}
|
2024-01-06 00:10:24 +01:00
|
|
|
ln -s rhino-%{version}.jar js-%{version}.jar
|
2024-01-06 00:10:22 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
(
|
|
|
|
cd %{buildroot}%{_javadir}
|
2024-01-06 00:10:24 +01:00
|
|
|
for jar in *-%{version}*; do
|
|
|
|
ln -s ${jar} `echo $jar| sed "s|-%{version}||g"`
|
2024-01-06 00:10:22 +01:00
|
|
|
done
|
|
|
|
)
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/rhino-%{version}
|
2024-01-06 00:10:24 +01:00
|
|
|
cp -a docs/* %{buildroot}%{_javadocdir}/rhino-%{version}
|
2024-01-06 00:10:22 +01:00
|
|
|
ln -s rhino-%{version} %{buildroot}%{_javadocdir}/rhino
|
|
|
|
find %{buildroot}%{_javadocdir}/rhino-%{version} -type f -name '*.html' | %{_bindir}/xargs %{__perl} -pi -e 's/\r$//g'
|
|
|
|
|
2024-01-06 00:10:24 +01:00
|
|
|
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
|
2024-01-06 00:10:22 +01:00
|
|
|
|
2024-01-06 00:10:24 +01:00
|
|
|
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
|
2024-01-06 00:10:22 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 00:10:24 +01:00
|
|
|
%{_bindir}/rhino*
|
|
|
|
%{_javadir}/js-%{version}.jar
|
2024-01-06 00:10:22 +01:00
|
|
|
%{_javadir}/js.jar
|
2024-01-06 00:10:24 +01:00
|
|
|
%{_javadir}/rhino-%{version}.jar
|
2024-01-06 00:10:22 +01:00
|
|
|
%{_javadir}/rhino.jar
|
2024-01-06 00:10:24 +01:00
|
|
|
%{_javadir}/rhino-engine-%{version}.jar
|
|
|
|
%{_javadir}/rhino-engine.jar
|
|
|
|
%{_javadir}/rhino-runtime-%{version}.jar
|
|
|
|
%{_javadir}/rhino-runtime.jar
|
|
|
|
%{_mandir}/man1/rhino*.1*
|
2024-01-06 00:10:22 +01:00
|
|
|
%doc LICENSE.txt
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_javadocdir}/rhino-%{version}
|
|
|
|
%{_javadocdir}/rhino
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 00:10:24 +01:00
|
|
|
* Thu Aug 18 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.14-1mamba
|
|
|
|
- update to 1.7.14
|
|
|
|
|
2024-01-06 00:10:22 +01:00
|
|
|
* Fri Mar 25 2011 gil <puntogil@libero.it> 1.7rc4-3mamba
|
|
|
|
- rebuilt with java-openjdk support
|
|
|
|
|
|
|
|
* Fri Aug 21 2009 gil <puntogil@libero.it> 1.7rc4-2mamba
|
|
|
|
- update to 1.7rc4
|
|
|
|
|
|
|
|
* Sun Feb 22 2009 gil <puntogil@libero.it> 1.7-1mamba
|
|
|
|
- package created by autospec
|