1
0

- 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)

OBS-URL: https://build.opensuse.org/package/show/X11:Drivers:Video:Redesign/nvidia-open-driver-G06-signed?expand=0&rev=15
This commit is contained in:
Stefan Dirsch 2023-01-25 15:22:07 +00:00 committed by Git OBS Bridge
parent 6214efb1c9
commit 8395564718
4 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Wed Jan 25 15:00:04 UTC 2023 - Stefan Dirsch <sndirsch@suse.com>
- 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 <sndirsch@suse.com> Tue Jan 24 23:52:53 UTC 2023 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -47,6 +47,8 @@ Source7: preamble
Source8: json-to-pci-id-list.py Source8: json-to-pci-id-list.py
Source9: pci_ids-unsupported-%{version} Source9: pci_ids-unsupported-%{version}
Source10: pci_ids-unsupported Source10: pci_ids-unsupported
Source11: pesign-copy-sources
Source12: pesign-spec-macros
Patch0: 0001-Don-t-override-INSTALL_MOD_DIR.patch Patch0: 0001-Don-t-override-INSTALL_MOD_DIR.patch
Patch2: persistent-nvidia-id-string.patch Patch2: persistent-nvidia-id-string.patch
BuildRequires: %{kernel_module_package_buildreqs} 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) %(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 %kernel_module_package -n %{name} -t %_builddir/nvidia-kmp-template -f %_sourcedir/kmp-filelist -p %_sourcedir/preamble
# create hardware supplements # create hardware supplements for manual builds
%define __kmp_supplements %_sourcedir/my-find-supplements %_sourcedir/pci_ids-%{version} %{load:%{SOURCE12}}
# newer rpmbuilds attach the kernel version and the major part of release to %%pci_id_file of the __kmp_supplements script # newer rpmbuilds attach the kernel version and the major part of release to %%pci_id_file of the __kmp_supplements script
# boo#1190210 # boo#1190210

3
pesign-copy-sources Normal file
View File

@ -0,0 +1,3 @@
pci_ids-%{version}
my-find-supplements

1
pesign-spec-macros Normal file
View File

@ -0,0 +1 @@
%__kmp_supplements %{_sourcedir}/my-find-supplements %{_sourcedir}/pci_ids-%{version}