forked from pool/mdevctl
Compare commits
6 Commits
Author | SHA256 | Date | |
---|---|---|---|
7eaa556116 | |||
4b3379d828 | |||
5eb577b467 | |||
b6b428ce96 | |||
dfc77f01fe | |||
8123a43d0f |
27
_service
27
_service
@@ -1,25 +1,26 @@
|
|||||||
<services>
|
<services>
|
||||||
<service name="tar_scm" mode="disabled">
|
<service name="obs_scm" mode="disabled">
|
||||||
<param name="filename">mdevctl</param>
|
|
||||||
<param name="revision">v1.3.0</param>
|
|
||||||
<param name="scm">git</param>
|
|
||||||
<param name="submodules">disable</param>
|
|
||||||
<param name="url">https://github.com/mdevctl/mdevctl</param>
|
<param name="url">https://github.com/mdevctl/mdevctl</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="filename">mdevctl</param>
|
||||||
|
<param name="revision">v1.4.0</param>
|
||||||
<param name="versionformat">@PARENT_TAG@</param>
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
<param name="versionrewrite-pattern">v(.*)</param>
|
<param name="versionrewrite-pattern">[v]?([^\+]+)(.*)</param>
|
||||||
<param name="changesgenerate">enable</param>
|
<param name="changesgenerate">enable</param>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
<service name="set_version" mode="disabled"/>
|
||||||
|
|
||||||
|
<service name="tar" mode="disabled"/>
|
||||||
|
|
||||||
<service name="recompress" mode="disabled">
|
<service name="recompress" mode="disabled">
|
||||||
<param name="file">*.tar</param>
|
<param name="file">*.tar</param>
|
||||||
<param name="compression">xz</param>
|
<param name="compression">gz</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="set_version" mode="disabled"/>
|
|
||||||
<service name="cargo_vendor" mode="disabled">
|
<service name="cargo_vendor" mode="disabled">
|
||||||
<param name="srcdir">mdevctl-1.3.0</param>
|
<param name="srcdir">mdevctl</param>
|
||||||
<param name="compression">zst</param>
|
<param name="compression">gz</param>
|
||||||
<param name="update">true</param>
|
<param name="update">true</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="cargo_audit" mode="disabled">
|
|
||||||
<param name="srcdir">mdevctl-1.3.0</param>
|
|
||||||
</service>
|
|
||||||
</services>
|
</services>
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
<servicedata>
|
|
||||||
<service name="tar_scm">
|
|
||||||
<param name="url">https://github.com/mdevctl/mdevctl</param>
|
|
||||||
<param name="changesrevision">54db334d834017e0f97641a0172ca91358d4cf59</param></service></servicedata>
|
|
@@ -1,5 +0,0 @@
|
|||||||
[source.crates-io]
|
|
||||||
replace-with = "vendored-sources"
|
|
||||||
|
|
||||||
[source.vendored-sources]
|
|
||||||
directory = "vendor"
|
|
BIN
mdevctl-1.3.0.tar.xz
(Stored with Git LFS)
BIN
mdevctl-1.3.0.tar.xz
(Stored with Git LFS)
Binary file not shown.
3
mdevctl-1.4.0.tar.gz
Normal file
3
mdevctl-1.4.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ce7d7d79750d82cd38e65f2c3c985e75a52928152202728ae56c58b5ebfeafe6
|
||||||
|
size 62027
|
@@ -1,3 +1,31 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 8 13:44:36 UTC 2025 - Ana Guerrero <ana.guerrero@suse.com>
|
||||||
|
|
||||||
|
- Update vendor.tar.gz and Cargo.lock (boo#1244560)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 11 08:50:06 UTC 2025 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- Update to version 1.4.0:
|
||||||
|
* tests: Print error in assert_result()
|
||||||
|
* Improve failure message for live update
|
||||||
|
* Check sysfs data UUID in set_sysfs_data()
|
||||||
|
* Rename is_sysfs_data_matching() to sysfs_data_matches()
|
||||||
|
* Rename load_with_mdev() to load_for_mdev()
|
||||||
|
* tests: removing unnecessary chaining
|
||||||
|
* Remove MDevSysfsData::active
|
||||||
|
* rustify define_command_helper
|
||||||
|
* add ability to trigger CI manually
|
||||||
|
* mdev: MDevSysfsData.load() without path.exists() check
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 8 14:13:37 UTC 2024 - Caleb Crane <caleb.crane@suse.com>
|
||||||
|
|
||||||
|
- Spec: Update to use latest rust packaging tooling. Switch to obs_scm
|
||||||
|
service, remove cargo_audit service and cargo_config as it's now
|
||||||
|
handled by the cargo_vendor service. Cleanup spec file to use
|
||||||
|
cargo-packaging tooling where applicable.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 12 17:54:05 UTC 2024 - James Fehlig <jfehlig@suse.com>
|
Mon Feb 12 17:54:05 UTC 2024 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
31
mdevctl.spec
31
mdevctl.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package mdevctl
|
# spec file for package mdevctl
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,18 +17,16 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: mdevctl
|
Name: mdevctl
|
||||||
Version: 1.3.0
|
Version: 1.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Mediated device management and persistence utility
|
Summary: Mediated device management and persistence utility
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
URL: https://github.com/mdevctl/mdevctl
|
URL: https://github.com/mdevctl/mdevctl
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Source1: vendor.tar.zst
|
Source1: vendor.tar.gz
|
||||||
Source2: cargo_config
|
|
||||||
BuildRequires: cargo
|
BuildRequires: cargo
|
||||||
|
BuildRequires: cargo-packaging
|
||||||
BuildRequires: python3-docutils
|
BuildRequires: python3-docutils
|
||||||
BuildRequires: rust
|
|
||||||
BuildRequires: zstd
|
|
||||||
BuildRequires: pkgconfig(udev)
|
BuildRequires: pkgconfig(udev)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -38,28 +36,17 @@ device (e.g. a vGPU) which can be dynamically created and potentially used by
|
|||||||
drivers like vfio-mdev for assignment to virtual machines.
|
drivers like vfio-mdev for assignment to virtual machines.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -a1 -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
|
%build
|
||||||
export CARGO_HOME=$PWD/cargo-home
|
%{cargo_build}
|
||||||
cargo build --release %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%{make_install}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export MDEVCTL_LOG=debug RUST_BACKTRACE=full
|
export MDEVCTL_LOG=debug RUST_BACKTRACE=full
|
||||||
export CARGO_HOME=$PWD/cargo-home
|
%{cargo_test}
|
||||||
cargo test
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
3
vendor.tar.gz
Normal file
3
vendor.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:28c41a3db8c7719776d5a0377848341502bc1f871f61ceacb11f88fbf08ee37b
|
||||||
|
size 33212217
|
BIN
vendor.tar.zst
(Stored with Git LFS)
BIN
vendor.tar.zst
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user