Accepting request 960795 from home:ptesarik:branches:Virtualization

- Update to version v1.1.0 (jsc#SLE-18449):
  * use imported std::env for CARGO_PKG_VERSION in build.rs directly
  * fix build.rs to allow specify exact path or name of the rst2man
  *  Don't call unnecessary to_string()
  * Report a useful error when /etc/mdevctl.d doesn't exist
  * Handle FS permissions problems for defined devices
  * Fix needless borrow warning from clippy
  * tests: read stdin in callout test scripts
  * Report root error when a callout can't be executed
  * Don't emit warning for files in /etc/mdevctl.d/scripts.d
  * env: add function to get base scripts directory

OBS-URL: https://build.opensuse.org/request/show/960795
OBS-URL: https://build.opensuse.org/package/show/Virtualization/mdevctl?expand=0&rev=10
This commit is contained in:
James Fehlig 2022-03-10 18:11:58 +00:00 committed by Git OBS Bridge
parent 682f23abf4
commit 4fee77b915
6 changed files with 49 additions and 12 deletions

View File

@ -1,11 +1,12 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">mdevctl</param>
<param name="revision">c077ee72b286b117861dd77b710c58f63be33070</param>
<param name="revision">13084d837490f6c0671e2ab9a275cbe3611750c5</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>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">

View File

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

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

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

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu Mar 10 11:26:24 UTC 2022 - ptesarik@suse.com
- Update to version v1.1.0 (jsc#SLE-18449):
* use imported std::env for CARGO_PKG_VERSION in build.rs directly
* fix build.rs to allow specify exact path or name of the rst2man
* Don't call unnecessary to_string()
* Report a useful error when /etc/mdevctl.d doesn't exist
* Handle FS permissions problems for defined devices
* Fix needless borrow warning from clippy
* tests: read stdin in callout test scripts
* Report root error when a callout can't be executed
* Don't emit warning for files in /etc/mdevctl.d/scripts.d
* env: add function to get base scripts directory
-------------------------------------------------------------------
Thu Jul 08 17:38:58 UTC 2021 - jfehlig@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package mdevctl
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,19 +17,17 @@
Name: mdevctl
Version: 0.81
Version: 1.1.0
Release: 0
Summary: Mediated device management and persistence utility
License: LGPL-2.1-or-later
URL: https://github.com/mdevctl/mdevctl
Source0: %{name}-%{version}.tar.xz
BuildRequires: pkgconfig
Source1: vendor.tar.xz
BuildRequires: %{python_module docutils}
BuildRequires: cargo
BuildRequires: rust
BuildRequires: pkgconfig(udev)
Requires: findutils
Requires: jq
Requires: udev
Requires: util-linux
BuildArch: noarch
%description
mdevctl is a utility for managing and persisting devices in the mediated device
@ -39,12 +37,28 @@ drivers like vfio-mdev for assignment to virtual machines.
%prep
%autosetup -p1
%setup -q -D -T -a 1
mkdir -p cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]
registry = 'https://github.com/rust-lang/crates.io-index'
replace-with = 'vendored-sources'
[source.vendored-sources]
directory = './vendor'
EOF
%build
export CARGO_HOME=$PWD/cargo-home
cargo build --release %{?_smp_mflags}
%install
%make_install
%check
export MDEVCTL_LOG=debug RUST_BACKTRACE=full
export CARGO_HOME=$PWD/cargo-home
cargo test
%files
%license COPYING
%doc README.md
@ -52,7 +66,11 @@ drivers like vfio-mdev for assignment to virtual machines.
%{_sbindir}/lsmdev
%{_udevrulesdir}/60-mdevctl.rules
%dir %{_sysconfdir}/mdevctl.d
%dir %{_sysconfdir}/mdevctl.d/scripts.d/callouts
%dir %{_sysconfdir}/mdevctl.d/scripts.d/notifiers
%{_mandir}/man8/mdevctl.8%{?ext_man}
%{_mandir}/man8/lsmdev.8%{?ext_man}
%{_datadir}/bash-completion/completions/mdevctl
%{_datadir}/bash-completion/completions/lsmdev
%changelog

3
vendor.tar.xz Normal file
View File

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