Package: wnpp
Followup-For: Bug #1041488
X-Debbugs-Cc: oltma...@zib.de
Control: tags -1 patch

Please have a look at the following patches. They might be suitable as
an initial seed for a salsa repository for the new package. Please apply
and simply pull in the upstream sources by means of uscan.

Thank you in advance for any support you can provide.

Cheers,

Elias
>From d7ccbe9e1bdbdb0eb25a61b33953e6d68c7e78cb Mon Sep 17 00:00:00 2001
From: Elias Oltmanns <oltma...@zib.de>
Date: Wed, 19 Jul 2023 19:39:57 +0200
Subject: [PATCH 1/2] Initial commit

Closes: #1041488
---
 debian/README.source     | 13 +++++++++++++
 debian/control           | 33 +++++++++++++++++++++++++++++++++
 debian/copyright         | 29 +++++++++++++++++++++++++++++
 debian/libjwat-java.poms | 35 +++++++++++++++++++++++++++++++++++
 debian/maven.ignoreRules | 14 ++++++++++++++
 debian/maven.rules       | 10 ++++++++++
 debian/rules             |  4 ++++
 debian/source/format     |  1 +
 debian/watch             |  2 ++
 9 files changed, 141 insertions(+)
 create mode 100644 debian/README.source
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/libjwat-java.poms
 create mode 100644 debian/maven.ignoreRules
 create mode 100644 debian/maven.rules
 create mode 100755 debian/rules
 create mode 100644 debian/source/format
 create mode 100644 debian/watch

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..d6f8170
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,13 @@
+Information about libjwat-java
+------------------------------
+
+This package was debianized using the mh_make command
+from the maven-debian-helper package.
+
+The build system uses Maven but prevents it from downloading
+anything from the Internet, making the build compliant with
+the Debian policy.
+
+Running the test suite at build time has been disabled in
+debian/maven.properties. This is due to dependencies that have not
+been packaged for Debian.
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..50828a5
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,33 @@
+Source: libjwat-java
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintain...@lists.alioth.debian.org>
+Build-Depends:
+ debhelper-compat (= 13),
+ default-jdk,
+ maven-debian-helper (>= 2.1),
+ junit4 (>= 4.13.2),
+Build-Depends-Indep:
+ libbcprov-java (>= 1.65),
+ libdoxia-java (>= 1.7),
+ libmaven-compiler-plugin-java (>= 3.10.1),
+ libmaven-javadoc-plugin-java (>= 3.4.1),
+ libmaven-site-plugin-java (>= 3.12.1),
+ libsurefire-java (>= 2.22.3),
+ libhamcrest-java,
+ libmockito-java,
+ libpowermock-java
+Standards-Version: 4.6.2
+Homepage: https://sbforge.org/display/JWAT/JWAT
+Rules-Requires-Root: no
+
+Package: libjwat-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Suggests: ${maven:OptionalDepends}
+Multi-Arch: foreign
+Description: Java Web Archive Toolkit
+ A collection of libraries to use for reading, writing and validating ARC,
+ WARC and GZip files. Also includes various helper classes to help with
+ different types of input streams. Finally there are also classes to help
+ with HTTP, character encoding and other Internet related protocols.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9fa40f9
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Java Web Archive Toolkit
+Upstream-Contact: https://sbforge.org/display/JWAT/JWAT
+Source: https://github.com/netarchivesuite/jwat
+
+Files: *
+Copyright:
+ 2011-2023, Det Kongelige Bibliotek/Royal Danish Library (https://www.kb.dk/)
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2023, Zuse Institute Berlin (https://ewig.zib.de/)
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+     http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the full text of the Apache-2.0 license
+ can be found in the file '/usr/share/common-licenses/Apache-2.0'
diff --git a/debian/libjwat-java.poms b/debian/libjwat-java.poms
new file mode 100644
index 0000000..671e512
--- /dev/null
+++ b/debian/libjwat-java.poms
@@ -0,0 +1,35 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+#   --ignore: ignore this POM and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --no-parent: remove the <parent> tag from the POM
+#   --package=<package>: an alternative package to use when installing this POM
+#      and its artifact
+#   --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+#      of the version for the package.
+#   --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+#      during a clean operation with mh_cleanpom or mh_installpom
+#   --artifact=<path>: path to the build artifact associated with this POM,
+#      it will be installed when using the command mh_install. [mh_install]
+#   --java-lib: install the jar into /usr/share/java to comply with Debian
+#      packaging guidelines
+#   --usj-name=<name>: name to use when installing the library in /usr/share/java
+#   --usj-version=<version>: version to use when installing the library in /usr/share/java
+#   --no-usj-versionless: don't install the versionless link in /usr/share/java
+#   --dest-jar=<path>: the destination for the real jar.
+#     It will be installed with mh_install. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+pom.xml --has-package-version
+jwat-common/pom.xml --has-package-version
+jwat-archive-common/pom.xml --has-package-version
+jwat-gzip/pom.xml --has-package-version
+jwat-arc/pom.xml --has-package-version
+jwat-warc/pom.xml --has-package-version
+jwat-archive/pom.xml --has-package-version
+jwat-distribution/pom.xml --ignore
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..bdc40ee
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,14 @@
+
+org.jwat jwat-distribution jar * * *
+com.github.spotbugs spotbugs-maven-plugin * * * *
+net.sourceforge.pmd pmd-xml * * * *
+org.apache.maven.plugins maven-changelog-plugin * * * *
+org.apache.maven.plugins maven-checkstyle-plugin * * * *
+org.apache.maven.plugins maven-jxr-plugin * * * *
+org.apache.maven.plugins maven-pmd-plugin * * * *
+org.apache.maven.plugins maven-project-info-reports-plugin * * * *
+org.apache.maven.plugins maven-release-plugin * * * *
+org.codehaus.mojo license-maven-plugin * * * *
+org.codehaus.mojo taglist-maven-plugin * * * *
+org.codehaus.mojo versions-maven-plugin * * * *
+org.jacoco jacoco-maven-plugin * * * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..01851bf
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,10 @@
+
+junit junit jar s/4\..*/4.x/ * *
+org.jwat jwat-arc jar s/.*/debian/ * *
+org.jwat jwat-archive-common jar s/.*/debian/ * *
+org.jwat jwat-archive jar s/.*/debian/ * *
+org.jwat jwat-common jar s/.*/debian/ * *
+org.jwat jwat-gzip jar s/.*/debian/ * *
+org.jwat jwat-warc jar s/.*/debian/ * *
+org.jwat jwat pom s/.*/debian/ * *
+org.bouncycastle s/bc(.*)-jdk\d+.*/bc$1/ * s/.*/debian/ * *
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2d33f6a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9080e72
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://github.com/netarchivesuite/jwat/tags .*/jwat-([\d\.]+)\.tar\.gz
-- 
2.39.2

>From 0b4be72dd0828c76cf8ee275a2ca1a3bd154fe5d Mon Sep 17 00:00:00 2001
From: Elias Oltmanns <oltma...@zib.de>
Date: Wed, 19 Jul 2023 22:21:06 +0200
Subject: [PATCH 2/2] Add preliminary changelog

---
 debian/changelog | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 debian/changelog

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..88a9fb4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+libjwat-java (1.2.1-1) UNRELEASED; urgency=low
+
+  * Team upload.
+  * Initial commit (Closes: #1041488).
+
+ -- Elias Oltmanns <oltma...@zib.de>  Wed, 19 Jul 2023 20:57:39 +0200
-- 
2.39.2

Reply via email to