# # spec file for package jlatexmath # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: jlatexmath Version: 1.0.3 Release: 0 Summary: Java API to display mathematical formulas written in LaTeX License: GPL-2.0+ Group: Development/Libraries Url: http://forge.scilab.org/index.php/p/jlatexmath/ Source0: http://forge.scilab.org/index.php/p/jlatexmath/downloads/get/%{name}-src-all-%{version}.zip Source1: patched_fop.properties BuildRequires: ant BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: unzip Requires: java Requires: jpackage-utils BuildArch: noarch %description The goal of this Java API is to display mathematical formulas written in LaTeX. The default encoding is UTF-8 and most of LaTeX commands are available. JLaTeXMath is a fork of the excellent project JMathTeX. %package fop Summary: FOP plug-in for %{name} Group: Development/Libraries BuildRequires: ant BuildRequires: fop BuildRequires: java-devel BuildRequires: jpackage-utils Requires: %{name} = %{version}-%{release} Requires: fop Requires: jpackage-utils %description fop This package contains the FOP plug-in for %{name}. %package javadoc Summary: API Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q rm fop.properties %__cp -a %{SOURCE1} fop.properties find -name '*.class' -exec rm -f '{}' \; find -name '*.jar' -exec rm -f '{}' \; # Fix class-path-in-manifest error sed -i '/class-path/I d' plugin/fop/MANIFEST.MF %build ant buildJar ant fop ant doc %install mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar cp -p dist/%{name}-fop-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-fop.jar mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -rp doc/ $RPM_BUILD_ROOT%{_javadocdir}/%{name} %files %defattr(-,root,root) %{_javadir}/%{name}.jar %doc README %doc COPYING %doc LICENSE %files fop %defattr(-,root,root) %{_javadir}/%{name}-fop.jar %doc plugin/fop/COPYING %doc plugin/fop/LICENSE %files javadoc %defattr(-,root,root) %{_javadocdir}/%{name} %changelog