Source: jlibeps Version: 0.1.ds3-7 Severity: wishlist Tags: patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Dear Stuart, I am working on the packaging of umlet, which is a rdep of jlibeps, and it would be lovely if jlibeps would ship Maven coordinates in order to build more easily software against it using Maven. For instance the version of umlet I am working on requires these coordinates. I am providing the enclosed source debdiff which creates a pom.xml file and uses maven-repo-helper to create the Maven artifacts and install the jar with a standard name in /usr/share/java. I have also put an unversioned link to this jar with the name /usr/share/java/net.sourceforge.jlibeps.jar to ensure compatibility for rdeps used to the current packaging. I checked all the rdeps of jlibeps with my proposed changes, all are OK except umlet, but I am working on it right now :) Is this something you might consider including in your packaging? I can help with packaging, submit a MR... if you wish. Best regards, - -- Pierre -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEM8soQxPpC9J9y0UjYAMWptwndHYFAmcU0r8PHHBndEBkZWJp YW4ub3JnAAoJEGADFqbcJ3R2r2EP/3sWPMQSvbQ24qu+Omp77S45OlY7c70cWxS8 c1mfRTTjsPMZn77Q3zwY4593K9DqFKaRw7zQbTaPzca9YdD0DRDwvdortlG/dwJv 7j7szRseq8GW+FmsYKRqqmdQq+L/DDzDulT4eBd7PgIeFy6mhTtJp4xKM8tc67IW atKNIraMq3TBYrsnaHbwP843quEymrQlV3IW/wc5mSBWbGe/8MwouAInonO/iY29 dadM37CZw6ViNDKh/QBjwaKYTKCmGDBNODOHJnQ1F91Z5BEfUsl9SUblYf/0bQiH hnxnabUylWN2rFQ9CCHSUWGUOn2VbNYxJFTaz11sfXbaStvwklsaeyg5ka3sGycE ccHzmIf/49V1BMPa5YFEu1TxUGM1s+4xvmO9VPcwkBXSLdIejdPNbJKw32EB4VVv kd1NxvWOFA5nOwPuNk0Hl+veLV9U9zn44Gwa5SNPbdJK0fYJRz4W7XPcGpnJL2K0 iWXYTJpfKHD3pjbTJayTidlSAsYR7LzMhSCVQ4tmJa0RJ+Hr7l9w7y3wIDnpUWcO D5wo/zsTWZo5xHGsyKkG6u8nzXrq+SF3dBsYLUgBtuhHPIy9vW4RKteB3g+FfTdr t1J8StNGjfzInW0MMbQoN+Vn/riOfqMFPrSJddTNCk0IteZMkln3UOLcM5qIDZJn t2R1xsOE =BZ7x -----END PGP SIGNATURE-----
diff -Nru jlibeps-0.1.ds3/debian/changelog jlibeps-0.1.ds3/debian/changelog --- jlibeps-0.1.ds3/debian/changelog 2023-09-27 15:26:38.000000000 +0200 +++ jlibeps-0.1.ds3/debian/changelog 2024-10-18 17:54:32.000000000 +0200 @@ -1,3 +1,10 @@ +jlibeps (0.1.ds3-7.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Creating Maven artifacts + + -- Pierre Gruet <p...@debian.org> Fri, 18 Oct 2024 17:54:32 +0200 + jlibeps (0.1.ds3-7) unstable; urgency=medium * Fix FTBFS with default Java 21 (Closes: #1053032). diff -Nru jlibeps-0.1.ds3/debian/control jlibeps-0.1.ds3/debian/control --- jlibeps-0.1.ds3/debian/control 2023-09-27 15:26:38.000000000 +0200 +++ jlibeps-0.1.ds3/debian/control 2024-10-18 17:46:51.000000000 +0200 @@ -8,6 +8,7 @@ ant, default-jdk, default-jdk-doc, + maven-repo-helper Standards-Version: 4.6.2 Homepage: https://jlibeps.sourceforge.net/ Vcs-Git: https://salsa.debian.org/debian/jlibeps.git diff -Nru jlibeps-0.1.ds3/debian/libjlibeps-java.poms jlibeps-0.1.ds3/debian/libjlibeps-java.poms --- jlibeps-0.1.ds3/debian/libjlibeps-java.poms 1970-01-01 01:00:00.000000000 +0100 +++ jlibeps-0.1.ds3/debian/libjlibeps-java.poms 2024-10-18 17:54:32.000000000 +0200 @@ -0,0 +1,28 @@ +# 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] +# +debian/pom.xml --artifact=out/jlibeps.jar --java-lib diff -Nru jlibeps-0.1.ds3/debian/pom.xml.in jlibeps-0.1.ds3/debian/pom.xml.in --- jlibeps-0.1.ds3/debian/pom.xml.in 1970-01-01 01:00:00.000000000 +0100 +++ jlibeps-0.1.ds3/debian/pom.xml.in 2024-10-18 17:52:08.000000000 +0200 @@ -0,0 +1,9 @@ +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>org.sourceforge.jlibeps</groupId> + <artifactId>jlibeps</artifactId> + <version>#VERSION#</version> + <name>jlibeps</name> + <description>Java library to create EPS images</description> + <url>https://jlibeps.sourceforge.net/</url> +</project> diff -Nru jlibeps-0.1.ds3/debian/rules jlibeps-0.1.ds3/debian/rules --- jlibeps-0.1.ds3/debian/rules 2023-09-27 15:26:38.000000000 +0200 +++ jlibeps-0.1.ds3/debian/rules 2024-10-18 17:54:32.000000000 +0200 @@ -15,20 +15,24 @@ export LC_ALL %: - dh $@ + dh $@ --with maven_repo_helper + +override_dh_clean: + dh_clean + -rm debian/pom.xml override_dh_auto_clean: find . -name \*.jar -exec rm -f {} \; find . -name \*.class -exec rm -f {} \; rm -rf out bin api +execute_before_dh_auto_configure: + sed "s/#VERSION#/$(VERSION)/" debian/pom.xml.in > debian/pom.xml + override_dh_auto_build: mkdir out bin ant -Dbasedir=. -f debian/build.xml compile ant -Dbasedir=. -f debian/build.xml jar doc -override_dh_install: - cp out/jlibeps.jar $(PREFIX)/usr/share/java/net.sourceforge.jlibeps-$(VERSION).jar - override_dh_link: - dh_link usr/share/java/net.sourceforge.jlibeps-$(VERSION).jar usr/share/java/net.sourceforge.jlibeps.jar + dh_link usr/share/java/jlibeps.jar usr/share/java/net.sourceforge.jlibeps.jar