Future-proof packaging for rust2rpm v24

epel9
Fabio Valentini 2 years ago
parent d70ea15f06
commit 02c05e3b6c
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,4 +1,4 @@
# Generated by rust2rpm 23 # Generated by rust2rpm 24
%bcond_without check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
@ -16,13 +16,14 @@ Source: %{crates_source}
Patch: sysinfo-fix-metadata-auto.diff Patch: sysinfo-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes # Manually created patch for downstream crate metadata changes
# * drop macOS-specific features # * drop macOS-specific features
# * drop unused cdylib build target
Patch: sysinfo-fix-metadata.diff Patch: sysinfo-fix-metadata.diff
BuildRequires: rust-packaging >= 21 BuildRequires: rust-packaging >= 21
%global _description %{expand: %global _description %{expand:
Library to get system information such as processes, CPUs, disks, components Library to get system information such as processes, CPUs, disks,
and networks.} components and networks.}
%description %{_description} %description %{_description}

@ -1,5 +1,5 @@
--- sysinfo-0.27.7/Cargo.toml 1970-01-01T00:00:01+00:00 --- sysinfo-0.27.7/Cargo.toml 1970-01-01T00:00:01+00:00
+++ sysinfo-0.27.7/Cargo.toml 1970-01-01T00:00:01+00:00 +++ sysinfo-0.27.7/Cargo.toml 2023-02-16T20:14:29.958242+00:00
@@ -52,51 +52,9 @@ @@ -52,51 +52,9 @@
[target."cfg(all(target_os = \"linux\", not(target_os = \"android\")))".dev-dependencies.tempfile] [target."cfg(all(target_os = \"linux\", not(target_os = \"android\")))".dev-dependencies.tempfile]
version = "3.2" version = "3.2"

@ -1,6 +1,14 @@
--- sysinfo-0.27.7/Cargo.toml 1970-01-01T00:00:01+00:00 --- sysinfo-0.27.7/Cargo.toml 1970-01-01T00:00:01+00:00
+++ sysinfo-0.27.7/Cargo.toml 2023-01-22T21:19:34.354379+00:00 +++ sysinfo-0.27.7/Cargo.toml 2023-02-16T20:14:44.222298+00:00
@@ -41,13 +41,10 @@ @@ -30,7 +30,6 @@
name = "sysinfo"
crate_type = [
"rlib",
- "cdylib",
]
[dependencies.cfg-if]
@@ -41,13 +40,10 @@
optional = true optional = true
[features] [features]

Loading…
Cancel
Save