Blame SPECS/driverctl.spec

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