Compare commits

..

No commits in common. "622d550afa2cd97fba71a8aefcbb5fb4e5a48053" and "b39c1e39ccc1c1f0bfddd72a4fd2d272e37cb37e" have entirely different histories.

4 changed files with 15 additions and 35 deletions

BIN
dkms-2.6.1.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,11 +1,12 @@
Summary: Dynamic Kernel Module Support Framework Summary: Dynamic Kernel Module Support Framework
Name: dkms Name: dkms
Version: 3.0.12 Version: 2.6.1
Release: 1 Release: 5
License: GPLv2+ License: GPLv2+
BuildArch: noarch BuildArch: noarch
URL: https://github.com/dell/dkms URL: https://github.com/dell/dkms
Source0: https://github.com/dell/dkms/archive/v%{version}.tar.gz#/dkms-%{version}.tar.gz #source0 download address:https://github.com/dell/dkms/archive/v%{version}.tar.gz
Source0: dkms-%{version}.tar.gz
# because Mandriva calls this package dkms-minimal # because Mandriva calls this package dkms-minimal
Provides: dkms-minimal = %{version} Provides: dkms-minimal = %{version}
Requires: coreutils Requires: coreutils
@ -13,7 +14,6 @@ Requires: cpio
Requires: findutils Requires: findutils
Requires: gawk Requires: gawk
Requires: gcc Requires: gcc
Requires: clang llvm lld
Requires: grep Requires: grep
Requires: gzip Requires: gzip
Requires: kernel-devel Requires: kernel-devel
@ -27,7 +27,6 @@ Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
Requires: kernel-devel Requires: kernel-devel
Recommends: openssl
%description %description
This package contains the framework for the Dynamic Kernel Module Support (DKMS) This package contains the framework for the Dynamic Kernel Module Support (DKMS)
@ -35,7 +34,7 @@ method for installing module RPMS as originally developed by Dell.
%prep %prep
%autosetup -p1 %setup -q
%build %build
@ -89,13 +88,13 @@ echo ""
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install-redhat DESTDIR=%{buildroot} make install-redhat-systemd DESTDIR=$RPM_BUILD_ROOT \
SBIN=$RPM_BUILD_ROOT%{_sbindir} \
# Move 40-dkms.install to read only area (no configuration file): VAR=$RPM_BUILD_ROOT%{_localstatedir}/lib/%{name} \
mkdir -p %{buildroot}%{_prefix}/lib/kernel/ MAN=$RPM_BUILD_ROOT%{_mandir}/man8 \
mv %{buildroot}%{_sysconfdir}/kernel/install.d %{buildroot}%{_prefix}/lib/kernel/ ETC=$RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
BASHDIR=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d \
sed -i -e 's/# modprobe_on_install="true"/modprobe_on_install="true"/g' %{buildroot}%{_sysconfdir}/%{name}/framework.conf LIBDIR=$RPM_BUILD_ROOT%{_prefix}/lib/%{name}
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -116,33 +115,18 @@ fi
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING README.md images %doc sample.spec sample.conf AUTHORS COPYING README.md
%{_unitdir}/%{name}.service %{_unitdir}/%{name}.service
%{_prefix}/lib/%{name} %{_prefix}/lib/%{name}
%{_prefix}/lib/kernel/install.d/40-%{name}.install
%{_mandir}/*/* %{_mandir}/*/*
%{_sbindir}/%{name} %{_sbindir}/%{name}
%{_localstatedir}/lib/%{name} %{_localstatedir}/lib/%{name}
%dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/framework.conf
%dir %{_sysconfdir}/%{name}/framework.conf.d
# these dirs are for plugins - owned by other packages # these dirs are for plugins - owned by other packages
%{_sysconfdir}/kernel/postinst.d/%{name} %{_sysconfdir}/kernel/postinst.d/%{name}
%{_sysconfdir}/kernel/prerm.d/%{name} %{_sysconfdir}/kernel/prerm.d/%{name}
%{_datadir}/bash-completion/completions/%{name} %{_sysconfdir}/bash_completion.d/%{name}
%changelog %changelog
* Fri Oct 20 2023 chenyaqiang <chengyaqiang@huawei.com> - 3.0.12-1
- update to 3.0.12
* Tue Sep 19 2023 liyunfei <liyunfei@huawei.com> - 2.6.1-8
- Add clang compile support
* Mon Mar 27 2023 wangkai <wangkai385@h-partners.com> - 2.6.1-7
- Change deprecated egrep for grep -E
* Mon Sep 7 2020 Ge Wang <wangge20@huawei.com> - 2.6.1-6
- Modify the Source0 Url
* Fri Feb 14 2020 Tianfei <tianfei16@huawei.com> - 2.6.1-5 * Fri Feb 14 2020 Tianfei <tianfei16@huawei.com> - 2.6.1-5
- Package init - Package init

View File

@ -1,4 +0,0 @@
version_control: github
src_repo: dell/dkms
tag_prefix: ^v
seperator: .