6
0
forked from pool/jeuclid

Compare commits

...

16 Commits

Author SHA256 Message Date
80f2f22a7a Accepting request 1148666 from Java:packages
rpm 4.20 compat

OBS-URL: https://build.opensuse.org/request/show/1148666
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=13
2024-02-21 17:01:00 +00:00
39963b3e8e OBS-URL: https://build.opensuse.org/package/show/Java:packages/jeuclid?expand=0&rev=27 2024-02-21 11:59:05 +00:00
7ecdd060b8 Accepting request 964018 from Java:packages
Build with source and target levels 8

OBS-URL: https://build.opensuse.org/request/show/964018
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=12
2022-03-22 18:41:13 +00:00
2194f54d8d OBS-URL: https://build.opensuse.org/package/show/Java:packages/jeuclid?expand=0&rev=25 2022-03-22 16:36:04 +00:00
74eb0c6982 Accepting request 962708 from Java:packages
3.1.9

OBS-URL: https://build.opensuse.org/request/show/962708
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=11
2022-03-18 15:42:46 +00:00
David Anes
077fda2369 Accepting request 962178 from home:david.anes:branches:Java:packages
- Updated/rebased patches:
  - jeuclid-core-FreeHep.patch (updated to use services file)
  - jeuclid-batik_1_10.patch (rebased)
  - jeuclid-service-providers.patch (added to prevent wrong 
    typecasting)
- Update to 3.1.9:
  - Workaround for NPE in TextLayout()
  - Support Content Math without namespace
  - Added Italian Translation
  - Improved Documentation
- Update to 3.1.8:
  - Operator streching now honors symmetric
  - New extension for horizontal / vertical stretch
  - Stretchy behaviour is reworked again
- Update to 3.1.7:
  - Reworked Token elements to support mglyhp in all cases.
  - Reworked Stretchy operators.
  - Fixed an error in mmultiscript containing whitespace.
  - MathML 3.0 Testsuite is now available on the website.
  - MathML 3.0 Testsuite can now be run internally.
  - Basic SWT Widget is now implemented.
  - Restored functionality to get null value for attributes. Fixes 
    mfence
  - Better support for foreign elements in JEuclid DOM Tree.
- Update to 3.1.6:
  - JEuclidView: add method to get bounds of layouted object.
  - Provide Win32 MathViewer executable.
  - Moved Resources from root namespace into net/sf/jeuclid.
  - Internal DOM Tree is now in the MathML Namespace.
  - jeuclid-core JAR file is now OSGi compatible.

OBS-URL: https://build.opensuse.org/request/show/962178
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jeuclid?expand=0&rev=23
2022-03-16 12:54:58 +00:00
5b1684adf2 Accepting request 746585 from Java:packages
Add xml-apis explicitely to the build classpath

OBS-URL: https://build.opensuse.org/request/show/746585
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=10
2019-11-08 14:28:49 +00:00
c004de699e OBS-URL: https://build.opensuse.org/package/show/Java:packages/jeuclid?expand=0&rev=21 2019-11-08 12:16:59 +00:00
Stephan Kulow
858073c816 Accepting request 667382 from Java:packages
Fix build with batik 1.10

OBS-URL: https://build.opensuse.org/request/show/667382
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=9
2019-02-05 10:18:24 +00:00
9da2b9f6fd OBS-URL: https://build.opensuse.org/package/show/Java:packages/jeuclid?expand=0&rev=19 2019-01-20 22:39:39 +00:00
4d51a6d705 Accepting request 583257 from Java:packages
generate bytecode 50.0 (Java 1.6)

OBS-URL: https://build.opensuse.org/request/show/583257
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=8
2018-03-07 09:37:23 +00:00
38b16d7666 Accepting request 533053 from Java:packages
Port jeuclid to commons-lang3

OBS-URL: https://build.opensuse.org/request/show/533053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=7
2017-10-16 23:51:12 +00:00
c4ae1e6181 Accepting request 527205 from Java:packages
Fix build with jdk9

