Accepting request 818390 from home:jfehlig:branches:Virtualization

Initial packaging of mdevctl

OBS-URL: https://build.opensuse.org/request/show/818390
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=1
This commit is contained in:
James Fehlig 2020-07-02 17:40:36 +00:00 committed by Git OBS Bridge
commit 010e55019e
6 changed files with 105 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">mdevctl</param>
<param name="revision">d7dfac5f5bfb4828d3d56e7e6ebe9d6956ae79dc</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://github.com/mdevctl/mdevctl</param>
<param name="versionformat">@PARENT_TAG@</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

3
mdevctl-0.61.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c5b9d3195a660c38845d9701bbf1318fcff88eed370c257b5795a0618122cebf
size 18936

4
mdevctl.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Jul 1 20:06:28 UTC 2020 - James Fehlig <jfehlig@suse.com>
- Initial packaging of mdevctl utility

59
mdevctl.spec Normal file
View File

@ -0,0 +1,59 @@
#
# spec file for package mdevctl
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#
Name: mdevctl
Version: 0.61
Release: 0
URL: https://github.com/mdevctl/mdevctl
Summary: Mediated device management and persistence utility
License: LGPL-2.1-or-later
BuildArch: noarch
Source0: %{name}-%{version}.tar.xz
BuildRequires: pkgconfig(udev)
Requires: coreutils
Requires: jq
Requires: udev
Requires(post): %{_sbindir}/udevadm
Requires(postun): %{_sbindir}/udevadm
%description
mdevctl is a utility for managing and persisting devices in the
mediated device device framework of the Linux kernel. Mediated
devices are sub-devices of a parent device (ex. a vGPU) which
can be dynamically created and potentially used by drivers like
vfio-mdev for assignment to virtual machines.
%prep
%autosetup -p1
%build
%install
%make_install
%files
%license COPYING
%doc README.md
%{_sbindir}/mdevctl
%{_sbindir}/lsmdev
%{_udevrulesdir}/60-mdevctl.rules
%dir %{_sysconfdir}/mdevctl.d
%{_mandir}/man8/mdevctl.8*
%{_mandir}/man8/lsmdev.8*