From 108c4b1b7081b9141100e1672dd766c09d5f18d3207530c04912fe84c9157311 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 22 Mar 2022 17:03:55 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/jlatexmath?expand=0&rev=9 --- 1.0.3.tar.gz | 3 +++ jlatexmath-src-all-1.0.3.zip | 3 --- jlatexmath.changes | 7 +++++++ jlatexmath.spec | 34 +++++++++++++++------------------- 4 files changed, 25 insertions(+), 22 deletions(-) create mode 100644 1.0.3.tar.gz delete mode 100644 jlatexmath-src-all-1.0.3.zip diff --git a/1.0.3.tar.gz b/1.0.3.tar.gz new file mode 100644 index 0000000..157f07d --- /dev/null +++ b/1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7ddd9fdc9b59136e98d7343757720b9c59ad2dddf65f1cda021f9ab3b9fcf75 +size 1250492 diff --git a/jlatexmath-src-all-1.0.3.zip b/jlatexmath-src-all-1.0.3.zip deleted file mode 100644 index efab479..0000000 --- a/jlatexmath-src-all-1.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:58b14f0f30250b7cd3d1e5cfae20a8d5f999c01e9ff5e03508cbdb8f922dd7fd -size 1203123 diff --git a/jlatexmath.changes b/jlatexmath.changes index 373b6b2..fc9ff2b 100644 --- a/jlatexmath.changes +++ b/jlatexmath.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Mar 22 17:03:06 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 +- Fetch the tarball from github, since the other location does + not exist any more + ------------------------------------------------------------------- Tue Sep 19 08:31:24 UTC 2017 - fstrba@suse.com diff --git a/jlatexmath.spec b/jlatexmath.spec index 2228915..8ea031d 100644 --- a/jlatexmath.spec +++ b/jlatexmath.spec @@ -1,7 +1,7 @@ # # spec file for package jlatexmath # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -20,20 +20,18 @@ Name: jlatexmath Version: 1.0.3 Release: 0 Summary: Java API to display mathematical formulas written in LaTeX -# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" -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 +License: GPL-2.0-or-later +Group: Development/Libraries/Java +URL: https://github.com/opencollab/jlatexmath/ +Source0: https://github.com/opencollab/%{name}/archive/refs/tags/%{version}.tar.gz Source1: patched_fop.properties Patch0: jlatexmath-1.0.3-nosource.patch BuildRequires: ant BuildRequires: fdupes -BuildRequires: java-devel +BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-tools -BuildRequires: unzip BuildRequires: xmlgraphics-fop -Requires: java +Requires: java >= 1.8 Requires: javapackages-tools BuildArch: noarch @@ -45,8 +43,7 @@ JLaTeXMath is a fork of the excellent project JMathTeX. %package fop Summary: FOP plug-in for %{name} -# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" -Group: Development/Libraries +Group: Development/Libraries/Java Requires: %{name} = %{version}-%{release} Requires: javapackages-tools Requires: xmlgraphics-fop @@ -56,8 +53,7 @@ This package contains the FOP plug-in for %{name}. %package javadoc Summary: API Documentation for %{name} -# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" -Group: Documentation +Group: Documentation/HTML Requires: %{name} = %{version}-%{release} %description javadoc @@ -77,7 +73,7 @@ find -name '*.jar' -exec rm -f '{}' \; sed -i '/class-path/I d' plugin/fop/MANIFEST.MF %build -ant -Djava_version=1.6 buildJar fop doc +ant -Djava_version=1.8 buildJar fop doc %install @@ -92,13 +88,13 @@ cp -rp doc/ %{buildroot}%{_javadocdir}/%{name} %files %{_javadir}/%{name}.jar %doc README -%doc COPYING -%doc LICENSE +%license COPYING +%license LICENSE %files fop %{_javadir}/%{name}-fop.jar -%doc plugin/fop/COPYING -%doc plugin/fop/LICENSE +%license plugin/fop/COPYING +%license plugin/fop/LICENSE %files javadoc %{_javadocdir}/%{name}