OBS-URL: https://build.opensuse.org/request/show/527205
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=6
2017-09-20 15:10:10 +00:00
90aa4457cc Accepting request 408272 from Java:packages
1

OBS-URL: https://build.opensuse.org/request/show/408272
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=5
2016-07-14 07:50:25 +00:00
fc9db67eb9 Accepting request 289986 from Java:packages
- Add extra Categories to desktop file to pass on Factory

OBS-URL: https://build.opensuse.org/request/show/289986
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=4
2015-03-11 08:57:55 +00:00
Stephan Kulow
d5f8157e11 Accepting request 238895 from Java:packages
FWD Java:packages fixes

OBS-URL: https://build.opensuse.org/request/show/238895
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jeuclid?expand=0&rev=2
2014-06-30 20:49:53 +00:00
8 changed files with 141 additions and 30 deletions

View File

@@ -122,7 +122,7 @@
<property name="full.build.output.core" value="${package.name}/${build.output}" />
<mkdir dir="${full.build.output.core}"/>
<javac destdir="${full.build.output.core}" debug="true" deprecation="true" optimize="false" source="6" target="6">
<javac destdir="${full.build.output.core}" debug="true" deprecation="true" optimize="false" source="8" target="8">
<src>
<pathelement location="${package.name}/src/main/java"/>
@@ -141,7 +141,7 @@
<property name="package.name.mathviewer" value="jeuclid-mathviewer" />
<property name="full.build.output.mathviewer" value="${package.name.mathviewer}/${build.output}" />
<mkdir dir="${full.build.output.mathviewer}"/>
<javac destdir="${package.name.mathviewer}/${build.output}" debug="true" deprecation="true" optimize="false" source="6" target="6">
<javac destdir="${package.name.mathviewer}/${build.output}" debug="true" deprecation="true" optimize="false" source="8" target="8">
<src>
<pathelement location="${package.name.mathviewer}/src/main/java"/>
@@ -169,7 +169,7 @@
<property name="full.build.output.cli" value="${package.name.cli}/${build.output}" />
<mkdir dir="${full.build.output.cli}"/>
<javac destdir="${full.build.output.cli}" debug="true" deprecation="true" optimize="false" source="6" target="6">
<javac destdir="${full.build.output.cli}" debug="true" deprecation="true" optimize="false" source="8" target="8">
<src>
<pathelement location="${package.name.cli}/src/main/java"/>
@@ -195,7 +195,7 @@
<property name="full.build.output.fop" value="${package.name.fop}/${build.output}" />
<mkdir dir="${full.build.output.fop}"/>
<javac destdir="${full.build.output.fop}" debug="true" deprecation="true" optimize="false" source="6" target="6">
<javac destdir="${full.build.output.fop}" debug="true" deprecation="true" optimize="false" source="8" target="8">
<src>
<pathelement location="${package.name.fop}/src/main/java"/>

15
jeuclid-batik_1_10.patch Normal file
View File

@@ -0,0 +1,15 @@
Index: jeuclid-parent-3.1.9/jeuclid-core/src/main/java/net/sourceforge/jeuclid/elements/presentation/token/Mo.java
===================================================================
--- jeuclid-parent-3.1.9.orig/jeuclid-core/src/main/java/net/sourceforge/jeuclid/elements/presentation/token/Mo.java
+++ jeuclid-parent-3.1.9/jeuclid-core/src/main/java/net/sourceforge/jeuclid/elements/presentation/token/Mo.java
@@ -45,9 +45,9 @@ import net.sourceforge.jeuclid.layout.Te
import org.apache.batik.dom.AbstractDocument;
import org.apache.batik.dom.events.DOMCustomEvent;
+import org.apache.batik.w3c.dom.events.CustomEvent;
import org.w3c.dom.Attr;
import org.w3c.dom.Node;
-import org.w3c.dom.events.CustomEvent;
import org.w3c.dom.events.Event;
import org.w3c.dom.events.EventListener;
import org.w3c.dom.events.EventTarget;

