Blame SPECS/driverctl.spec

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