Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:HSF:Kernel
dkms
_service:set_version:dkms.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:dkms.spec of Package dkms
%define realname dkms %define srcext tar.bz2 # Common info Name: %{realname} Version: 2.4.0 Release: 0%{?extraver:0.}1%{?dist} License: GPL-2.0+ Group: System/Kernel URL: https://github.com/dell/dkms Summary: Dynamic Kernel Module Support # Packages needed to define _unitdir %if 0%{?suse_version} >= 1230 BuildRequires: systemd-rpm-macros Requires: systemd %endif %if 0%{?rhel} >= 7 BuildRequires: systemd Requires: systemd %endif # Install-time parameters ExclusiveOS: linux Requires: bash >= 3.0 Requires: sed gawk findutils tar cpio gzip grep mktemp Requires: kernel-devel %if 0%{?suse_version} >= 1310 || 0%{?rhel} >= 7 Requires: kmod %else Requires: modutils %endif %if 0%{?suse_version} || 0%{?rhel} >= 7 Requires: bash-completion %endif # Build-time parameters BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-root Source0: %{realname}-%{version}%{?extraver}.%{srcext} Source11: dkms.service %description DKMS stands for Dynamic Kernel Module Support. It is designed to create a framework where kernel dependent module source can reside so that it is very easy to rebuild modules as you upgrade kernels. This will allow Linux vendors to provide driver drops without having to wait for new kernel releases while also taking out the guesswork for customers attempting to recompile modules for new kernels. # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{version}%{?extraver} %build %install %{__make} install DESTDIR=%{buildroot} \ %if 0%{?suse_version} || 0%{?rhel} >= 7 BASHDIR=%{buildroot}%{_datadir}/bash-completion/completions \ %endif LIBDIR=%{buildroot}%{_libexecdir}/dkms %if 0%{?_unitdir:1} %{__install} -D -m644 %{S:11} %{buildroot}%{_unitdir}/dkms.service %else %{__install} -D -m755 dkms_autoinstaller %{buildroot}%{_initrddir}/dkms_autoinstaller %if %{expand:%_vendor == "suse"} %{__ln_s} %{_initrddir}/dkms_autoinstaller %{buildroot}%{_sbindir}/rcdkms_autoinstaller %endif %endif %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS COPYING README.md TODO %dir %{_sysconfdir}/dkms %config(noreplace) %{_sysconfdir}/dkms/framework.conf %dir %{_sysconfdir}/kernel/postinst.d %dir %{_sysconfdir}/kernel/prerm.d %dir %{_sysconfdir}/kernel %{_sysconfdir}/kernel/postinst.d/dkms %{_sysconfdir}/kernel/prerm.d/dkms %if 0%{?_unitdir:1} %{_unitdir}/dkms.service %else %{_initrddir}/dkms_autoinstaller %endif %{_sbindir}/* %dir %{_libexecdir}/dkms %{_libexecdir}/dkms/* %if 0%{?suse_version} || 0%{?rhel} >= 7 %{_datadir}/bash-completion/completions/dkms %else %dir %{_sysconfdir}/bash_completion.d %{_sysconfdir}/bash_completion.d/dkms %endif %doc %{_mandir}/man8/dkms.8* %dir %{_localstatedir}/lib/dkms %{_localstatedir}/lib/dkms/dkms_dbversion %if 0%{?suse_version} %if 0%{?_unitdir:1} %pre %{service_add_pre dkms.service} %endif %post %if 0%{?_unitdir:1} %{service_add_post dkms.service} %else %{fillup_and_insserv dkms_autoinstaller} %endif %preun %if 0%{?_unitdir:1} %{service_del_preun dkms.service} %endif %postun %if 0%{?_unitdir:1} %{service_del_postun dkms.service} %endif %{insserv_cleanup} %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor