diff --git a/nvidia-open-driver-G06-signed.changes b/nvidia-open-driver-G06-signed.changes index 58c0f38..729cc22 100644 --- a/nvidia-open-driver-G06-signed.changes +++ b/nvidia-open-driver-G06-signed.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Wed Jan 25 15:00:04 UTC 2023 - Stefan Dirsch + +- added pesign-copy-sources, pesign-spec-macros, which are needed + to fix repackaging step required for securebooot signing kernel + modules (boo#1207520) +- pesign-spec-macros: used for defining RPM macros; here: + %define __kmp_supplements %_sourcedir/my-find-supplements \ + %_sourcedir/pci_ids-%{version} +- pesign-copy-sources: sources needed by the RPM macros above; + here: pci_ids-%{version}, my-find-supplements +- all above needs changes for pesign-obs-integration first + (SR#1060443) + ------------------------------------------------------------------- Tue Jan 24 23:52:53 UTC 2023 - Stefan Dirsch diff --git a/nvidia-open-driver-G06-signed.spec b/nvidia-open-driver-G06-signed.spec index 5d4bf36..741d969 100644 --- a/nvidia-open-driver-G06-signed.spec +++ b/nvidia-open-driver-G06-signed.spec @@ -47,6 +47,8 @@ Source7: preamble Source8: json-to-pci-id-list.py Source9: pci_ids-unsupported-%{version} Source10: pci_ids-unsupported +Source11: pesign-copy-sources +Source12: pesign-spec-macros Patch0: 0001-Don-t-override-INSTALL_MOD_DIR.patch Patch2: persistent-nvidia-id-string.patch BuildRequires: %{kernel_module_package_buildreqs} @@ -69,8 +71,8 @@ ExclusiveArch: x86_64 aarch64 %(sed -e '/^%%post\>/ r %_sourcedir/kmp-post.sh' -e '/^%%postun\>/ r %_sourcedir/kmp-postun.sh' %kmp_template_name >%_builddir/nvidia-kmp-template) %kernel_module_package -n %{name} -t %_builddir/nvidia-kmp-template -f %_sourcedir/kmp-filelist -p %_sourcedir/preamble -# create hardware supplements -%define __kmp_supplements %_sourcedir/my-find-supplements %_sourcedir/pci_ids-%{version} +# create hardware supplements for manual builds +%{load:%{SOURCE12}} # newer rpmbuilds attach the kernel version and the major part of release to %%pci_id_file of the __kmp_supplements script # boo#1190210 diff --git a/pesign-copy-sources b/pesign-copy-sources new file mode 100644 index 0000000..e2bec23 --- /dev/null +++ b/pesign-copy-sources @@ -0,0 +1,3 @@ +pci_ids-%{version} +my-find-supplements + diff --git a/pesign-spec-macros b/pesign-spec-macros new file mode 100644 index 0000000..b03fdea --- /dev/null +++ b/pesign-spec-macros @@ -0,0 +1 @@ +%__kmp_supplements %{_sourcedir}/my-find-supplements %{_sourcedir}/pci_ids-%{version}