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