View File

@@ -1,11 +1,8 @@
--- jeuclid-parent-3.1.3/jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/ConverterRegistry.java 2008-09-24 07:03:08.000000000 -0700
+++ jeuclid-parent-3.1.3.new/jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/ConverterRegistry.java 2008-11-24 19:04:21.000000000 -0800
@@ -50,7 +50,7 @@
protected ConverterRegistry() {
ImageIODetector.detectConversionPlugins(this);
BatikDetector.detectConversionPlugins(this);
- FreeHepDetector.detectConversionPlugins(this);
+// FreeHepDetector.detectConversionPlugins(this);
}
/**
Index: jeuclid-parent-3.1.9/jeuclid-core/src/main/resources/META-INF/services/net.sourceforge.jeuclid.converter.ConverterDetector
===================================================================
--- jeuclid-parent-3.1.9.orig/jeuclid-core/src/main/resources/META-INF/services/net.sourceforge.jeuclid.converter.ConverterDetector
+++ jeuclid-parent-3.1.9/jeuclid-core/src/main/resources/META-INF/services/net.sourceforge.jeuclid.converter.ConverterDetector
@@ -1,3 +1,2 @@
net.sourceforge.jeuclid.converter.ImageIODetector
net.sourceforge.jeuclid.converter.BatikDetector
-net.sourceforge.jeuclid.converter.FreeHepDetector

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e089e2cc3bf9db3bb0600f73e7bd49f4d63983014957d1d700e1f1bbb71b3628
size 3393719

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:80bddad60c02bb55d430cab78818c3a43223877c62bc71f1c7326e2ff8fbe362
size 8858746

View File

@@ -0,0 +1,17 @@
Index: jeuclid-parent-3.1.9/jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/ConverterRegistry.java
===================================================================
--- jeuclid-parent-3.1.9.orig/jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/ConverterRegistry.java
+++ jeuclid-parent-3.1.9/jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/ConverterRegistry.java
@@ -52,10 +52,10 @@ public final class ConverterRegistry {
*/
@SuppressWarnings("unchecked")
protected ConverterRegistry() {
- final Iterator<ConverterDetector> it = Service
+ final Iterator<Object> it = Service
.providers(ConverterDetector.class);
while (it.hasNext()) {
- final ConverterDetector det = it.next();
+ final ConverterDetector det = (ConverterDetector) it.next();
det.detectConversionPlugins(this);
}
}

View File

