Compare commits

..

5 Commits

2
.gitignore vendored

@ -1 +1,3 @@
/schemars-0.8.16.crate /schemars-0.8.16.crate
/schemars-0.8.19.crate
/schemars-0.8.21.crate

@ -1,17 +1,20 @@
# Generated by rust2rpm 25 # Generated by rust2rpm 26
%bcond_without check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
%global crate schemars %global crate schemars
Name: rust-schemars Name: rust-schemars
Version: 0.8.16 Version: 0.8.21
Release: %autorelease Release: %autorelease
Summary: Generate JSON Schemas from Rust code Summary: Generate JSON Schemas from Rust code
License: MIT License: MIT
URL: https://crates.io/crates/schemars URL: https://crates.io/crates/schemars
Source: %{crates_source} Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop unused support for uuid v0.8
Patch: schemars-fix-metadata.diff
BuildRequires: cargo-rpm-macros >= 24 BuildRequires: cargo-rpm-macros >= 24
@ -346,30 +349,6 @@ use the "url" feature of the "%{crate}" crate.
%files -n %{name}+url-devel %files -n %{name}+url-devel
%ghost %{crate_instdir}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+uuid-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+uuid-devel %{_description}
This package contains library source intended for building other packages which
use the "uuid" feature of the "%{crate}" crate.
%files -n %{name}+uuid-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+uuid08-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+uuid08-devel %{_description}
This package contains library source intended for building other packages which
use the "uuid08" feature of the "%{crate}" crate.
%files -n %{name}+uuid08-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+uuid1-devel %package -n %{name}+uuid1-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
@ -385,6 +364,8 @@ use the "uuid1" feature of the "%{crate}" crate.
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
%cargo_prep %cargo_prep
# drop tests that pull in uuid v0.8
rm tests/uuid.rs
%generate_buildrequires %generate_buildrequires
%cargo_generate_buildrequires %cargo_generate_buildrequires

@ -0,0 +1,11 @@
[package]
cargo-toml-patch-comments = [
"drop unused support for uuid v0.8",
]
[scripts]
prep.post = [
"# drop tests that pull in uuid v0.8",
"rm tests/uuid.rs",
]

@ -0,0 +1,34 @@
--- schemars-0.8.21/Cargo.toml 1970-01-01T00:00:01+00:00
+++ schemars-0.8.21/Cargo.toml 2024-09-16T00:20:05.928688+00:00
@@ -48,13 +48,6 @@
required-features = ["either"]
[[test]]
-name = "uuid"
-required-features = [
- "uuid08",
- "uuid1",
-]
-
-[[test]]
name = "smallvec"
required-features = ["smallvec"]
@@ -190,12 +183,6 @@
version = "2.0"
optional = true
default-features = false
-
-[dependencies.uuid08]
-version = "0.8"
-optional = true
-default-features = false
-package = "uuid"
[dependencies.uuid1]
version = "1.0"
@@ -220,4 +207,3 @@
preserve_order = ["indexmap"]
raw_value = ["serde_json/raw_value"]
ui_test = []
-uuid = ["uuid08"]

@ -1 +1 @@
SHA512 (schemars-0.8.16.crate) = 738022b563bedfc73f2f2899216b8ae4cf0f563c1a6ac91639715d5f36446d7011fadd5554b8a4e9e569dddff836cc136ea2be5e65b72f85613a4a890d355a06 SHA512 (schemars-0.8.21.crate) = 23a794ec52d83ce045c8b2d633913b3b29e4cfc9d0a29f76aca8cd5b31a9c707ffc04c94390ab719b3c8109f37c11a00dae73ec1719087dfe7b3c4007beb066d

Loading…
Cancel
Save