]> git.pld-linux.org Git - SPECS.git/blob - dkms.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / dkms.spec
1 Summary:        Dynamic Kernel Module Support Framework
2 Summary(pl.UTF-8):      Obsługa dynamicznych modułów jądra
3 Name:           dkms
4 Version:        2.2.0.3
5 Release:        4
6 License:        GPL v2+
7 Group:          Base/Kernel
8 Source0:        http://linux.dell.com/dkms/permalink/%{name}-%{version}.tar.gz
9 # Source0-md5:  11a8aaade2ebec2803653837c7593030
10 Source1:        %{name}.modprobe.conf
11 Patch0:         kernel.conf.patch
12 URL:            http://linux.dell.com/dkms/
13 Requires:       bash >= 3.0
14 Requires:       coreutils
15 Requires:       cpio
16 Requires:       findutils
17 Requires:       gawk
18 Requires:       gcc
19 Requires:       grep
20 Requires:       gzip
21 Requires:       kmod
22 Requires:       lsb-release
23 Requires:       sed
24 Requires:       tar
25 Suggests:       kernel-module-build
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 DKMS stands for Dynamic Kernel Module Support. It is designed to
31 create a framework where kernel dependant module source can reside so
32 that it is very easy to rebuild modules as you upgrade kernels. This
33 will allow Linux vendors to provide driver drops without having to
34 wait for new kernel releases while also taking out the guesswork for
35 customers attempting to recompile modules for new kernels.
36
37 %description -l pl.UTF-8
38 DKMS (Dynamic Kernel Module Support) to obsługa dynamicznych modułów
39 jądra. Została zaprojektowana aby stworzyć szkielet do przechowywania
40 źródeł modułów zależnych od jądra w sposób łatwy do zbudowania modułów
41 po uaktualnieniu jądra. Pozwala to dostawcom Linuksa udostępniać
42 sterowniki bez czekania na nowe wydania jądra ani rozwiązywania
43 problemów klientów próbujących przebudować moduły dla nowych jąder.
44
45 %package -n bash-completion-dkms
46 Summary:        Bash completion for dkms command
47 Summary(pl.UTF-8):      Bashowe uzupełnianie parametrów dla polecenia dkms
48 Group:          Applications/Shells
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       bash-completion
51
52 %description -n bash-completion-dkms
53 Bash completion for dkms command.
54
55 %description -n bash-completion-dkms -l pl.UTF-8
56 Bashowe uzupełnianie parametrów dla polecenia dkms.
57
58 %prep
59 %setup -q
60 %patch0 -p1
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT/etc/modprobe.d
65
66 %{__make} install \
67         SHELL=/bin/sh \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 # not in pld
71 %{__rm} $RPM_BUILD_ROOT/etc/kernel/postinst.d/dkms
72 %{__rm} $RPM_BUILD_ROOT/etc/kernel/prerm.d/dkms
73 %{__rm} $RPM_BUILD_ROOT/usr/lib/dkms/dkms_autoinstaller
74
75 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/dkms.conf
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS README.dkms TODO sample.spec
83 %dir %{_sysconfdir}/%{name}
84 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/framework.conf
85 %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/dkms.conf
86 %attr(755,root,root) %{_sbindir}/dkms
87 %{_mandir}/man8/dkms.8*
88 %dir %{_prefix}/lib/%{name}
89 %{_prefix}/lib/%{name}/common.postinst
90 %dir %{_localstatedir}/lib/%{name}
91 %{_localstatedir}/lib/%{name}/dkms_dbversion
92
93 %files -n bash-completion-dkms
94 %defattr(644,root,root,755)
95 /etc/bash_completion.d/dkms
This page took 0.385536 seconds and 3 git commands to generate.