From 958ab20a736c665753e46bd651f30a0366712f56 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 00:03:49 +0100 Subject: [PATCH] update to 3.9.12 [release 3.9.12-1mamba;Sun Apr 11 2021] --- README.md | 6 ++---- java-graphx.spec | 55 +++++++++++++++++++----------------------------- 2 files changed, 24 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 8166b84..c087da6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # java-graphx -JGraph X is the next generation of Java Swing Diagramming Library, factoring in 7 years of architectural improvements -into a clean, concise design. JGraph X provides a simple, powerful API, as well a more application-centric feature set. -The result is a low learning curve and faster implementation of customizations in your development. JGraph X shares the -core model of mxGraph, so your JGraph X application more easily ports directly to an mxGraph web application. +JGraph X is the next generation of Java Swing Diagramming Library, factoring in 7 years of architectural improvements into a clean, concise design. JGraph X provides a simple, powerful API, as well a more application-centric feature set. +The result is a low learning curve and faster implementation of customizations in your development. JGraph X shares the core model of mxGraph, so your JGraph X application more easily ports directly to an mxGraph web application. diff --git a/java-graphx.spec b/java-graphx.spec index cc12f35..a901fb1 100644 --- a/java-graphx.spec +++ b/java-graphx.spec @@ -1,61 +1,46 @@ -%define pkg_version %(echo %version | tr . _) - Name: java-graphx -Version: 1.4.1.0 +Version: 3.9.12 Release: 1mamba Summary: Java Swing Diagramming Library Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba -Packager: gil +Packager: Silvan Calarco URL: http://www.jgraph.com/ -# http://www.jgraph.com/downloads.html -# Download JGraph X 0.99.0.4 - Accept License Agreement -# http://www.mxgraph.com/downloads/jgraphx/ -Source: http://www.jgraph.com/downloads/jgraphx/archive/jgraphx-%{pkg_version}.zip +Source: https://github.com/jgraph/jgraphx.git/v%{version}/jgraphx-%{version}.tar.bz2 License: BSD, LGPL -BuildRequires: apache-ant -BuildRequires: jpackage-utils -BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: java-openjdk8 +BuildRequires: apache-maven +BuildRequires: javapackages %description -JGraph X is the next generation of Java Swing Diagramming Library, factoring in 7 years of architectural improvements -into a clean, concise design. JGraph X provides a simple, powerful API, as well a more application-centric feature set. -The result is a low learning curve and faster implementation of customizations in your development. JGraph X shares the -core model of mxGraph, so your JGraph X application more easily ports directly to an mxGraph web application. +JGraph X is the next generation of Java Swing Diagramming Library, factoring in 7 years of architectural improvements into a clean, concise design. JGraph X provides a simple, powerful API, as well a more application-centric feature set. +The result is a low learning curve and faster implementation of customizations in your development. JGraph X shares the core model of mxGraph, so your JGraph X application more easily ports directly to an mxGraph web application. %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc -JGraph X is the next generation of Java Swing Diagramming Library, factoring in 7 years of architectural improvements -into a clean, concise design. JGraph X provides a simple, powerful API, as well a more application-centric feature set. -The result is a low learning curve and faster implementation of customizations in your development. JGraph X shares the -core model of mxGraph, so your JGraph X application more easily ports directly to an mxGraph web application - This package contains javadoc for %{name}. %prep - -%setup -q -n jgraphx -for j in $(find . -name "*.jar"); do - mv $j ${j}.no -done -for j in $(find . -name "*.class"); do - mv $j ${j}.no -done +%setup -q -n jgraphx-%{version} +sed -i 's/1.5/1.7/g' pom.xml %build -export JAVA_HOME=/usr/lib/jvm/java -ant all +# NOTE: scilab 6.1.0 requires this package built with openjdk8 +export JAVA_HOME=%{_jvmdir}/java-8-openjdk +mvn -DskipTests=true clean package + %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} -install -pm 644 lib/jgraphx.jar \ +install -pm 644 target/jgraphx-%{version}.jar \ %{buildroot}%{_javadir}/jgraphx-%{version}.jar - ( cd %{buildroot}%{_javadir} for jar in *-%{version}.jar; do @@ -74,14 +59,18 @@ ln -sf jgraphx-%{version} %{buildroot}%{_javadocdir}/jgraphx %defattr(-,root,root) %{_javadir}/jgraphx-%{version}.jar %{_javadir}/jgraphx.jar -%doc license.txt examples +%doc license.txt %files javadoc %defattr(-,root,root) %{_javadocdir}/jgraphx-%{version} %{_javadocdir}/jgraphx +%doc examples %changelog +* Sun Apr 11 2021 Silvan Calarco 3.9.12-1mamba +- update to 3.9.12 + * Fri Feb 04 2011 gil 1.4.1.0-1mamba - update to 1.4.1.0