Blame SPECS/driverctl.spec

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