From 5e31158cdb2c6dbdf0c566fe06e1dd09825528b7 Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 00:06:56 +0100 Subject: [PATCH] package created by autospec [release 0.9.4-1mamba;Fri Feb 04 2011] --- README.md | 3 ++ java-jlatexmath.spec | 110 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 java-jlatexmath.spec diff --git a/README.md b/README.md index 3aae250..dfa455c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # java-jlatexmath +The goal of this Java API is to display mathematical formulas written in LaTeX. +The default encoding is UTF-8. + diff --git a/java-jlatexmath.spec b/java-jlatexmath.spec new file mode 100644 index 0000000..53c871c --- /dev/null +++ b/java-jlatexmath.spec @@ -0,0 +1,110 @@ +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 +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 0.9.4-1mamba +- package created by autospec