Mageia Bugzilla – Attachment 14222 Details for
Bug 31835
Update dkms to version 3.0.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
1st Try of spec for dkms 3.0.12
dkms.mga-fed.spec (text/x-matlab), 4.50 KB, created by
katnatek
on 2023-12-18 03:02:11 CET
(
hide
)
Description:
1st Try of spec for dkms 3.0.12
Filename:
MIME Type:
Creator:
katnatek
Created:
2023-12-18 03:02:11 CET
Size:
4.50 KB
patch
obsolete
>%global __requires_exclude /bin/awk > >Summary: Dynamic Kernel Module Support Framework >Name: dkms >Version: 3.0.12 >URL: https://github.com/dell/dkms >Release: %mkrel 1.WIP >License: GPLv2+ >Group: System/Base >BuildArch: noarch > >BuildRequires: make >BuildRequires: systemd > >Requires: kernel-devel >Recommends: kernel-devel-latest > >Requires(post): systemd >Requires(preun): systemd >Requires(postun): systemd > >Recommends: openssl >Requires: patch >Requires: patch >Requires: lsb-release >Requires: coreutils >Requires: cpio >Requires: pkgconfig(libelf) >Requires: file >Requires: findutils >Requires: gawk >Requires: gcc >Requires: grep >Requires: gzip >Requires: kmod >Requires: make >Requires: sed >Requires: tar >Requires: which >Obsoletes: dkms-minimal >Source0: https://github.com/dell/dkms/archive/v%{version}/%{name}-%{version}.tar.gz >Source1: template-dkms-mkrpm.spec >#DROP Source2: dkms.depmod.conf > > ># upstream patches from 1 >#Patch1: 0001-Makefile-also-install-in-etc-the-kernel_install.d_dk.patch >#-Drop Patch2: 0002-Makefile-install-the-new-kernel_install.d_dkms-and-s.patch >#-Drop Patch3: 0003-Do-not-require-root-access-for-the-build-command.patch > ># upstreamable patches from 101 >#-Drop Patch101: dkms-2.6.1-fix-kernel-make-prepare.patch > ># Mageia patches from 201 ># Add Mageia detection to new codepaths, >Patch201: dkms-3.0.12-detect-Mageia.patch > >## (ngompa): This is an analysis of the patches for DKMS. >## (katnatek) All the patch are rediff >## Unless otherwise noted, I did not write or rediff the patches > ># Do not depend on kernel rpm version for identifying kernel ># This is necessary as Mageia kernels do not currently have the real version-release ># in the version and release fields of the RPM data >Patch9: dkms-3.0.12-norpm.patch > ># Don't copy over the SRPMs, we don't care about them... >#-Drop Patch10: dkms-2.6.1-binary_only.patch > ># Drop overrides to use external dependency generator ># This is probably still needed... >#-DROP Patch15: dkms-2.6.1-no_custom_rpm_provides.patch > ># Add binary module installation type/status >#-DROP Patch16: dkms-2.8.3-binary-incomplete.patch > ># Hunks from dkms-2.0.19-binary.patch still to be ported >#katnatek: Not sure what to do with this 2 I DROP >#Source16: dkms-2.0.19-binary-left-to-be-ported.patch >#Source17: dkms-2.0.19-binary.patch > ># Autogenerate modaliases >#-Patch17: dkms-2.0.19-autoalias.patch > ># Ensure that make_rpm() function exits with success >#-DROP Patch18: dkms-2.8.3-mkrpm_status.patch > ># Deletes a check that doesn't seem to be used... >#-Patch19: dkms-2.0.19-skip-unused-check.patch ># Speed up module removal >#-Patch20: dkms-2.0.19-uninstall-speedup.patch > ># Populate module symvers >Patch22: dkms-3.0.12-symvers.patch > ># Don't load modules automatically while installer is running (mga#20368) >#-Patch28: dkms-no-autoload-during-install.patch > ># Display text while building+installing driver through Plymouth >#-DROP Patch29: dkms-2.8.3-display-bootsplash-message.patch > >%define _dkmsdir %{_localstatedir}/lib/%{name} >%define _dkmsbinarydir %{_localstatedir}/lib/%{name}-binary > >%description >This package contains the framework for the Dynamic >Kernel Module Support (DKMS) method for installing >module RPMS as originally developed by the Dell >Computer Corporation. > >This package is intended for building binary kernel >modules with dkms source packages installed > > >%prep >%setup -q >%autopatch -p1 > >sed -i -e 's,/var/%{name},%{_dkmsdir},g;s,init.d/dkms_autoinstaller,init.d/%{name},g' \ > dkms_autoinstaller.in \ > dkms_framework.conf \ > kernel_*.d_dkms \ > %{name}.8.in \ > dkms.in > >%build > >%install >mkdir -p %{buildroot}%{_mandir}/man8 >#make_install >make install-redhat DESTDIR=%{buildroot} > ># Move 40-dkms.install to read only area (no configuration file): >mkdir -p %{buildroot}%{_prefix}/lib/kernel/ >mv %{buildroot}%{_sysconfdir}/kernel/install.d %{buildroot}%{_prefix}/lib/kernel/ > >sed -i -e 's/# modprobe_on_install="true"/modprobe_on_install="true"/g' %{buildroot}%{_sysconfdir}/%{name}/framework.conf > >%post >%systemd_post %{name}.service > >%preun >%systemd_preun %{name}.service > >%postun >%systemd_postun %{name}.service > >%files >%license COPYING >%doc README.md images >%{_prefix}/lib/%{name} >%{_prefix}/lib/kernel/install.d/40-%{name}.install >%{_mandir}/man8/dkms.8* >%{_sbindir}/%{name} >%{_sharedstatedir}/%{name} >%dir %{_sysconfdir}/%{name} >%config(noreplace) %{_sysconfdir}/%{name}/framework.conf >%dir %{_sysconfdir}/%{name}/framework.conf.d >%{_sysconfdir}/kernel/postinst.d/%{name} >%{_sysconfdir}/kernel/prerm.d/%{name} >%{_datadir}/bash-completion/completions/%{name} >%{_unitdir}/%{name}.service
%global __requires_exclude /bin/awk Summary: Dynamic Kernel Module Support Framework Name: dkms Version: 3.0.12 URL: https://github.com/dell/dkms Release: %mkrel 1.WIP License: GPLv2+ Group: System/Base BuildArch: noarch BuildRequires: make BuildRequires: systemd Requires: kernel-devel Recommends: kernel-devel-latest Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Recommends: openssl Requires: patch Requires: patch Requires: lsb-release Requires: coreutils Requires: cpio Requires: pkgconfig(libelf) Requires: file Requires: findutils Requires: gawk Requires: gcc Requires: grep Requires: gzip Requires: kmod Requires: make Requires: sed Requires: tar Requires: which Obsoletes: dkms-minimal Source0: https://github.com/dell/dkms/archive/v%{version}/%{name}-%{version}.tar.gz Source1: template-dkms-mkrpm.spec #DROP Source2: dkms.depmod.conf # upstream patches from 1 #Patch1: 0001-Makefile-also-install-in-etc-the-kernel_install.d_dk.patch #-Drop Patch2: 0002-Makefile-install-the-new-kernel_install.d_dkms-and-s.patch #-Drop Patch3: 0003-Do-not-require-root-access-for-the-build-command.patch # upstreamable patches from 101 #-Drop Patch101: dkms-2.6.1-fix-kernel-make-prepare.patch # Mageia patches from 201 # Add Mageia detection to new codepaths, Patch201: dkms-3.0.12-detect-Mageia.patch ## (ngompa): This is an analysis of the patches for DKMS. ## (katnatek) All the patch are rediff ## Unless otherwise noted, I did not write or rediff the patches # Do not depend on kernel rpm version for identifying kernel # This is necessary as Mageia kernels do not currently have the real version-release # in the version and release fields of the RPM data Patch9: dkms-3.0.12-norpm.patch # Don't copy over the SRPMs, we don't care about them... #-Drop Patch10: dkms-2.6.1-binary_only.patch # Drop overrides to use external dependency generator # This is probably still needed... #-DROP Patch15: dkms-2.6.1-no_custom_rpm_provides.patch # Add binary module installation type/status #-DROP Patch16: dkms-2.8.3-binary-incomplete.patch # Hunks from dkms-2.0.19-binary.patch still to be ported #katnatek: Not sure what to do with this 2 I DROP #Source16: dkms-2.0.19-binary-left-to-be-ported.patch #Source17: dkms-2.0.19-binary.patch # Autogenerate modaliases #-Patch17: dkms-2.0.19-autoalias.patch # Ensure that make_rpm() function exits with success #-DROP Patch18: dkms-2.8.3-mkrpm_status.patch # Deletes a check that doesn't seem to be used... #-Patch19: dkms-2.0.19-skip-unused-check.patch # Speed up module removal #-Patch20: dkms-2.0.19-uninstall-speedup.patch # Populate module symvers Patch22: dkms-3.0.12-symvers.patch # Don't load modules automatically while installer is running (mga#20368) #-Patch28: dkms-no-autoload-during-install.patch # Display text while building+installing driver through Plymouth #-DROP Patch29: dkms-2.8.3-display-bootsplash-message.patch %define _dkmsdir %{_localstatedir}/lib/%{name} %define _dkmsbinarydir %{_localstatedir}/lib/%{name}-binary %description This package contains the framework for the Dynamic Kernel Module Support (DKMS) method for installing module RPMS as originally developed by the Dell Computer Corporation. This package is intended for building binary kernel modules with dkms source packages installed %prep %setup -q %autopatch -p1 sed -i -e 's,/var/%{name},%{_dkmsdir},g;s,init.d/dkms_autoinstaller,init.d/%{name},g' \ dkms_autoinstaller.in \ dkms_framework.conf \ kernel_*.d_dkms \ %{name}.8.in \ dkms.in %build %install mkdir -p %{buildroot}%{_mandir}/man8 #make_install make install-redhat DESTDIR=%{buildroot} # Move 40-dkms.install to read only area (no configuration file): mkdir -p %{buildroot}%{_prefix}/lib/kernel/ mv %{buildroot}%{_sysconfdir}/kernel/install.d %{buildroot}%{_prefix}/lib/kernel/ sed -i -e 's/# modprobe_on_install="true"/modprobe_on_install="true"/g' %{buildroot}%{_sysconfdir}/%{name}/framework.conf %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun %{name}.service %files %license COPYING %doc README.md images %{_prefix}/lib/%{name} %{_prefix}/lib/kernel/install.d/40-%{name}.install %{_mandir}/man8/dkms.8* %{_sbindir}/%{name} %{_sharedstatedir}/%{name} %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/framework.conf %dir %{_sysconfdir}/%{name}/framework.conf.d %{_sysconfdir}/kernel/postinst.d/%{name} %{_sysconfdir}/kernel/prerm.d/%{name} %{_datadir}/bash-completion/completions/%{name} %{_unitdir}/%{name}.service
View Attachment As Raw
Actions:
View
Attachments on
bug 31835
:
14222
|
14223
|
14224
|
14225
|
14344
|
14353
|
14354
|
14355
|
14434
|
14588