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:
parent
406582dd73
commit
93a23f7391
@ -4,7 +4,7 @@ Release: 2%{?dist}
|
|||||||
Summary: Linux kernel module management utilities
|
Summary: Linux kernel module management utilities
|
||||||
|
|
||||||
License: GPLv2+
|
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
|
Source0: https://www.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz
|
||||||
Source1: weak-modules
|
Source1: weak-modules
|
||||||
Exclusiveos: Linux
|
Exclusiveos: Linux
|
||||||
@ -59,7 +59,7 @@ applications that wish to load or unload Linux kernel modules.
|
|||||||
%install
|
%install
|
||||||
%{make_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
|
ln -s modprobe.d.5.gz modprobe.conf.5.gz
|
||||||
popd
|
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%{_sysconfdir}/depmod.d
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/sbin
|
install -pm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
|
||||||
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{_sysconfdir}/depmod.d
|
%dir %{_sysconfdir}/depmod.d
|
||||||
|
Loading…
Reference in New Issue
Block a user