|
|
bfda62 |
%global commit 06ae09c8d09ff62a8b69e45af67fc31974c30244
|
|
|
f3ca4f |
|
|
|
f3ca4f |
Name: driverctl
|
|
|
bfda62 |
Version: 0.101
|
|
|
f3ca4f |
Release: 1%{?dist}
|
|
|
f3ca4f |
Summary: Device driver control utility
|
|
|
f3ca4f |
|
|
|
f3ca4f |
Group: System Environment/Kernel
|
|
|
f3ca4f |
License: LGPLv2
|
|
|
f3ca4f |
URL: https://gitlab.com/driverctl/driverctl
|
|
|
f3ca4f |
BuildArch: noarch
|
|
|
f3ca4f |
|
|
|
f3ca4f |
# rpm doesn't grok the gitlab url but spectool understands this monster
|
|
|
f3ca4f |
Source0: https://gitlab.com/driverctl/%{name}/repository/archive.tar.gz?ref=%{version}#/%{name}-%{version}-%{commit}.tar.gz
|
|
|
f3ca4f |
|
|
|
f3ca4f |
# for udev macros
|
|
|
f3ca4f |
BuildRequires: systemd
|
|
|
f3ca4f |
Requires(post,postun): %{_sbindir}/udevadm
|
|
|
f3ca4f |
Requires: coreutils udev
|
|
|
f3ca4f |
|
|
|
f3ca4f |
%description
|
|
|
f3ca4f |
driverctl is a tool for manipulating and inspecting the system
|
|
|
f3ca4f |
device driver choices.
|
|
|
f3ca4f |
|
|
|
f3ca4f |
Devices are normally assigned to their sole designated kernel driver
|
|
|
f3ca4f |
by default. However in some situations it may be desireable to
|
|
|
f3ca4f |
override that default, for example to try an older driver to
|
|
|
f3ca4f |
work around a regression in a driver or to try an experimental alternative
|
|
|
f3ca4f |
driver. Another common use-case is pass-through drivers and driver
|
|
|
f3ca4f |
stubs to allow userspace to drive the device, such as in case of
|
|
|
f3ca4f |
virtualization.
|
|
|
f3ca4f |
|
|
|
f3ca4f |
driverctl integrates with udev to support overriding
|
|
|
f3ca4f |
driver selection for both cold- and hotplugged devices from the
|
|
|
f3ca4f |
moment of discovery, but can also change already assigned drivers,
|
|
|
f3ca4f |
assuming they are not in use by the system. The driver overrides
|
|
|
f3ca4f |
created by driverctl are persistent across system reboots
|
|
|
f3ca4f |
by default.
|
|
|
f3ca4f |
|
|
|
f3ca4f |
%prep
|
|
|
f3ca4f |
%setup -q -n %{name}-%{version}-%{commit}
|
|
|
f3ca4f |
|
|
|
f3ca4f |
%install
|
|
|
f3ca4f |
%make_install
|
|
|
f3ca4f |
|
|
|
f3ca4f |
%files
|
|
|
f3ca4f |
%license COPYING
|
|
|
f3ca4f |
%doc README TODO
|
|
|
f3ca4f |
%{_sbindir}/driverctl
|
|
|
f3ca4f |
%{_udevrulesdir}/*.rules
|
|
|
f3ca4f |
%{_udevrulesdir}/../vfio_name
|
|
|
bfda62 |
%{_unitdir}/driverctl@.service
|
|
|
f3ca4f |
%dir %{_sysconfdir}/driverctl.d
|
|
|
f3ca4f |
%{_datadir}/bash-completion/
|
|
|
f3ca4f |
%{_mandir}/man8/driverctl.8*
|
|
|
f3ca4f |
|
|
|
f3ca4f |
%post
|
|
|
f3ca4f |
%udev_rules_update
|
|
|
f3ca4f |
|
|
|
f3ca4f |
%postun
|
|
|
f3ca4f |
%udev_rules_update
|
|
|
f3ca4f |
|
|
|
f3ca4f |
%changelog
|
|
|
bfda62 |
* Fri Oct 19 2018 Timothy Redaelli <tredaelli@redhat.com> - 0.101-1
|
|
|
bfda62 |
- Fix shellcheck warnings (#1506969)
|
|
|
bfda62 |
- Install bash-completion as driverctl instead of driverctl-bash-completion.sh
|
|
|
bfda62 |
- fix load_override for non-PCI bus
|
|
|
bfda62 |
- Make sure driverctl had loaded all the overrides before basic.target (#1634160)
|
|
|
bfda62 |
|
|
|
f3ca4f |
* Tue Jan 31 2017 Timothy Redaelli <tredaelli@redhat.com> - 0.95-1
|
|
|
f3ca4f |
- Update to 0.95
|
|
|
f3ca4f |
- update URLs to new group-based location
|
|
|
f3ca4f |
|
|
|
f3ca4f |
* Fri Sep 16 2016 Panu Matilainen <pmatilai@redhat.com> - 0.91-1
|
|
|
f3ca4f |
- Use a relative path from udevrulesdir
|
|
|
f3ca4f |
- Use fedorable source url which spectool actually understands
|
|
|
f3ca4f |
- Move bash completions to newer standard in %%{_datadir}/bash-completion
|
|
|
f3ca4f |
- Use %%make_install macro
|
|
|
f3ca4f |
- Require /usr/sbin/udevadm for %%post and %%postun
|
|
|
f3ca4f |
|
|
|
f3ca4f |
* Fri Sep 2 2016 Panu Matilainen <pmatilai@redhat.com> - 0.74-1
|
|
|
f3ca4f |
- Initial package
|