SHA256
1
0
forked from pool/mdevctl

5 Commits

Author SHA256 Message Date
6cb8ef4e33 - Fix up the source services files to function by updating the
_service file and adding a _servicedata file.
2026-01-20 15:03:04 -07:00
e95b6cf50c - Convert vendor.tar.gz to vendor.tar.zst to reduce the size of the
tarball (jsc#PED-14625)
2026-01-14 13:27:19 -07:00
d39814acdf Remove cargo_config. It is no longer used. 2025-12-18 14:02:37 -07:00
3a39be3fe0 Remove old tarball 2025-12-18 13:27:05 -07:00
5548af61bd Update to the Factory version for SLE16.1 2025-12-18 13:22:13 -07:00
8 changed files with 63 additions and 46 deletions

View File

@@ -1,25 +1,18 @@
<services>
<service name="tar_scm" mode="disabled">
<service name="tar_scm" mode="manual">
<param name="filename">mdevctl</param>
<param name="revision">v1.3.0</param>
<param name="revision">v1.4.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.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="versionrewrite-pattern">[v]?([^\+]+)(.*)</param>
<param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
<service name="cargo_vendor" mode="disabled">
<param name="srcdir">mdevctl-1.3.0</param>
<param name="compression">zst</param>
<param name="update">true</param>
</service>
<service name="cargo_audit" mode="disabled">
<param name="srcdir">mdevctl-1.3.0</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="manual"/>
</services>

View File

@@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/mdevctl/mdevctl</param>
<param name="changesrevision">54db334d834017e0f97641a0172ca91358d4cf59</param></service></servicedata>
<param name="url">https://github.com/mdevctl/mdevctl.git</param>
<param name="changesrevision">9407ee0512dc2423aecf33073a14b1967b8d6d09</param></service></servicedata>

View File

@@ -1,5 +0,0 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

Binary file not shown.

BIN
mdevctl-1.4.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,43 @@
-------------------------------------------------------------------
Wed Jan 14 14:28:19 MST 2026 - carnold@suse.com
- Fix up the source services files to function by updating the
_service file and adding a _servicedata file.
-------------------------------------------------------------------
Fri Jan 9 10:14:45 MST 2026 - carnold@suse.com
- Convert vendor.tar.gz to vendor.tar.zst to reduce the size of the
tarball (jsc#PED-14625)
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package mdevctl
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,15 @@
Name: mdevctl
Version: 1.3.0
Version: 1.4.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
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.zst
Source2: cargo_config
BuildRequires: cargo
BuildRequires: cargo-packaging
BuildRequires: python3-docutils
BuildRequires: rust
BuildRequires: zstd
@@ -38,28 +38,17 @@ device (e.g. a vGPU) which can be dynamically created and potentially used by
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
%autosetup -a1 -p1
%build
export CARGO_HOME=$PWD/cargo-home
cargo build --release %{?_smp_mflags}
%{cargo_build}
%install
%make_install
%{make_install}
%check
export MDEVCTL_LOG=debug RUST_BACKTRACE=full
export CARGO_HOME=$PWD/cargo-home
cargo test
%{cargo_test}
%files
%license COPYING

BIN
vendor.tar.zst LFS

Binary file not shown.