Spec file cleanup

- Updated URL to current (shorter URL and HTTPS)
- Removed superfluous slash for %{_mandir} path
- Removed superfluous /sbin (only %{_sbindir} is used)
- Preserve timestamp when installing weak-modules(1)
This commit is contained in:
Robert Scheck 2021-01-30 23:47:20 +01:00
parent 406582dd73
commit 93a23f7391

View File

@ -4,7 +4,7 @@ Release: 2%{?dist}
Summary: Linux kernel module management utilities
License: GPLv2+
URL: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary
URL: https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
Source0: https://www.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz
Source1: weak-modules
Exclusiveos: Linux
@ -59,7 +59,7 @@ applications that wish to load or unload Linux kernel modules.
%install
%{make_install}
pushd $RPM_BUILD_ROOT/%{_mandir}/man5
pushd $RPM_BUILD_ROOT%{_mandir}/man5
ln -s modprobe.d.5.gz modprobe.conf.5.gz
popd
@ -77,8 +77,7 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
mkdir -p $RPM_BUILD_ROOT/sbin
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
install -pm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
%files
%dir %{_sysconfdir}/depmod.d