Package init

This commit is contained in:
jeff200902 2020-08-19 14:42:48 +08:00
parent 6e177213d0
commit abf6f22804
5 changed files with 161 additions and 0 deletions

36
jexcelapi-build.patch Normal file
View File

@ -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" />

78
jexcelapi.spec Normal file
View File

@ -0,0 +1,78 @@
%global oname jxl
Name: jexcelapi
Version: 2.6.12
Release: 1
Summary: A Java API to read, write and modify Excel spreadsheets
License: LGPLv3
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: log4j12 jpackage-utils
BuildRequires: jpackage-utils >= 0:1.7.3 java-devel >= 0:1.5.0 javapackages-local ant jflex
BuildRequires: findutils sed log4j12
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
Summary: API documentation for %{name}
%description javadoc
API documentation for %{name}.
%prep
%setup -n %{name} -q
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;
find . -name ".#*" -exec rm -f {} \;
%patch0 -p1 -b .build
sed -i "s|%{_javadir}/jflex.jar|%{_javadir}/jflex/jflex.jar|" build/build.xml
%build
pushd build
cat > build.properties <<EOBP
logger=Log4jLogger
loggerClasspath=$(build-classpath log4j12-1.2.17)
EOBP
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
export CLASSPATH=$(build-classpath jflex)
mkdir out
ant jxlall
popd
chmod -x index.html tutorial.html
%install
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
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
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -r docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%files -f .mfiles
%{_javadir}/jxl.jar
%doc *.html
%files javadoc
%doc index.html
%{_javadocdir}/%{name}
%changelog
* Mon Jul 27 2020 Jeffery.Gao <gaojianxing@huawei.com> - 2.6.12-1
- Package init

4
jexcelapi.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA

BIN
jexcelapi_2_6_12.tar.gz Normal file

Binary file not shown.

43
jxl-2.6.12.pom Normal file
View File

@ -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@jexcelapi.cvs.sourceforge.net:/cvsroot/jexcelapi:jexcelapi</connection>
<developerConnection>scm:cvs:ext:developername@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>