Blame SPECS/driverctl.spec

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