File project.diff of Package hdjmod

--- hdjmod.changes.orig
+++ hdjmod.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Tue Sep  5 14:24:44 UTC 2023 - Michal Suchanek <msuchanek@suse.com>
+
+- TEST: install outside module directory of the build kernel.
+
+-------------------------------------------------------------------
 Wed May 10 19:55:30 UTC 2023 - Matthias Bach <marix@marix.org> - 1.34
 
 - Update to version 1.34
--- hdjmod.spec.orig
+++ hdjmod.spec
@@ -26,9 +26,10 @@ Group:          System/Kernel
 URL:            https://codeberg.org/Marix/hdjmod
 Source0:        https://codeberg.org/Marix/hdjmod/archive/%{version}.tar.gz#/hdjmod-%{version}.tar.gz
 Source1:        preamble
+Source2:        kernel-module-subpackage
 BuildRequires:  %{kernel_module_package_buildreqs}
 BuildRequires:  libelf-devel
-%suse_kernel_module_package -p%{_sourcedir}/preamble
+%suse_kernel_module_package -p%{_sourcedir}/preamble -s%{_sourcedir}/kernel-module-subpackage
 
 %description
 This is the Hercules DJ Series Kernel Module, which supports Hercules DJ Devices.
@@ -52,9 +53,9 @@ done
 
 %install
 export INSTALL_MOD_PATH=%{buildroot}
-export INSTALL_MOD_DIR=updates
 for flavor in %{flavors_to_build}; do
-        make -C %{kernel_source $flavor} %{?linux_make_arch} modules_install M=$PWD/obj/$flavor
+export INSTALL_MOD_DIR=updates/$flavor
+        make -C %{kernel_source $flavor} %{?linux_make_arch} MODLIB='$(INSTALL_MOD_PATH)%kernel_module_directory/%name-%version-%release' modules_install M=$PWD/obj/$flavor
 done
 
 %changelog
openSUSE Build Service is sponsored by