Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package QR-Code-generator for
openSUSE:Factory checked in at 2025-11-07 18:23:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/QR-Code-generator (Old)
and /work/SRC/openSUSE:Factory/.QR-Code-generator.new.1980 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "QR-Code-generator"
Fri Nov 7 18:23:10 2025 rev:7 rq:1316391 version:1.8.0+git17.856ba8a
Changes:
--------
--- /work/SRC/openSUSE:Factory/QR-Code-generator/QR-Code-generator.changes
2025-07-02 17:30:54.359241828 +0200
+++
/work/SRC/openSUSE:Factory/.QR-Code-generator.new.1980/QR-Code-generator.changes
2025-11-07 18:24:55.809677870 +0100
@@ -1,0 +2,5 @@
+Fri Nov 7 07:52:18 UTC 2025 - Fridrich Strba <[email protected]>
+
+- Building also the Java implementation
+
+-------------------------------------------------------------------
New:
----
QR-Code-generator-build.xml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ QR-Code-generator.spec ++++++
--- /var/tmp/diff_new_pack.P8NI97/_old 2025-11-07 18:24:56.549708952 +0100
+++ /var/tmp/diff_new_pack.P8NI97/_new 2025-11-07 18:24:56.553709121 +0100
@@ -1,7 +1,7 @@
#
# spec file for package QR-Code-generator
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -32,11 +32,16 @@
URL: https://github.com/nayuki/QR-Code-generator
Source0: %{name}-%{version}.tar.zst
Source1: qrcodegen-cmake-%cmake_code_version.tar.zst
+Source2: %{name}-build.xml
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
+BuildRequires: ant
BuildRequires: cmake
+BuildRequires: fdupes
BuildRequires: gcc-c++
+BuildRequires: java-devel >= 9
+BuildRequires: javapackages-local
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: zstd
@@ -77,10 +82,23 @@
%description -n %{libcppname}
C++ QR Code generator library
+%package java
+Summary: QR Code generator library - Java
+
+%description java
+Java implementation of the QR Code generator library
+
+%package javadoc
+Summary: QR Code generator library - Javadoc
+
+%description javadoc
+The Javadoc for the Java implementaion of the QR Code generator library
+
%prep
%autosetup -p1 -a1
ln -s qrcodegen-cmake-%cmake_code_version/{CMakeLists.txt,cmake} .
cp qrcodegen-cmake-%cmake_code_version/{README.md,LICENSE} .
+cp %{SOURCE2} java/build.xml
%build
%cmake
@@ -89,6 +107,10 @@
%pyproject_wheel
popd
+pushd ../java
+ant jar javadoc
+popd
+
%install
%cmake_install
@@ -96,6 +118,17 @@
%pyproject_install
popd
+pushd java
+install -dm 0755 %{buildroot}%{_javadir}
+install -pm 0644 target/qrcodegen.jar %{buildroot}%{_javadir}/qrcodegen.jar
+install -dm 0755 %{buildroot}%{_mavenpomdir}
+%mvn_install_pom pom.xml %{buildroot}%{_mavenpomdir}/qrcodegen.pom
+%add_maven_depmap qrcodegen.pom qrcodegen.jar
+install -dm 0755 %{buildroot}%{_javadocdir}
+cp -r target/site/apidocs %{buildroot}%{_javadocdir}/qrcodegen
+%fdupes -s %{buildroot}%{_javadocdir}
+popd
+
%ldconfig_scriptlets -n %{libcname}
%ldconfig_scriptlets -n %{libcppname}
@@ -125,3 +158,10 @@
%license Readme.markdown
%{_libdir}/libqrcodegencpp.so.*
+%files -n QR-Code-generator-java -f java/.mfiles
+%license Readme.markdown
+
+%files -n QR-Code-generator-javadoc
+%{_javadocdir}/qrcodegen
+%license Readme.markdown
+
++++++ QR-Code-generator-build.xml ++++++
<?xml version="1.0" encoding="UTF-8"?>
<project name="qrcodegen" default="package" basedir=".">
<!-- ======================================================================
-->
<!-- Build environment properties
-->
<!-- ======================================================================
-->
<property name="project.artifactId" value="qrcodegen"/>
<property name="compiler.release" value="8"/>
<property name="compiler.source" value="1.${compiler.release}"/>
<property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName" value="${project.artifactId}"/>
<property name="build.dir" value="target"/>
<property name="build.outputDir" value="${build.dir}/classes"/>
<property name="build.srcDir" value="src/main/java"/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ======================================================================
-->
<!-- Cleaning up target
-->
<!-- ======================================================================
-->
<target name="clean" description="Clean the output directory">
<delete dir="${build.dir}"/>
</target>
<!-- ======================================================================
-->
<!-- Compilation target
-->
<!-- ======================================================================
-->
<target name="compile" description="Compile the code">
<mkdir dir="${build.outputDir}"/>
<javac destdir="${build.outputDir}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
release="${compiler.release}"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<exclude name="**/module-info.java"/>
</javac>
<!-- compile the module-info.java -->
<javac destdir="${build.outputDir}"
nowarn="false"
debug="true"
encoding="utf-8"
optimize="false"
deprecation="true"
release="9"
verbose="false"
fork="false">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<include name="**/module-info.java"/>
</javac>
</target>
<!-- ======================================================================
-->
<!-- Javadoc target
-->
<!-- ======================================================================
-->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${build.srcDir}"
packagenames="*"
destdir="${reporting.outputDirectory}/apidocs"
access="protected"
source="${compiler.source}"
verbose="false"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
charset="ISO-8859-1"
linksource="false"
breakiterator="false"/>
</target>
<!-- ======================================================================
-->
<!-- Package target
-->
<!-- ======================================================================
-->
<target name="package" depends="compile" description="Package the
application">
<jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true"
index="false"
basedir="${build.outputDir}"
excludes="**/package.html"/>
</target>
<!-- ======================================================================
-->
<!-- A dummy target for the package named after the type it creates
-->
<!-- ======================================================================
-->
<target name="jar" depends="package" description="Builds the jar for the
application"/>
</project>