From f4aaa08e0dfd8b5cf89d453fc241e4edf5479fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Wed, 14 Oct 2020 23:52:35 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/driverctl#cc532d9275b712ddef190aa3fcc05babbfea90e0 --- .gitignore | 3 ++ driverctl.spec | 105 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 109 insertions(+) create mode 100644 driverctl.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..0c054eb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,3 @@ +/driverctl-0.91-c6e612791aa532626531c203148b07d0fb5ee125.tar.gz +/driverctl-0.95-3c668744f2242e453fdcd6dca36d3e1d82d0367a.tar.gz +/driverctl-0.101-06ae09c8d09ff62a8b69e45af67fc31974c30244.tar.gz diff --git a/driverctl.spec b/driverctl.spec new file mode 100644 index 0000000..b969f9e --- /dev/null +++ b/driverctl.spec @@ -0,0 +1,105 @@ +%global commit 06ae09c8d09ff62a8b69e45af67fc31974c30244 + +Name: driverctl +Version: 0.101 +Release: 5%{?dist} +Summary: Device driver control utility + +License: LGPLv2 +URL: https://gitlab.com/driverctl/driverctl +BuildArch: noarch + +# rpm doesn't grok the gitlab url but spectool understands this monster +Source0: https://gitlab.com/driverctl/%{name}/repository/archive.tar.gz?ref=%{version}#/%{name}-%{version}-%{commit}.tar.gz + +# for udev macros +BuildRequires: systemd +Requires(post,postun): %{_sbindir}/udevadm +Requires: coreutils udev + +%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} + +%install +%make_install + +%files +%license COPYING +%doc README TODO +%{_sbindir}/driverctl +%{_udevrulesdir}/*.rules +%{_udevrulesdir}/../vfio_name +%{_unitdir}/driverctl@.service +%dir %{_sysconfdir}/driverctl.d +%{_datadir}/bash-completion/ +%{_mandir}/man8/driverctl.8* + +%post +%udev_rules_update + +%postun +%udev_rules_update + +%changelog +* Mon Jul 27 2020 Fedora Release Engineering - 0.101-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 0.101-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 0.101-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 0.101-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Oct 20 2018 Timothy Redaelli - 0.101-1 +- Fix shellcheck warnings +- Install bash-completion as driverctl instead of driverctl-bash-completion.sh +- fix load_override for non-PCI bus +- Make sure driverctl had loaded all the overrides before basic.target + +* Thu Jul 12 2018 Fedora Release Engineering - 0.95-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 0.95-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.95-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.95-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jan 31 2017 Timothy Redaelli - 0.95-1 +- Update to 0.95 +- update URLs to new group-based location + +* Fri Sep 16 2016 Panu Matilainen - 0.91-1 +- Use a relative path from udevrulesdir +- Use fedorable source url which spectool actually understands +- Move bash completions to newer standard in %%{_datadir}/bash-completion +- Use %%make_install macro +- Require /usr/sbin/udevadm for %%post and %%postun + +* Fri Sep 2 2016 Panu Matilainen - 0.74-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2c513ed --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (driverctl-0.101-06ae09c8d09ff62a8b69e45af67fc31974c30244.tar.gz) = 1cc5677a695b46a65ab4afd43ecd468cd6eb6feee35179f110ecb56e3decd216d5ac14beb8605f8ee6c37deb87f4e76375d44bd8c9b1f7e66d5c2bc4844a2d8d