Accepting request 961113 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/961113 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdevctl?expand=0&rev=4
This commit is contained in:
commit
bcce6612a2
3
_service
3
_service
@ -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">
|
||||
|
@ -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
3
mdevctl-1.1.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7d3ac7e9f518806de8b3e1dde81931e883f4bc18e50ebefdcb928fda48ebf9f7
|
||||
size 38480
|
@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 11 17:23:03 UTC 2022 - James Fehlig <jfehlig@suse.com>
|
||||
|
||||
- spec: Add /etc/mdevctl.d/scripts.d directory to %files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
35
mdevctl.spec
35
mdevctl.spec
@ -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,12 @@ 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
|
||||
%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
3
vendor.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b0575207b1c37c518420b37557e442c147b7611853a8cd0d3229ac40e4a9876a
|
||||
size 4907916
|
Loading…
x
Reference in New Issue
Block a user