java-jlatexmath/java-jlatexmath.spec

54 lines
1.7 KiB
RPMSpec

Name: java-jlatexmath
Version: 1.0.7
Release: 1mamba
Summary: A Java API to render LaTeX
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/opencollab/jlatexmath
Source: https://repo1.maven.org/maven2/org/scilab/forge/jlatexmath/%{version}/jlatexmath-%{version}.jar
Source1: https://repo1.maven.org/maven2/org/scilab/forge/jlatexmath-fop/%{version}/jlatexmath-fop-%{version}.jar
Source2: https://github.com/opencollab/jlatexmath/raw/%{version}/jlatexmath-fop/LICENSE
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
%description
The goal of this Java API is to display mathematical formulas written in LaTeX.
The default encoding is UTF-8.
%prep
%setup -q -c
%build
cp %{SOURCE2} .
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m644 %{SOURCE0} %{buildroot}%{_javadir}/jlatexmath-%{version}.jar
ln -s jlatexmath-%{version}.jar %{buildroot}%{_javadir}/jlatexmath.jar
install -D -m644 %{SOURCE1} %{buildroot}%{_javadir}/jlatexmath-fop-%{version}.jar
ln -s jlatexmath-%{version}.jar %{buildroot}%{_javadir}/jlatexmath-fop.jar
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/jlatexmath-%{version}.jar
%{_javadir}/jlatexmath.jar
%{_javadir}/jlatexmath-fop-%{version}.jar
%{_javadir}/jlatexmath-fop.jar
%doc LICENSE
%changelog
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.7-1mamba
- update to 1.0.7
* Fri Feb 04 2011 gil <puntogil@libero.it> 0.9.4-1mamba
- package created by autospec