rpms/jeuclid/F-10 AppleJavaExtensions.patch, NONE, 1.1 MacOSX.patch, NONE, 1.1 build.xml, NONE, 1.1 import.log, NONE, 1.1 jeuclid-cli.sh, NONE, 1.1 jeuclid-core-FreeHep.patch, NONE, 1.1 jeuclid-mathviewer.desktop, NONE, 1.1 jeuclid-mathviewer.sh, NONE, 1.1 jeuclid.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Brennan Ashton
bashton at fedoraproject.org
Sun Dec 21 08:49:39 UTC 2008
- Previous message (by thread): rpms/jeuclid/devel AppleJavaExtensions.patch, NONE, 1.1 MacOSX.patch, NONE, 1.1 build.xml, NONE, 1.1 import.log, NONE, 1.1 jeuclid-core-FreeHep.patch, NONE, 1.1 jeuclid-mathviewer.desktop, NONE, 1.1 jeuclid-mathviewer.sh, NONE, 1.1 jeuclid.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/vdradmin-am/F-10 .cvsignore, 1.11, 1.12 sources, 1.11, 1.12 vdradmin-am.spec, 1.13, 1.14 vdradmin-am-3.4.5a-proctitle.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: bashton
Update of /cvs/pkgs/rpms/jeuclid/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17952/F-10
Modified Files:
.cvsignore sources
Added Files:
AppleJavaExtensions.patch MacOSX.patch build.xml import.log
jeuclid-cli.sh jeuclid-core-FreeHep.patch
jeuclid-mathviewer.desktop jeuclid-mathviewer.sh jeuclid.spec
Log Message:
Initial package import
AppleJavaExtensions.patch:
--- NEW FILE AppleJavaExtensions.patch ---
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationAdapter.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationAdapter.java 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,36 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public class ApplicationAdapter {
+ public void handleAbout(ApplicationEvent event) {}
+ public void handleOpenApplication(ApplicationEvent event) {}
+ public void handleOpenFile(ApplicationEvent event) {}
+ public void handlePreferences(ApplicationEvent event) {}
+ public void handlePrintFile(ApplicationEvent event) {}
+ public void handleQuit(ApplicationEvent event) {}
+ public void handleReOpenApplication(ApplicationEvent event) {}
+}
+
+
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationBeanInfo.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationBeanInfo.java 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,29 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public class ApplicationBeanInfo extends java.beans.SimpleBeanInfo
+{
+ public java.awt.Image getIcon(int iconKind) { return null; }
+}
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationEvent.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationEvent.java 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,34 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public class ApplicationEvent extends java.util.EventObject implements
+java.io.Serializable
+{
+ public ApplicationEvent(Object source) { super(source); }
+ public java.lang.String getFilename() { return null; }
+ public boolean isHandled() { return false; }
+ public void setHandled(boolean state) {}
+}
+
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/Application.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/Application.java 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,45 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public class Application
+{
+ public Application() { }
+ public void addAboutMenuItem() {}
+ public void addApplicationListener(ApplicationListener listener) {}
+ public void addPreferencesMenuItem() {}
+ public static Application getApplication() { return null; }
+ public boolean getEnabledAboutMenu() { return false; }
+ public boolean getEnabledPreferencesMenu() { return false; }
+ public static java.awt.Point getMouseLocationOnScreen() { return
+null; }
+ public boolean isAboutMenuItemPresent() { return false; }
+ public boolean isPreferencesMenuItemPresent() { return false; }
+ public void removeAboutMenuItem() {}
+ public void removeApplicationListener(ApplicationListener listener)
+{}
+ public void removePreferencesMenuItem() {}
+ public void setEnabledAboutMenu(boolean enable) {}
+ public void setEnabledPreferencesMenu(boolean enable) {}
+}
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationListener.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationListener.java 2008-08-15 19:47:48.000000000 +0200
@@ -0,0 +1,35 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public interface ApplicationListener extends java.util.EventListener
+{
+ public void handleAbout(ApplicationEvent event);
+ public void handleOpenApplication(ApplicationEvent event);
+ public void handleOpenFile(ApplicationEvent event);
+ public void handlePreferences(ApplicationEvent event);
+ public void handlePrintFile(ApplicationEvent event);
+ public void handleQuit(ApplicationEvent event);
+ public void handleReOpenApplication(ApplicationEvent event);
+}
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/CocoaComponent.java 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/CocoaComponent.java 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,31 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc published at
+ * http://developer.apple.com. It makes compiling code which uses Apple EAWT
+ * on non-Mac platforms possible.
+ */
+
+
+package com.apple.eawt;
+
+public abstract class CocoaComponent extends java.awt.Canvas
+{
+ public abstract int createNSView();
+ public long createNSViewLong() { return 0; }
+ public abstract java.awt.Dimension getMaximumSize();
+ public abstract java.awt.Dimension getMinimumSize();
+ public abstract java.awt.Dimension getPreferredSize();
+ public void sendMessage(int messageID, java.lang.Object message) {}
+}
+
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/package 1970-01-01 01:00:00.000000000 +0100
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/package 2008-08-15 19:46:42.000000000 +0200
@@ -0,0 +1,35 @@
+/*
+ * Sun Public License Notice
+ *
+ * The contents of this file are subject to the Sun Public License
+ * Version 1.0 (the "License"). You may not use this file except in
+ * compliance with the License. A copy of the License is available at
+ * http://www.sun.com/
+ *
+ * The Original Code is NetBeans. The Initial Developer of the Original
+ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
+ * Microsystems, Inc. All Rights Reserved.
+ */
+
+/* this is stub code written based on Apple EAWT package javadoc
+published at
+ * http://developer.apple.com. It makes compiling code which uses Apple
+EAWT
+ * on non-Mac platforms possible. The compiled stub classes should
+never be
+ * included in the final product.
+ */
+
+package com.apple.eawt;
+
+public interface ApplicationListener extends java.util.EventListener
+{
+ public void handleAbout(ApplicationEvent event);
+ public void handleOpenApplication(ApplicationEvent event);
+ public void handleOpenFile(ApplicationEvent event);
+ public void handlePreferences(ApplicationEvent event);
+ public void handlePrintFile(ApplicationEvent event);
+ public void handleQuit(ApplicationEvent event);
+ public void handleReOpenApplication(ApplicationEvent event);
+}
+
MacOSX.patch:
--- NEW FILE MacOSX.patch ---
--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/net/sourceforge/jeuclid/app/mathviewer/MathViewer.java 2008-06-03 12:02:46.000000000 +0200
+++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/net/sourceforge/jeuclid/app/mathviewer/MathViewer.java 2008-08-15 20:11:59.000000000 +0200
@@ -86,13 +86,13 @@
public void run() {
final MainFrame mainFrame = new MainFrame();
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- if (MathViewer.OSX) {
+/* if (MathViewer.OSX) {
final Application a = Application.getApplication();
a.setEnabledAboutMenu(true);
a.setEnabledPreferencesMenu(true);
a.addApplicationListener(new MainFrameAppListener(
mainFrame));
- }
+ }*/
if (MathViewer.source != null) {
mainFrame.loadFile(MathViewer.source);
}
--- NEW FILE build.xml ---
<project default="compile-core" basedir="." name="jeuclid">
<property name="build.directory" value="target"/>
<property name="build.output" value="${build.directory}/classes"/>
<property environment="env"/>
<path id="libs-build-classpath">
<fileset dir="./lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="init" description="Init dependencies">
<mkdir dir="${build.directory}"/>
<echo message="------------------- ${ant.project.name} ----------------"/>
<echo message="${ant.version}"/>
<echo message="VM: ${java.vm.version}, ${java.vm.vendor}"/>
<echo message="JAVA_HOME: ${env.JAVA_HOME}"/>
<available property="ant.present" classname="org.apache.tools.ant.BuildException" classpathref="libs-build-classpath"/>
<condition property="ant.message" value="ANT Support PRESENT">
<equals arg1="${ant.present}" arg2="true"/>
</condition>
<condition property="ant.message" value="ANT Support NOT Present">
<not>
<equals arg1="${ant.present}" arg2="true"/>
</not>
</condition>
<echo message="${ant.message}"/>
<available property="batik.present" classname="org.apache.batik.dom.AbstractNode" classpathref="libs-build-classpath"/>
<condition property="batik.message" value="Batik Support PRESENT">
<equals arg1="${batik.present}" arg2="true"/>
</condition>
<condition property="batik.message" value="Batik Support NOT Present">
<not>
<equals arg1="${batik.present}" arg2="true"/>
</not>
</condition>
<echo message="${batik.message}"/>
<available property="logging.present" classname="org.apache.commons.logging.LogFactory" classpathref="libs-build-classpath"/>
<condition property="logging.message" value="commons-logging Support PRESENT">
<equals arg1="${logging.present}" arg2="true"/>
</condition>
<condition property="logging.message" value="commons-logging Support NOT Present">
<not>
<equals arg1="${logging.present}" arg2="true"/>
</not>
</condition>
<echo message="${logging.message}"/>
<!--
<available property="freeheputil.present" classname="org.freehep.util.export.ExportFileType" classpathref="libs-build-classpath"/>
<condition property="freeheputil.message" value="FreeHep Util Support PRESENT">
<equals arg1="${freeheputil.present}" arg2="true"/>
</condition>
<condition property="freeheputil.message" value="FreeHep Util Support NOT Present">
<not>
<equals arg1="${freeheputil.present}" arg2="true"/>
</not>
</condition>
<echo message="${freeheputil.message}"/>
<available property="freehepgraph.present" classname="org.freehep.graphics2d.VectorGraphics" classpathref="libs-build-classpath"/>
<condition property="freehepgraph.message" value="FreeHep Graphics2D Support PRESENT">
<equals arg1="${freehepgraph.present}" arg2="true"/>
</condition>
<condition property="freehepgraph.message" value="FreeHep Graphics2D Support NOT Present">
<not>
<equals arg1="${freehepgraph.present}" arg2="true"/>
</not>
</condition>
<echo message="${freehepgraph.message}"/>
-->
<available property="xmlext.present" classname="org.xml.sax.InputSource" classpathref="libs-build-classpath"/>
<condition property="xmlext.message" value="xml-commons-external Support PRESENT">
<equals arg1="${xmlext.present}" arg2="true"/>
</condition>
<condition property="xmlext.message" value="xml-commons-external Support NOT Present">
<not>
<equals arg1="${xmlext.present}" arg2="true"/>
</not>
</condition>
<echo message="${xmlext.message}"/>
<available property="xmlgraphics.present" classname="org.apache.xmlgraphics.util.ClasspathResource" classpathref="libs-build-classpath"/>
<condition property="xmlgraphics.message" value="xmlgraphics-commons Support PRESENT">
<equals arg1="${xmlgraphics.present}" arg2="true"/>
</condition>
<condition property="xmlgraphics.message" value="xmlgraphics-commons Support NOT Present">
<not>
<equals arg1="${xmlgraphics.present}" arg2="true"/>
</not>
</condition>
<echo message="${xmlgraphics.message}"/>
<available property="commonscli.present" classname="org.apache.commons.cli.CommandLine" classpathref="libs-build-classpath"/>
<condition property="commonscli.message" value="commons-cli Support PRESENT">
<equals arg1="${commonscli.present}" arg2="true"/>
</condition>
<condition property="commonscli.message" value="commons-cli Support NOT Present">
<not>
<equals arg1="${commonscli.present}" arg2="true"/>
</not>
</condition>
<echo message="${commonscli.message}"/>
<available property="commonslang.present" classname="org.apache.commons.lang.StringUtils" classpathref="libs-build-classpath"/>
<condition property="commonslang.message" value="commons-lang Support PRESENT">
<equals arg1="${commonslang.present}" arg2="true"/>
</condition>
<condition property="commonslang.message" value="commons-lang Support NOT Present">
<not>
<equals arg1="${commonslang.present}" arg2="true"/>
</not>
</condition>
<echo message="${commonslang.message}"/>
</target>
<target name="compile-core" depends="init" description="Compile the core code">
<property name="package.name" value="jeuclid-core" />
<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="5">
<src>
<pathelement location="${package.name}/src/main/java"/>
</src>
<exclude name="**/FreeHep*" />
<classpath refid="libs-build-classpath"/>
</javac>
<copy todir="${full.build.output.core}">
<fileset dir="${package.name}/src/main/resources"/>
</copy>
<jar jarfile="${build.directory}/${package.name}.jar" basedir="${full.build.output.core}"/>
</target>
<target name="compile-mathviewer" depends="init, compile-core" description="Compile the mathviewer code">
<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="5">
<src>
<pathelement location="${package.name.mathviewer}/src/main/java"/>
</src>
<exclude name="**/FreeHep*" />
<classpath>
<fileset dir="${build.directory}">
<include name="jeuclid-core.jar"/>
</fileset>
<path refid="libs-build-classpath"/>
</classpath>
</javac>
<copy todir="${full.build.output.mathviewer}">
<fileset dir="${package.name.mathviewer}/src/main/resources"/>
</copy>
<jar jarfile="${build.directory}/${package.name.mathviewer}.jar" basedir="${full.build.output.mathviewer}">
<manifest>
<attribute name="Main-Class" value="net.sourceforge.jeuclid.app.mathviewer.MathViewer"/>
</manifest>
</jar>
</target>
<target name="compile-cli" depends="init, compile-core" description="Compile the jeuclid cli">
<property name="package.name.cli" value="jeuclid-cli" />
<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="5">
<src>
<pathelement location="${package.name.cli}/src/main/java"/>
</src>
<classpath>
<fileset dir="${build.directory}">
<include name="jeuclid-core.jar"/>
</fileset>
<path refid="libs-build-classpath"/>
</classpath>
</javac>
<jar jarfile="${build.directory}/${package.name.cli}.jar" basedir="${full.build.output.cli}">
<manifest>
<attribute name="Main-Class" value="net.sourceforge.jeuclid.app.Mml2xxx"/>
</manifest>
</jar>
</target>
<target name="compile-fop" depends="init, compile-core" description="Compile the jeuclid fop">
<property name="package.name.fop" value="jeuclid-fop" />
<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="5">
<src>
<pathelement location="${package.name.fop}/src/main/java"/>
</src>
<classpath>
<fileset dir="${build.directory}">
<include name="jeuclid-core.jar"/>
</fileset>
<path refid="libs-build-classpath"/>
</classpath>
</javac>
<copy todir="${full.build.output.fop}">
<fileset dir="${package.name.fop}/src/main/resources"/>
</copy>
<jar jarfile="${build.directory}/${package.name.fop}.jar" basedir="${full.build.output.fop}"/>
</target>
<!-- Clean sources -->
<!--
<target name="clean" description="clean sources">
<delete dir="${build.directory}"/>
<delete dir="jeuclid-core/${build.directory}"/>
<delete dir="jeuclid-mathviewer/${build.directory}"/>
<delete dir="jeuclid-cli/${build.directory}"/>
<delete dir="jeuclid-fop/${build.directory}"/>
</target>
-->
</project>
--- NEW FILE import.log ---
jeuclid-3_1_3-9_fc10:F-10:jeuclid-3.1.3-9.fc10.src.rpm:1229849299
--- NEW FILE jeuclid-cli.sh ---
#!/bin/bash
. /usr/share/java-utils/java-functions
MAIN_CLASS=net.sourceforge.jeuclid.app.Mml2xxx
set_classpath "commons-logging commons-cli commons-lang xmlgraphics-commons batik-all commons-io jeuclid-core jeuclid-cli"
run "$@"
jeuclid-core-FreeHep.patch:
--- NEW FILE jeuclid-core-FreeHep.patch ---
--- 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);
}
/**
--- NEW FILE jeuclid-mathviewer.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=Jeuclid-MathViewer
GenericName=Jeuclid-MathViewer
Comment=View MathML files
Exec=jeuclid-mathviewer
Icon=/usr/share/icons/hicolor/48x48/apps/jeuclid_48x48.png
Terminal=false
Type=Application
Categories=Graphics;Math;Science;
--- NEW FILE jeuclid-mathviewer.sh ---
#!/bin/bash
. /usr/share/java-utils/java-functions
MAIN_CLASS=net.sourceforge.jeuclid.app.mathviewer.MathViewer
set_classpath "commons-logging commons-io xmlgraphics-commons batik-all jeuclid-core jeuclid-mathviewer"
run "$@"
--- NEW FILE jeuclid.spec ---
Name: jeuclid
Version: 3.1.3
Release: 9%{?dist}
Summary: MathML rendering solution
Group: Development/Libraries
License: ASL 2.0 and SPL
URL: http://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
Source2: jeuclid-mathviewer.desktop
Source3: jeuclid-mathviewer.sh
Source4: jeuclid-cli.sh
#removes FreeHep support as per the build README, optional feature (not upstream)
Patch0: jeuclid-core-FreeHep.patch
#Allows for compiling code that uses Apple EAWT without the lib
Patch1: AppleJavaExtensions.patch
#removes OSX dep for the viewer
Patch2: MacOSX.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: jpackage-utils
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: ant
BuildRequires: batik >= 1.7
BuildRequires: jakarta-commons-logging
BuildRequires: jcip-annotations
BuildRequires: xmlgraphics-commons >= 1.3
BuildRequires: fop = 0.95
BuildRequires: jakarta-commons-cli >= 1.1
BuildRequires: jakarta-commons-lang
BuildRequires: desktop-file-utils
Requires: jpackage-utils
Requires: java >= 1:1.6.0
Requires: jakarta-commons-logging
Requires: batik >= 1.7
Requires: xmlgraphics-commons >= 1.3
Requires: jcip-annotations
%description
Core module containing basic JEuclid rendering and document handling classes.
%package mathviewer
Summary: Viewer for MathML files
Group: Applications/Publishing
Requires: %{name} = %{version}-%{release}
Requires: hicolor-icon-theme
%description mathviewer
The %{name}-mathviewer package contains the Swing MathViewer application.
%package fop
Summary: JEuclid plug-in for FOP
Group: Applications/Publishing
Requires: %{name} = %{version}-%{release}
Requires: fop = 0.95
%description fop
The %{name}-fop package is a jeuclid plug-in for FOP.
%package cli
Summary: Command line interface for Jeuclid
Group: Applications/Publishing
Requires: %{name} = %{version}-%{release}
Requires: jakarta-commons-cli >= 1.1
Requires: jakarta-commons-lang
Requires: jakarta-commons-io
%description cli
The %{name}-cli package provides a command line interface for jeuclid
%prep
%setup -q -n %{name}-parent-%{version}
cp %{SOURCE1} %{_builddir}/%{name}-parent-%{version}/
#fix line endings
sed 's/\r//' NOTICE > NOTICE.unix
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 fop commons-cli commons-lang
%patch0 -p1
%patch1 -p1
%patch2 -p1
find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \;
#removes the FreeHep support from the build per the build README
rm -f %{name}-core/src/main/java/net/sourceforge/jeuclid/converter/FreeHep*;
%build
ant compile-core compile-mathviewer compile-cli compile-fop -verbose
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p target/%{name}-core.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-core-%{version}.jar
cp -p target/%{name}-fop.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-fop-%{version}.jar
cp -p target/%{name}-mathviewer.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-mathviewer-%{version}.jar
cp -p target/%{name}-cli.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-cli-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
install -dm 755 $RPM_BUILD_ROOT%{_bindir}
install -pm 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/jeuclid-mathviewer
install -pm 755 %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/jeuclid-cli
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
cp -p src/icons/jeuclid_48x48.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
desktop-file-install --dir=$RPM_BUILD_ROOT/%{_datadir}/applications \
%{SOURCE2}
%clean
rm -rf $RPM_BUILD_ROOT
%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%files
%defattr(-,root,root,-)
%doc NOTICE LICENSE.txt README.Release
%{_javadir}/%{name}-core-%{version}.jar
%{_javadir}/%{name}-core.jar
%files mathviewer
%defattr(-,root,root,-)
%{_javadir}/%{name}-mathviewer-%{version}.jar
%{_javadir}/%{name}-mathviewer.jar
%{_bindir}/jeuclid-mathviewer
%{_datadir}/icons/hicolor/48x48/apps/jeuclid_48x48.png
%{_datadir}/applications/jeuclid-mathviewer.desktop
%files fop
%defattr(-,root,root,-)
%{_javadir}/%{name}-fop-%{version}.jar
%{_javadir}/%{name}-fop.jar
%files cli
%defattr(-,root,root,-)
%{_javadir}/%{name}-cli-%{version}.jar
%{_javadir}/%{name}-cli.jar
%{_bindir}/jeuclid-cli
%changelog
* Tue Dec 9 2008 Brennan Ashton <bashton at, brennanashton.com> 3.1.3-9
- Added missing hicolor-icon-theme build require
- Fixed timestamp issue
- Added GTK icon scriplets
* Fri Nov 27 2008 Brennan Ashton <bashton at, brennanashton.com> 3.1.3-8
- Added cli package
- Fixed build script so subpackages dont all package into one jar
- Added desktop file and java wrapper scripts
* Thu Nov 26 2008 Brennan Ashton <bashton at, brennanashton.com> 3.1.3-7
- Fixed BuildRequires
- Fixed Requires
- Added mathviewer and fop
- mathviewer patch includes SPL code. SPL added to license field
- New build file to manage core mathviewer and fop
* Wed Nov 26 2008 Brennan Ashton <bashton at, brennanashton.com> 3.1.3-6
- Fixed package name
- Added system links to jar files
* Wed Nov 26 2008 Brennan Ashton <bashton at, brennanashton.com> 3.1.3-5
- Fixed trailing white space
- Fixed patch comments
- Fixed search for jar file
* Wed Nov 26 2008 Brennan Ashton <bashton at, brennanashton.com> 3.1.3-4
- Fixed source URL
- Added verbose to ant
* Wed Nov 26 2008 Brennan Ashton <bashton at, brennanashton.com> 3.1.3-3
- Fixed end-of-line-encoding in NOTICE
* Tue Nov 25 2008 Brennan Ashton <bashton at, brennanashton.com> 3.1.3-2
- Added comments to patches
- Removed java-devel from BuildRequires for java-1.6.0-openjdk-devel
- Made arch noarch
* Mon Nov 24 2008 Brennan Ashton <bashton at, brennanashton.com> 3.1.3-1
- Created spec file
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/jeuclid/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 21 Dec 2008 04:33:09 -0000 1.1
+++ .cvsignore 21 Dec 2008 08:49:07 -0000 1.2
@@ -0,0 +1 @@
+jeuclid-parent-3.1.3-src.zip
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/jeuclid/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 21 Dec 2008 04:33:09 -0000 1.1
+++ sources 21 Dec 2008 08:49:08 -0000 1.2
@@ -0,0 +1 @@
+ff3690e649bf0ead5fd2a03c732dc1ce jeuclid-parent-3.1.3-src.zip
- Previous message (by thread): rpms/jeuclid/devel AppleJavaExtensions.patch, NONE, 1.1 MacOSX.patch, NONE, 1.1 build.xml, NONE, 1.1 import.log, NONE, 1.1 jeuclid-core-FreeHep.patch, NONE, 1.1 jeuclid-mathviewer.desktop, NONE, 1.1 jeuclid-mathviewer.sh, NONE, 1.1 jeuclid.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/vdradmin-am/F-10 .cvsignore, 1.11, 1.12 sources, 1.11, 1.12 vdradmin-am.spec, 1.13, 1.14 vdradmin-am-3.4.5a-proctitle.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list