111 lines
3.3 KiB
RPMSpec
111 lines
3.3 KiB
RPMSpec
Name: java-jlatexmath
|
|
Version: 0.9.4
|
|
Release: 1mamba
|
|
Summary: A Java API to render LaTeX
|
|
Group: Development/Libraries/Java
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: gil <puntogil@libero.it>
|
|
URL: http://forge.scilab.org/index.php/p/jlatexmath/
|
|
# http://forge.scilab.org/index.php/p/jlatexmath/downloads/186/get/
|
|
Source: jlatexmath-src-all-%{version}.zip
|
|
License: GPL
|
|
BuildRequires: apache-ant
|
|
BuildRequires: apache-batik
|
|
BuildRequires: apache-fop == 0.95
|
|
BuildRequires: jakarta-commons-io == 1.4
|
|
BuildRequires: jakarta-commons-logging == 1.1.1
|
|
BuildRequires: java-excalibur-avalon-framework
|
|
BuildRequires: java-openjdk
|
|
BuildRequires: jpackage-utils
|
|
BuildRequires: xmlgraphics-commons == 1.3.1
|
|
BuildRequires: xml-commons-apis
|
|
Requires: jpackage-utils
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
The goal of this Java API is to display mathematical formulas written in LaTeX.
|
|
The default encoding is UTF-8.
|
|
|
|
%package javadoc
|
|
Group: Documentation
|
|
Summary: Javadoc for %{name}
|
|
|
|
%description javadoc
|
|
JLaTeXMath - A Java API to render LaTeX.
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n jlatexmath-%{version}
|
|
|
|
for j in $(find . -name "*.jar"); do
|
|
rm -rf $j
|
|
done
|
|
|
|
cat > fop.properties << ___GIL
|
|
fop.jar=$(build-classpath fop)
|
|
xmlgraphics-commons.jar=$(build-classpath xmlgraphics-commons)
|
|
batik.jar=$(build-classpath batik-all)
|
|
avalon-framework.jar=$(build-classpath excalibur/avalon-framework)
|
|
commons-io.jar=$(build-classpath commons-io)
|
|
commons-logging.jar=$(build-classpath commons-logging)
|
|
xml-apis-ext.jar=$(build-classpath xml-commons-apis-ext)
|
|
___GIL
|
|
|
|
%build
|
|
|
|
ant \
|
|
-Dxmlgraphics-commons.jar=$(build-classpath xmlgraphics-commons) \
|
|
-Dfop.jar=$(build-classpath fop) \
|
|
all doc
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
|
|
install -pm 644 dist/jlatexmath-%{version}.jar %{buildroot}%{_javadir}/
|
|
install -pm 644 dist/jlatexmath-embedded-fop-%{version}.jar %{buildroot}%{_javadir}/
|
|
install -pm 644 dist/jlatexmath-fop-%{version}.jar %{buildroot}%{_javadir}/
|
|
install -pm 644 dist/jlatexmath-minimal-%{version}.jar %{buildroot}%{_javadir}/
|
|
install -pm 644 dist/jlm_cyrillic.jar %{buildroot}%{_javadir}/jlm_cyrillic-%{version}.jar
|
|
install -pm 644 dist/jlm_greek.jar %{buildroot}%{_javadir}/jlm_greek-%{version}.jar
|
|
|
|
(
|
|
cd %{buildroot}%{_javadir}
|
|
for jar in *-%{version}*; do
|
|
ln -sf ${jar} ${jar/-%{version}/}
|
|
done
|
|
)
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/jlatexmath
|
|
cp -pr doc/* %{buildroot}%{_javadocdir}/jlatexmath
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_javadir}/jlatexmath-%{version}.jar
|
|
%{_javadir}/jlatexmath.jar
|
|
%{_javadir}/jlatexmath-embedded-fop-%{version}.jar
|
|
%{_javadir}/jlatexmath-embedded-fop.jar
|
|
%{_javadir}/jlatexmath-fop-%{version}.jar
|
|
%{_javadir}/jlatexmath-fop.jar
|
|
%{_javadir}/jlatexmath-minimal-%{version}.jar
|
|
%{_javadir}/jlatexmath-minimal.jar
|
|
%{_javadir}/jlm_cyrillic-%{version}.jar
|
|
%{_javadir}/jlm_cyrillic.jar
|
|
%{_javadir}/jlm_greek-%{version}.jar
|
|
%{_javadir}/jlm_greek.jar
|
|
%doc COPYING LICENSE README
|
|
|
|
%files javadoc
|
|
%defattr(-,root,root)
|
|
%{_javadocdir}/jlatexmath
|
|
|
|
%changelog
|
|
* Fri Feb 04 2011 gil <puntogil@libero.it> 0.9.4-1mamba
|
|
- package created by autospec
|