Mageia Bugzilla – Attachment 14353 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
Clean version of dkms 3 spec
dkms-3x.spec (text/x-matlab), 3.33 KB, created by
katnatek
on 2024-02-10 03:37:45 CET
(
hide
)
Description:
Clean version of dkms 3 spec
Filename:
MIME Type:
Creator:
katnatek
Created:
2024-02-10 03:37:45 CET
Size:
3.33 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 > >## (katnatek) All the patch are rediff >## Clean version >Patch1: dkms-3.0.12-detect-Mageia.patch > ># 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 >Patch2: dkms-3.0.12-norpm.patch > ># Populate module symvers >Patch3: dkms-3.0.12-symvers.patch > ># Rework the override destination >Patch4: dkms-3.0.12-override-dest-patch > >Patch5: dkms-3.0.12-replacealias.patch > ># Display text while building+installing driver through Plymouth >#Not working >#Patch29: dkms-3.0.12-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 > >#suggested by Neal Gompa >#Not install some scripts in lib dir >sed -i -e 's|/usr/lib/dkms|/usr/libexec|' Makefile > >%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 >#This service need to be enabled >#We can't trust the user will do it >if ! systemctl is-active %{name} ; then > systemctl enable %{name} >fi >%systemd_post %{name}.service > >%preun >%systemd_preun %{name}.service > >%postun >%systemd_postun %{name}.service > >%files >%license COPYING >%doc README.md images >/usr/libexec >%{_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 ## (katnatek) All the patch are rediff ## Clean version Patch1: dkms-3.0.12-detect-Mageia.patch # 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 Patch2: dkms-3.0.12-norpm.patch # Populate module symvers Patch3: dkms-3.0.12-symvers.patch # Rework the override destination Patch4: dkms-3.0.12-override-dest-patch Patch5: dkms-3.0.12-replacealias.patch # Display text while building+installing driver through Plymouth #Not working #Patch29: dkms-3.0.12-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 #suggested by Neal Gompa #Not install some scripts in lib dir sed -i -e 's|/usr/lib/dkms|/usr/libexec|' Makefile %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 #This service need to be enabled #We can't trust the user will do it if ! systemctl is-active %{name} ; then systemctl enable %{name} fi %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun %{name}.service %files %license COPYING %doc README.md images /usr/libexec %{_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