@@ -1,3 +1,80 @@
-------------------------------------------------------------------
Wed Feb 21 11:58:59 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Tue Mar 22 16:35:12 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with source and target levels 8
-------------------------------------------------------------------
Wed Mar 16 11:52:48 UTC 2022 - David Anes <david.anes@suse.com>
- Updated/rebased patches:
- jeuclid-core-FreeHep.patch (updated to use services file)
- jeuclid-batik_1_10.patch (rebased)
- jeuclid-service-providers.patch (added to prevent wrong
typecasting)
- Update to 3.1.9:
- Workaround for NPE in TextLayout()
- Support Content Math without namespace
- Added Italian Translation
- Improved Documentation
- Update to 3.1.8:
- Operator streching now honors symmetric
- New extension for horizontal / vertical stretch
- Stretchy behaviour is reworked again
- Update to 3.1.7:
- Reworked Token elements to support mglyhp in all cases.
- Reworked Stretchy operators.
- Fixed an error in mmultiscript containing whitespace.
- MathML 3.0 Testsuite is now available on the website.
- MathML 3.0 Testsuite can now be run internally.
- Basic SWT Widget is now implemented.
- Restored functionality to get null value for attributes. Fixes
mfence
- Better support for foreign elements in JEuclid DOM Tree.
- Update to 3.1.6:
- JEuclidView: add method to get bounds of layouted object.
- Provide Win32 MathViewer executable.
- Moved Resources from root namespace into net/sf/jeuclid.
- Internal DOM Tree is now in the MathML Namespace.
- jeuclid-core JAR file is now OSGi compatible.
- MathViewer: Add simple editor.
- MathViewer: PropertyPage: use optionName rather than toString
for consistency with command line App.
- Changed internal JEuclid attributes to use optionName rather
than toString for consistency with command line App.
- FOP: Added support for ImageConverter needed by newer fop.
- Update to 3.1.5:
- Fixed NPE if mo has no parent.
- Font-Cache: repaired support for euler fonts.
- MathViewer: Add source view.
- jeuclid-core: Mouse position detection (presentation mathml).
- jeuclid-fop: Workaround for NPE if an image does not exist.
- Update to 3.1.4:
- Added Regression tests for testsuite.
- Removed possible NPE in MGlyph handling.
- Better support for font styles.
- Added support for float sized fonts.
- Font-Caching and loading is now all done using lower case.
- Declared current branch as stable.
-------------------------------------------------------------------
Fri Nov 8 12:16:35 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Add xml-apis explicitely to the build classpath
-------------------------------------------------------------------
Sun Jan 20 22:36:34 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Build against batik >= 1.10
- Added patch:
* jeuclid-batik_1_10.patch
+ org.w3c.dom.events.CustomEvent ->
-> org.apache.batik.w3c.dom.events.CustomEvent
-------------------------------------------------------------------
Thu Dec 6 15:26:27 UTC 2018 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package jeuclid
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
Name: jeuclid
Version: 3.1.3
Version: 3.1.9
Release: 0
Summary: MathML rendering solution
# LGPL-2.1 is for the FreeHEP component only (see LICENSE.FreeHEP)
License: Apache-2.0 AND LGPL-2.1-only
Group: Development/Libraries/Java
URL: http://jeuclid.sourceforge.net/index.html
URL: https://jeuclid.sourceforge.net/index.html
Source0: http://downloads.sourceforge.net/%{name}/%{name}-parent-%{version}-src.zip
#fedora specific build script based on debian
Source1: build.xml
@@ -37,14 +37,17 @@ Patch1: AppleJavaExtensions.patch
#removes OSX dep for the viewer
Patch2: MacOSX.patch
Patch3: jeuclid-commons-lang3.patch
Patch4: jeuclid-batik_1_10.patch
# fixes casting the service provider
Patch5: jeuclid-service-providers.patch
BuildRequires: ant
BuildRequires: apache-commons-cli >= 1.1
BuildRequires: apache-commons-lang3
BuildRequires: apache-commons-logging
BuildRequires: batik >= 1.7
BuildRequires: batik >= 1.10
BuildRequires: desktop-file-utils
BuildRequires: hicolor-icon-theme
BuildRequires: java-devel
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-tools
BuildRequires: jcip-annotations
BuildRequires: unzip
@@ -53,8 +56,8 @@ BuildRequires: xml-commons-apis
BuildRequires: xmlgraphics-commons >= 1.3
BuildRequires: xmlgraphics-fop >= 0.95
Requires: apache-commons-logging
Requires: batik >= 1.7
Requires: java
Requires: batik >= 1.10
Requires: java >= 1.8
Requires: javapackages-tools
Requires: jcip-annotations
Requires: xmlgraphics-commons >= 1.3
@@ -155,12 +158,14 @@ touch -r NOTICE NOTICE.unix;
mv NOTICE.unix NOTICE
mkdir lib
build-jar-repository -s -p lib jcip-annotations commons-logging xmlgraphics-commons batik-all xmlgraphics-fop.jar commons-cli commons-lang3
build-jar-repository -s -p lib jcip-annotations commons-logging xmlgraphics-commons batik-all xmlgraphics-fop.jar commons-cli commons-lang3 xml-apis
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 3 -p1
%patch -P 4 -p1
%patch -P 5 -p1
find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \;