[jexcelapi] Initial commit

Andy Grimm arg at fedoraproject.org
Wed Mar 7 19:25:13 UTC 2012


commit e6281418a07718684acfc9d3694870e66d3f3d80
Author: Andy Grimm <agrimm at gmail.com>
Date:   Wed Mar 7 08:19:41 2012 -0500

    Initial commit

 .gitignore            |    1 +
 jexcelapi-build.patch |   36 +++++++++++++++
 jexcelapi.spec        |  117 +++++++++++++++++++++++++++++++++++++++++++++++++
 jxl-2.6.12.pom        |   43 ++++++++++++++++++
 sources               |    1 +
 5 files changed, 198 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d320b1d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jexcelapi_2_6_12.tar.gz
diff --git a/jexcelapi-build.patch b/jexcelapi-build.patch
new file mode 100644
index 0000000..1f06cea
--- /dev/null
+++ b/jexcelapi-build.patch
@@ -0,0 +1,36 @@
+--- jexcelapi.orig/build/build.xml	2009-05-26 10:50:16.000000000 -0400
++++ jexcelapi/build/build.xml	2012-02-16 04:48:00.912442786 -0500
+@@ -29,7 +29,7 @@
+   <target name="xllex" depends="init" unless="xllex.notrequired">
+     <java classname="jlex.Main">
+       <arg value="${xllexfile}" />
+-      <classpath path="." />
++      <classpath path="/usr/share/java/jlex.jar" />
+     </java>
+     <copy file="${xllexfile}.java" tofile="${genlextargetfile}" />
+   </target>
+@@ -39,7 +39,7 @@
+       <arg value="--jlex" />
+       <arg value="--nobak" />
+       <arg value="${jflexfile}" />
+-      <classpath path="JFlex.jar" />
++      <classpath path="/usr/share/java/jflex.jar:/usr/share/java/java_cup.jar" />
+     </java>
+     <copy file="Yylex.java" tofile="${genlextargetfile}" />
+   </target>
+@@ -54,6 +54,7 @@
+     <javac destdir="${outputDir}" 
+            classpath=".:${loggerClasspath}" 
+            srcdir="${sourceDir}"
++           encoding="ISO8859-1"
+            debug="true" 
+            deprecation="on">
+       <include name="jxl/*.java" />
+@@ -84,6 +85,7 @@
+     <javadoc sourcepath="${sourceDir}"
+              destdir="${docsDir}"
+              public="true"
++             encoding="ISO8859-1"
+              nodeprecated="false">
+       <package name="jxl" />
+       <package name="jxl.write" />
diff --git a/jexcelapi.spec b/jexcelapi.spec
new file mode 100644
index 0000000..7549746
--- /dev/null
+++ b/jexcelapi.spec
@@ -0,0 +1,117 @@
+%global oname jxl
+
+Name:           jexcelapi
+Version:        2.6.12
+Release:        3%{?dist}
+Summary:        A Java API to read, write and modify Excel spreadsheets
+License:        LGPLv3
+Group:          Development/Libraries
+URL:            http://www.andykhan.com/jexcelapi
+Source0:        http://www.andykhan.com/jexcelapi/jexcelapi_2_6_12.tar.gz
+Source1:        http://repo1.maven.org/maven2/net/sourceforge/jexcelapi/jxl/2.6.12/jxl-2.6.12.pom
+Patch0:         jexcelapi-build.patch
+Requires:       java >= 0:1.5.0
+Requires:       log4j >= 0:1.2.7
+Requires:       jpackage-utils
+
+BuildRequires:  jpackage-utils >= 0:1.7.3
+BuildRequires:  java-devel >= 0:1.5.0
+BuildRequires:  ant
+BuildRequires:  jflex
+BuildRequires:  jlex
+BuildRequires:  findutils
+BuildRequires:  sed
+BuildRequires:  log4j
+BuildArch:      noarch
+
+%description
+Jexcelapi allows Java developers to read Excel spreadsheets and generate Excel
+spreadsheets dynamically. In addition, it contains a mechanism which allows
+Java applications to read a spreadsheet, modify some cells and write the
+modified spreadsheet.
+
+Thanks to jexcelapi non Windows operating systems can run pure Java applications
+which process and deliver Excel spreadsheets. Because it is Java, this API may
+be invoked from within a servlet, thus giving access to Excel functionality
+over internet and intranet web applications.
+
+Features:
+- Reads data from Excel 95, 97, 2000 workbooks
+- Reads and writes formulas (Excel 97 and later only)
+- Generates spreadsheets in Excel 97 format
+- Supports font, number and date formatting
+- Supports shading and coloring of cells
+- Modifies existing worksheets
+
+
+%package        javadoc
+Group:          Documentation
+Summary:        API documentation for %{name}
+Requires:       jpackage-utils
+
+%description    javadoc
+API documentation for %{name}.
+
+%prep
+%setup -n %{name} -q
+
+# Clean up binary leftovers
+find . -name "*.jar" -exec rm -f {} \;
+find . -name "*.class" -exec rm -f {} \;
+
+# Clean up temp files (confuses javadoc 1.3.1)
+find . -name ".#*" -exec rm -f {} \;
+
+%patch0 -p1 -b .build
+
+%build
+pushd build
+cat > build.properties <<EOBP
+logger=Log4jLogger
+loggerClasspath=$(build-classpath log4j)
+EOBP
+
+[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
+export CLASSPATH=$(build-classpath jlex jflex)
+
+mkdir out
+ant jxlall
+popd
+
+# html doc files should not be executable
+chmod -x index.html tutorial.html
+
+%install
+# jars
+install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}/%{name}
+install -m 0644 jxl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+ln -s %{name}.jar $RPM_BUILD_ROOT%{_javadir}/jxl.jar
+
+# pom
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+# javadoc
+install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -r docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+%files
+%doc *.html
+%{_javadir}/*.jar
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+
+%files javadoc
+%doc index.html
+%{_javadocdir}/%{name}
+
+%changelog
+* Wed Mar  1 2012 Andy Grimm <agrimm at gmail.com> - 2.6.12-3
+- add jpackage-utils requirement for javadoc subpackage
+
+* Thu Feb 16 2012 Andy Grimm <agrimm at gmail.com> - 2.6.12-2
+- bug fixes
+
+* Thu Feb 16 2012 Andy Grimm <agrimm at gmail.com> - 2.6.12-1
+- Initial package
diff --git a/jxl-2.6.12.pom b/jxl-2.6.12.pom
new file mode 100644
index 0000000..b5abd3e
--- /dev/null
+++ b/jxl-2.6.12.pom
@@ -0,0 +1,43 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>net.sourceforge.jexcelapi</groupId>
+  <artifactId>jxl</artifactId>
+  <packaging>jar</packaging>
+  <version>2.6.12</version>
+  <name>jxl</name>
+  <url>http://www.jexcelapi.org</url>
+  <description>JExcelApi is a java library which provides the ability to read, write, and modify Microsoft Excel spreadsheets.</description>
+  <licenses>
+    <license>
+      <name>GNU Lesser General Public License</name>
+      <url>http://www.opensource.org/licenses/lgpl-license.php</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <scm>
+    <connection>scm:cvs:pserver:anonymous at jexcelapi.cvs.sourceforge.net:/cvsroot/jexcelapi:jexcelapi</connection>
+	<developerConnection>scm:cvs:ext:developername at jexcelapi.cvs.sourceforge.net:/cvsroot/jexcelapi:jexcelapi</developerConnection>
+	<url>http://jexcelapi.cvs.sourceforge.net/jexcelapi/</url>
+  </scm>
+  <developers>
+    <developer>
+	  <id>andyk</id>
+	  <name>Andy Khan</name>
+	  <url>http://www.andykhan.com/</url>
+	</developer>
+  </developers>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <version>1.2.14</version>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/sources b/sources
index e69de29..e90eb42 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+475967d2e9a6f38428fab24e6dfa4e93  jexcelapi_2_6_12.tar.gz


More information about the scm-commits mailing list