Skip to content
Commits on Source (11)
libapache-poi-java (3.10.1-4) unstable; urgency=medium
* Team upload.
* Fixed the test failures with Java 9 (Closes: #893250)
* Downgraded the ant dependency to "Suggests" level (Closes: #856693)
* Removed Damien Raude-Morvan from the uploaders (Closes: #889320)
* Properly install the poi-excelant jar
* Build with the DH sequencer instead of CDBS
* Standards-Version updated to 4.1.5
* Switch to debhelper level 10
* Use salsa.debian.org Vcs-* URLs
* Use a secure URL in debian/watch
-- Emmanuel Bourg <ebourg@apache.org> Tue, 24 Jul 2018 13:55:38 +0200
libapache-poi-java (3.10.1-3) unstable; urgency=medium
* Team upload.
......
docs/skin/css/
ooxml-lib/*.jar
......@@ -2,14 +2,14 @@ Source: libapache-poi-java
Section: java
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Uploaders: Rene Engelhard <rene@debian.org>,
Uploaders:
Rene Engelhard <rene@debian.org>,
Torsten Werner <twerner@debian.org>,
Damien Raude-Morvan <drazzib@debian.org>,
Emmanuel Bourg <ebourg@apache.org>
Build-Depends: ant,
Build-Depends:
ant,
ant-optional,
cdbs,
debhelper (>= 9),
debhelper (>= 10~),
default-jdk,
javahelper,
junit4,
......@@ -19,21 +19,21 @@ Build-Depends: ant,
liblog4j1.2-java,
libxmlbeans-java,
maven-repo-helper
Standards-Version: 3.9.8
Vcs-Git: https://anonscm.debian.org/git/pkg-java/libapache-poi-java.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/libapache-poi-java.git
Standards-Version: 4.1.5
Vcs-Git: https://salsa.debian.org/java-team/libapache-poi-java.git
Vcs-Browser: https://salsa.debian.org/java-team/libapache-poi-java
Homepage: http://poi.apache.org
Package: libapache-poi-java
Architecture: all
Depends: ant,
Depends:
libcommons-codec-java,
libcommons-logging-java,
libdom4j-java,
liblog4j1.2-java,
libxmlbeans-java,
${misc:Depends}
Suggests: libapache-poi-java-doc
Suggests: libapache-poi-java-doc, ant
Conflicts: libjakarta-poi-java
Replaces: libjakarta-poi-java
Provides: libjakarta-poi-java
......
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Apache POI
Source: http://poi.apache.org
......
# some compatibility symlinks
/usr/share/java/poi.jar /usr/share/java/jakarta-poi.jar
/usr/share/java/poi-scratchpad.jar /usr/share/java/jakarta-scratchpad-poi.jar
/usr/share/java/poi.jar /usr/share/java/jakarta-poi.jar
Description: Fixes the test failures with Java 9
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/scratchpad/testcases/org/apache/poi/hmef/TestAttachments.java
+++ b/src/scratchpad/testcases/org/apache/poi/hmef/TestAttachments.java
@@ -82,9 +82,7 @@
List<Attachment> attachments = quick.getAttachments();
// Pick a predictable date format + timezone
- DateFormat fmt = DateFormat.getDateTimeInstance(
- DateFormat.MEDIUM, DateFormat.MEDIUM, Locale.UK
- );
+ DateFormat fmt = new java.text.SimpleDateFormat("dd-MMM-yyyy HH:mm:ss", Locale.UK);
fmt.setTimeZone(TimeZone.getTimeZone("UTC"));
// They should all have the same date on them
--- a/src/scratchpad/testcases/org/apache/poi/hmef/attribute/TestMAPIAttributes.java
+++ b/src/scratchpad/testcases/org/apache/poi/hmef/attribute/TestMAPIAttributes.java
@@ -149,9 +149,7 @@
assertEquals(MAPIDateAttribute.class, attr.getClass());
MAPIDateAttribute date = (MAPIDateAttribute)attr;
- DateFormat fmt = DateFormat.getDateTimeInstance(
- DateFormat.MEDIUM, DateFormat.MEDIUM, Locale.UK
- );
+ DateFormat fmt = new java.text.SimpleDateFormat("dd-MMM-yyyy HH:mm:ss", Locale.UK);
fmt.setTimeZone(TimeZone.getTimeZone("UTC"));
assertEquals("15-Dec-2010 14:46:31", fmt.format(date.getDate()));
--- a/src/scratchpad/testcases/org/apache/poi/hmef/attribute/TestTNEFAttributes.java
+++ b/src/scratchpad/testcases/org/apache/poi/hmef/attribute/TestTNEFAttributes.java
@@ -159,9 +159,7 @@
// Ask for it as a Java date, and have it converted
// Pick a predictable format + location + timezone
TNEFDateAttribute date = (TNEFDateAttribute)attr;
- DateFormat fmt = DateFormat.getDateTimeInstance(
- DateFormat.MEDIUM, DateFormat.MEDIUM, Locale.UK
- );
+ DateFormat fmt = new java.text.SimpleDateFormat("dd-MMM-yyyy HH:mm:ss", Locale.UK);
fmt.setTimeZone(TimeZone.getTimeZone("UTC"));
assertEquals("28-Apr-2010 12:40:56", fmt.format(date.getDate()));
}
......@@ -3,3 +3,4 @@
05_use-local-ooxml-xsds.patch
06_java8-compatibility.patch
07_CVE-2014-9527.patch
08_java9-compatibility.patch
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/+dfsg//')
PACKAGE := apache-poi
MAVEN_DIST := build/dist
POM_DIR := $(MAVEN_DIST)
JAR_DIR := $(MAVEN_DIST)
JAVA_HOME := /usr/lib/jvm/default-java
ANT_HOME := /usr/share/ant
DEB_JARS := ant ant-junit ant-junit4
DEB_ANT_BUILD_TARGET := jar maven-poms javadocs
DEB_ANT_CHECK_TARGET := test
#DEB_INSTALL_CHANGELOGS_ALL := RELEASE-NOTES.txt
DEB_CHANGELOG_DATETIME = $(shell dpkg-parsechangelog --show-field Date)
DSTAMP = $(shell date '--date=$(DEB_CHANGELOG_DATETIME)' +%Y%m%d)
ANT_ARGS := -Dversion.id=$(VERSION) -DDSTAMP=$(DSTAMP)
clean::
mh_clean
-test -d docs/skin/css && rmdir docs/skin/css
-rm -rf debian/tmp
rm -f ooxml-lib/*.jar
binary-post-install/lib$(PACKAGE)-java::
mh_installpom -plib$(PACKAGE)-java $(POM_DIR)/poi-$(VERSION).pom
mh_installpom -plib$(PACKAGE)-java $(POM_DIR)/poi-scratchpad-$(VERSION).pom
mh_installpom -plib$(PACKAGE)-java $(POM_DIR)/poi-ooxml-$(VERSION).pom
mh_installpom -plib$(PACKAGE)-java $(POM_DIR)/poi-ooxml-schemas-$(VERSION).pom
mh_installpom -plib$(PACKAGE)-java $(POM_DIR)/poi-excelant-$(VERSION).pom
mh_installjar -plib$(PACKAGE)-java -l $(POM_DIR)/poi-$(VERSION).pom $(JAR_DIR)/poi-$(VERSION).jar
mh_installjar -plib$(PACKAGE)-java -l $(POM_DIR)/poi-scratchpad-$(VERSION).pom $(JAR_DIR)/poi-scratchpad-$(VERSION).jar
mh_installjar -plib$(PACKAGE)-java -l $(POM_DIR)/poi-ooxml-$(VERSION).pom $(JAR_DIR)/poi-ooxml-$(VERSION).jar
mh_installjar -plib$(PACKAGE)-java -l $(POM_DIR)/poi-ooxml-schemas-$(VERSION).pom $(JAR_DIR)/poi-ooxml-schemas-$(VERSION).jar
mh_installjar -plib$(PACKAGE)-java -l $(POM_DIR)/poi-excelant-$(VERSION).pom $(JAR_DIR)/poi-ooxml-schemas-$(VERSION).jar
jh_classpath -plib$(PACKAGE)-java
get-orig-source:
debian/orig-tar.sh --upstream-version $(VERSION)
include /usr/share/dpkg/pkg-info.mk
VERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's/+dfsg//')
%:
dh $@ --with maven-repo-helper --with javahelper
override_dh_auto_build:
dh_auto_build -- -Dversion.id=$(VERSION) -DDSTAMP=$(shell date '--date=@$(SOURCE_DATE_EPOCH)' +%Y%m%d) jar maven-poms javadocs
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
dh_auto_build -- test
endif
override_dh_auto_install:
mh_installpom -plibapache-poi-java build/dist/poi-$(VERSION).pom
mh_installpom -plibapache-poi-java build/dist/poi-scratchpad-$(VERSION).pom
mh_installpom -plibapache-poi-java build/dist/poi-ooxml-$(VERSION).pom
mh_installpom -plibapache-poi-java build/dist/poi-ooxml-schemas-$(VERSION).pom
mh_installpom -plibapache-poi-java build/dist/poi-excelant-$(VERSION).pom
mh_installjar -plibapache-poi-java -l build/dist/poi-$(VERSION).pom build/dist/poi-$(VERSION).jar
mh_installjar -plibapache-poi-java -l build/dist/poi-scratchpad-$(VERSION).pom build/dist/poi-scratchpad-$(VERSION).jar
mh_installjar -plibapache-poi-java -l build/dist/poi-ooxml-$(VERSION).pom build/dist/poi-ooxml-$(VERSION).jar
mh_installjar -plibapache-poi-java -l build/dist/poi-ooxml-schemas-$(VERSION).pom build/dist/poi-ooxml-schemas-$(VERSION).jar
mh_installjar -plibapache-poi-java -l build/dist/poi-excelant-$(VERSION).pom build/dist/poi-excelant-$(VERSION).jar
version=3
http://archive.apache.org/dist/poi/release/src/poi-src-([\d\.]*)-(?:.*).*.tar.gz debian debian/orig-tar.sh
https://archive.apache.org/dist/poi/release/src/poi-src-([\d\.]*)-(?:.*).*.tar.gz debian debian/orig-tar.sh