Replace kernel-devel with kernel-syms OBS-URL: https://build.opensuse.org/request/show/353166 OBS-URL: https://build.opensuse.org/package/show/X11:Bumblebee/dkms?expand=0&rev=16
120 lines
3.3 KiB
RPMSpec
120 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package dkms
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: dkms
|
|
Version: 2.2.0.3
|
|
Release: 0
|
|
Summary: Dynamic Kernel Module Support Framework
|
|
License: GPL-2.0
|
|
Group: System/Kernel
|
|
Url: http://linux.dell.com/dkms
|
|
Source0: http://linux.dell.com/dkms/permalink/dkms-%{version}.tar.bz2
|
|
Source1: dkms.service
|
|
Source2: dkms.systemd
|
|
Source3: dkms.default
|
|
Source100: %{name}.rpmlintrc
|
|
BuildRequires: systemd
|
|
Requires: bash > 1.99
|
|
Requires: cpio
|
|
Requires: findutils
|
|
Requires: gcc
|
|
Requires: make
|
|
Requires: gawk
|
|
Requires: grep
|
|
Requires: gzip
|
|
Requires: mktemp
|
|
Requires: modutils
|
|
Requires: sed
|
|
Requires: tar
|
|
Requires: kernel-syms
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%systemd_requires
|
|
|
|
%description
|
|
This package contains the framework for the Dynamic
|
|
Kernel Module Support (DKMS) method for installing
|
|
module RPMS as originally developed by Dell.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
|
|
%install
|
|
make install-redhat DESTDIR=%{buildroot} \
|
|
SBIN=%{buildroot}%{_sbindir} \
|
|
VAR=%{buildroot}%{_localstatedir}/lib/%{name} \
|
|
MAN=%{buildroot}%{_mandir}/man8 \
|
|
ETC=%{buildroot}%{_sysconfdir}/%{name} \
|
|
BASHDIR=%{buildroot}%{_sysconfdir}/bash_completion.d \
|
|
LIBDIR=%{buildroot}%{_libexecdir}/%{name}
|
|
|
|
# systemd
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
|
|
install -p -m 755 %{SOURCE2} %{buildroot}%{_unitdir}
|
|
mkdir -p "%{buildroot}%{_sysconfdir}/default"
|
|
install -m 644 %{SOURCE3} "%{buildroot}%{_sysconfdir}/default/dkms"
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcdkms
|
|
|
|
# remove regular init file
|
|
rm -rf "%{buildroot}"/etc/rc.d/init.d/dkms_autoinstaller
|
|
|
|
%pre
|
|
%service_add_pre dkms.service
|
|
exit 0
|
|
|
|
%post
|
|
# enable on initial install
|
|
%service_add_post dkms.service
|
|
exit 0
|
|
|
|
%postun
|
|
%service_del_postun dkms.service
|
|
exit 0
|
|
|
|
%preun
|
|
# remove on uninstall
|
|
%service_del_preun dkms.service
|
|
exit 0
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_sbindir}/%{name}
|
|
%{_sbindir}/rcdkms
|
|
%{_localstatedir}/lib/%{name}
|
|
%{_libexecdir}/%{name}
|
|
%{_mandir}/*/*
|
|
%config(noreplace) %{_sysconfdir}/%{name}
|
|
%doc sample.spec sample.conf AUTHORS COPYING README.dkms
|
|
%doc sample-suse-9-mkkmp.spec sample-suse-10-mkkmp.spec
|
|
# these dirs are for plugins - owned by other packages
|
|
%{_sysconfdir}/kernel/postinst.d/%{name}
|
|
%{_sysconfdir}/kernel/prerm.d/%{name}
|
|
%config %{_sysconfdir}/bash_completion.d/%{name}
|
|
%{_unitdir}/dkms.service
|
|
%{_unitdir}/dkms.systemd
|
|
%config %{_sysconfdir}/default/dkms
|
|
%dir %{_sysconfdir}/kernel
|
|
%dir %{_sysconfdir}/kernel/postinst.d
|
|
%dir %{_sysconfdir}/kernel/prerm.d
|
|
|
|
%changelog
|