public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-k8s-openapi] epel10: Initial import (#2304145)
@ 2026-09-28 13:55 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-09-28 13:55 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-k8s-openapi
Branch : epel10
Commit : 50460462655038b5e19a97bf8f733c64bfabf679
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2024-09-08T15:40:31+02:00
Stats  : +235/-3 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-k8s-openapi/c/50460462655038b5e19a97bf8f733c64bfabf679?branch=epel10

Log:
Initial import (#2304145)

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..67231ab
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/k8s-openapi-0.22.0.crate

diff --git a/0001-fix-invalid-code-block-syntax-in-documentation.patch b/0001-fix-invalid-code-block-syntax-in-documentation.patch
new file mode 100644
index 0000000..285a149
--- /dev/null
+++ b/0001-fix-invalid-code-block-syntax-in-documentation.patch
@@ -0,0 +1,26 @@
+From 3f6a88875748ec9619d3fb9dca56d471ebb2b3e1 Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Mon, 12 Aug 2024 16:05:16 +0200
+Subject: [PATCH] fix invalid code block syntax in documentation
+
+---
+ src/v1_30/apimachinery/pkg/api/resource/quantity.rs | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/v1_30/apimachinery/pkg/api/resource/quantity.rs b/src/v1_30/apimachinery/pkg/api/resource/quantity.rs
+index fc5595f..803f543 100644
+--- a/src/v1_30/apimachinery/pkg/api/resource/quantity.rs
++++ b/src/v1_30/apimachinery/pkg/api/resource/quantity.rs
+@@ -4,7 +4,8 @@
+ ///
+ /// The serialization format is:
+ ///
+-/// ``` \<quantity\>        ::= \<signedNumber\>\<suffix\>
++/// ```ignore
++///   \<quantity\>        ::= \<signedNumber\>\<suffix\>
+ ///
+ ///   (Note that \<suffix\> may be empty, from the "" case in \<decimalSI\>.)
+ ///
+-- 
+2.46.0
+

diff --git a/README.md b/README.md
deleted file mode 100644
index 3b4a3fc..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-k8s-openapi
-
-The rust-k8s-openapi package

diff --git a/rust-k8s-openapi.spec b/rust-k8s-openapi.spec
new file mode 100644
index 0000000..409a7de
--- /dev/null
+++ b/rust-k8s-openapi.spec
@@ -0,0 +1,192 @@
+# Generated by rust2rpm 26
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate k8s-openapi
+
+Name:           rust-k8s-openapi
+Version:        0.22.0
+Release:        %autorelease
+Summary:        Bindings for the Kubernetes client API
+
+License:        Apache-2.0
+URL:            https://crates.io/crates/k8s-openapi
+Source:         %{crates_source}
+# * fix compilation of doctests with Rust 1.80+
+Patch:          0001-fix-invalid-code-block-syntax-in-documentation.patch
+
+BuildRequires:  cargo-rpm-macros >= 24
+BuildRequires:  fdupes
+
+%global _description %{expand:
+Bindings for the Kubernetes client API.}
+
+%description %{_description}
+
+%package        devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description    devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files          devel
+%license %{crate_instdir}/LICENSE
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
+
+%package     -n %{name}+default-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+default-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "default" feature of the "%{crate}" crate.
+
+%files       -n %{name}+default-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+earliest-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+earliest-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "earliest" feature of the "%{crate}" crate.
+
+%files       -n %{name}+earliest-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+latest-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+latest-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "latest" feature of the "%{crate}" crate.
+
+%files       -n %{name}+latest-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+schemars-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+schemars-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "schemars" feature of the "%{crate}" crate.
+
+%files       -n %{name}+schemars-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+v1_24-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+v1_24-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "v1_24" feature of the "%{crate}" crate.
+
+%files       -n %{name}+v1_24-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+v1_25-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+v1_25-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "v1_25" feature of the "%{crate}" crate.
+
+%files       -n %{name}+v1_25-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+v1_26-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+v1_26-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "v1_26" feature of the "%{crate}" crate.
+
+%files       -n %{name}+v1_26-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+v1_27-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+v1_27-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "v1_27" feature of the "%{crate}" crate.
+
+%files       -n %{name}+v1_27-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+v1_28-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+v1_28-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "v1_28" feature of the "%{crate}" crate.
+
+%files       -n %{name}+v1_28-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+v1_29-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+v1_29-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "v1_29" feature of the "%{crate}" crate.
+
+%files       -n %{name}+v1_29-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+v1_30-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+v1_30-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "v1_30" feature of the "%{crate}" crate.
+
+%files       -n %{name}+v1_30-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires -f latest
+
+%build
+%cargo_build -f latest
+
+%install
+%cargo_install -f latest
+%fdupes %{buildroot}
+
+%if %{with check}
+%check
+%cargo_test -f latest
+%endif
+
+%changelog
+%autochangelog

diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..2906ae6
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,15 @@
+[features]
+enable = [
+    "latest",
+]
+
+[requires]
+build = [
+    "fdupes",
+]
+
+[scripts]
+install.post = [
+    "%fdupes %{buildroot}",
+]
+

diff --git a/sources b/sources
new file mode 100644
index 0000000..c3926a7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (k8s-openapi-0.22.0.crate) = 0ad6af083399d915a29e81d3abb815795a41454cae6518c3c6f530da89690ed999945c629f3ab4270a07bb7aa2753dd932af078e85c8ae6463d86921b620c5cd

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

only message in thread, other threads:[~2026-09-28 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 13:55 [rpms/rust-k8s-openapi] epel10: Initial import (#2304145) Fabio Valentini

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