Import Debian changes 2.7-ok1

xmlgraphics-commons (2.7-ok1) yangtze; urgency=medium

  * Build for openKylin.
This commit is contained in:
zhouganqing 2022-11-17 16:23:26 +08:00
parent 2f5ac4040c
commit 92f7876cc1
14 changed files with 135 additions and 0 deletions

6
debian/changelog vendored Normal file
View File

@ -0,0 +1,6 @@
xmlgraphics-commons (2.7-ok1) yangtze; urgency=medium
* Build for openKylin.
-- zhouganqing <zhouganqing@kylinos.cn> Thu, 17 Nov 2022 16:23:26 +0800

1
debian/clean vendored Normal file
View File

@ -0,0 +1 @@
build/

49
debian/control vendored Normal file
View File

@ -0,0 +1,49 @@
Source: xmlgraphics-commons
Section: java
Priority: optional
Maintainer: OpenKylin Developers <packaging@lists.openkylin.top>
Build-Depends:
debhelper-compat (= 13),
default-jdk,
default-jdk-doc,
gnupg,
junit4,
libcommons-io-java (>= 1.3.1),
libcommons-logging-java,
libmaven-javadoc-plugin-java,
libmockito-java,
libxml-commons-resolver1.1-java,
maven-debian-helper (>= 2.2)
Standards-Version: 4.6.0
Vcs-Git: https://gitee.com/openkylin/xmlgraphics-commons.git
Vcs-Browser: https://gitee.com/openkylin/xmlgraphics-commons
Homepage: http://xmlgraphics.apache.org/commons/
Rules-Requires-Root: no
Package: libxmlgraphics-commons-java
Architecture: all
Depends: ${maven:Depends}, ${misc:Depends}
Suggests: libxmlgraphics-commons-java-doc, ${maven:OptionalDepends}
Description: Reusable components used by Batik and FOP
Apache XML Graphics Commons is a library that consists of several
reusable components used by Apache Batik and Apache FOP. Many of these
components can easily be used separately outside the domains of SVG and
XSL-FO. You will find components such as a PDF library, an RTF library,
Graphics2D implementations that let you generate PDF & PostScript
files, and much more.
Package: libxmlgraphics-commons-java-doc
Architecture: all
Section: doc
Depends: ${maven:DocDepends}, ${misc:Depends}
Recommends: ${maven:DocOptionalDepends}
Suggests: libxmlgraphics-commons-java
Description: Reusable components used by Batik and FOP (documentation)
Apache XML Graphics Commons is a library that consists of several
reusable components used by Apache Batik and Apache FOP. Many of these
components can easily be used separately outside the domains of SVG and
XSL-FO. You will find components such as a PDF library, an RTF library,
Graphics2D implementations that let you generate PDF & PostScript
files, and much more.
.
This package includes the documentation.

19
debian/copyright vendored Normal file
View File

@ -0,0 +1,19 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: xmlgraphics-commons
Upstream-Contact: Chris Bowditch, Thomas DeWeese, Christian Geisert,
Clay Leeds, Jeremias Märki, Cameron McCormack, Simon Pepping, Jörg
Pietschmann
Source: https://xmlgraphics.apache.org/commons/
Files: *
Copyright: 2006, The Apache Software Foundation
License: Apache-2.0
Files: debian/*
Copyright: 2007, Arnaud Vandyck <avdyk@debian.org>,
2011, Damien Raude-Morvan <drazzib@debian.org>
License: Apache-2.0
License: Apache-2.0
On Debian GNU/Linux system you can find the complete text of the
Apache-2.0 license in '/usr/share/common-licenses/Apache-2.0'

View File

@ -0,0 +1,9 @@
Document: libxmlgraphics-commons-java-doc
Title: API documentation for libxmlgraphics-commons-java
Author:
Abstract: This is the API documentation for libxmlgraphics-commons-java
Section: Programming/Java
Format: HTML
Index: /usr/share/doc/libxmlgraphics-commons-java/api/index.html
Files: /usr/share/doc/libxmlgraphics-commons-java/api/*.html

View File

@ -0,0 +1 @@
target/apidocs/* usr/share/doc/libxmlgraphics-commons-java/api

View File

@ -0,0 +1 @@
pom.xml --java-lib

2
debian/maven.ignoreRules vendored Normal file
View File

@ -0,0 +1,2 @@
org.apache.maven.plugins maven-checkstyle-plugin
org.codehaus.mojo findbugs-maven-plugin

1
debian/maven.rules vendored Normal file
View File

@ -0,0 +1 @@
junit junit * s/.*/4.x/ * *

View File

@ -0,0 +1,32 @@
From 2146f4a44fbee1e3aef12e56ae3d904e793090cd Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 26 Feb 2021 19:10:10 +0000
Subject: [PATCH] XMPSchemaAdapter.java: Use UTC timezone when
SOURCE_DATE_EPOCH is set.
SOURCE_DATE_EPOCH specifies the timestamp, but needs to be rendered in
UTC timezone to ensure reproducible builds.
https://reproducible-builds.org/docs/source-date-epoch/
This is a follow-up to https://bugs.debian.org/978499 in apache fop,
as there is no way for fop itself to pass the timezone information for
some values.
---
.../java/org/apache/xmlgraphics/xmp/XMPSchemaAdapter.java | 5 +++++
1 file changed, 5 insertions(+)
--- a/src/main/java/org/apache/xmlgraphics/xmp/XMPSchemaAdapter.java
+++ b/src/main/java/org/apache/xmlgraphics/xmp/XMPSchemaAdapter.java
@@ -157,6 +157,11 @@
* @return the formatted date
*/
public static String formatISO8601Date(Date dt) {
+ // https://reproducible-builds.org/docs/source-date-epoch/
+ String source_date_epoch = System.getenv("SOURCE_DATE_EPOCH");
+ if (source_date_epoch != null) {
+ return formatISO8601Date(dt, TimeZone.getTimeZone("Etc/UTC"));
+ }
return formatISO8601Date(dt, TimeZone.getDefault());
}

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
0001-XMPSchemaAdapter.java-Use-UTC-timezone-when-SOURCE_D.patch

9
debian/rules vendored Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/make -f
export JAVA_HOME=/usr/lib/jvm/default-java
# unexport DISPLAY for so cowbuilder builds don't fail
unexport DISPLAY
%:
dh $@ --buildsystem=maven

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

3
debian/watch vendored Normal file
View File

@ -0,0 +1,3 @@
version=3
opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/,pgpsigurlmangle=s/$/.asc/ \
https://www.apache.org/dist/xmlgraphics/commons/source/xmlgraphics-commons-(\d.*)-src\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) debian jh_repack