public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-sev] update-8.0.0: Port to rust2rpm.toml
@ 2026-10-23 19:05 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-23 19:05 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rust-sev
            Branch : update-8.0.0
            Commit : 2fa3ced33ba6af523f4937509c87729aa6021bfd
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2024-11-19T10:35:03-05:00
            Stats  : +8/-40 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-sev/c/2fa3ced33ba6af523f4937509c87729aa6021bfd?branch=update-8.0.0

            Log:
            Port to rust2rpm.toml

- Actually hide features for testing particular hardware
- Hide the crypto_nossl feature, which would require the x509-cert
  crate; fixes RHBZ#2310742

---
diff --git a/rust-sev.spec b/rust-sev.spec
index f14b850..19eefe3 100644
--- a/rust-sev.spec
+++ b/rust-sev.spec
@@ -50,42 +50,6 @@ use the "default" feature of the "%{crate}" crate.
 %files       -n %{name}+default-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+crypto_nossl-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+crypto_nossl-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "crypto_nossl" feature of the "%{crate}" crate.
-
-%files       -n %{name}+crypto_nossl-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%package     -n %{name}+dangerous_hw_tests-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+dangerous_hw_tests-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "dangerous_hw_tests" feature of the "%{crate}" crate.
-
-%files       -n %{name}+dangerous_hw_tests-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%package     -n %{name}+hw_tests-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+hw_tests-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "hw_tests" feature of the "%{crate}" crate.
-
-%files       -n %{name}+hw_tests-devel
-%ghost %{crate_instdir}/Cargo.toml
-
 %package     -n %{name}+openssl-devel
 Summary:        %{summary}
 BuildArch:      noarch

diff --git a/rust2rpm.conf b/rust2rpm.conf
deleted file mode 100644
index 48c45eb..0000000
--- a/rust2rpm.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-[DEFAULT]
-unwanted-features =
-  hw_tests
-  dangerous_hw_tests

diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..635ba23
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,8 @@
+[features]
+hide = [
+    # These features require particular hardware:
+    "hw_tests",
+    "dangerous_hw_tests",
+    # Requires the x509-cert crate, which is not currently packaged:
+    "crypto_nossl",
+]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-23 19:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 19:05 [rpms/rust-sev] update-8.0.0: Port to rust2rpm.toml Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox