SHA256
1
0
forked from pool/driverctl
driverctl/driverctl.spec

77 lines
2.3 KiB
RPMSpec

#
# spec file for package driverctl
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global commit 3c668744f2242e453fdcd6dca36d3e1d82d0367a
Name: driverctl
Version: 0.95
Release: 0
Summary: Device driver control utility
License: LGPL-2.0-only
URL: https://gitlab.com/driverctl/driverctl
Source0: archive.tar.gz
BuildRequires: pkgconfig(systemd)
Requires: coreutils
Requires: udev
BuildArch: noarch
%description
driverctl is a tool for manipulating and inspecting the system
device driver choices.
Devices are normally assigned to their sole designated kernel driver
by default. However in some situations it may be desireable to
override that default, for example to try an older driver to
work around a regression in a driver or to try an experimental alternative
driver. Another common use-case is pass-through drivers and driver
stubs to allow userspace to drive the device, such as in case of
virtualization.
driverctl integrates with udev to support overriding
driver selection for both cold- and hotplugged devices from the
moment of discovery, but can also change already assigned drivers,
assuming they are not in use by the system. The driver overrides
created by driverctl are persistent across system reboots
by default.
%prep
%setup -q -n %{name}-%{version}-%{commit}
%build
%install
%make_install
%files
%license COPYING
%doc README TODO
%{_sbindir}/driverctl
%{_udevrulesdir}/*.rules
%{_udevrulesdir}/../vfio_name
%dir %{_sysconfdir}/driverctl.d
%{_datadir}/bash-completion/
%{_mandir}/man8/driverctl.8*
%post
%udev_rules_update
%postun
%udev_rules_update
%changelog