## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate schemars Name: rust-schemars Version: 1.2.1 Release: %autorelease Summary: Generate JSON Schemas from Rust code License: MIT URL: https://crates.io/crates/schemars Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop garde dev-dependency (not packaged) # * drop jsonschema dev-dependency (not packaged) # * drop validator dev-dependency (not packaged) # * drop integration tests, which would require jsonschema Patch: schemars-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Generate JSON Schemas from Rust code.} %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}+arrayvec07-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+arrayvec07-devel %{_description} This package contains library source intended for building other packages which use the "arrayvec07" feature of the "%{crate}" crate. %files -n %{name}+arrayvec07-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bigdecimal04-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bigdecimal04-devel %{_description} This package contains library source intended for building other packages which use the "bigdecimal04" feature of the "%{crate}" crate. %files -n %{name}+bigdecimal04-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bytes1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bytes1-devel %{_description} This package contains library source intended for building other packages which use the "bytes1" feature of the "%{crate}" crate. %files -n %{name}+bytes1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chrono04-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chrono04-devel %{_description} This package contains library source intended for building other packages which use the "chrono04" feature of the "%{crate}" crate. %files -n %{name}+chrono04-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+derive-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+derive-devel %{_description} This package contains library source intended for building other packages which use the "derive" feature of the "%{crate}" crate. %files -n %{name}+derive-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+either1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+either1-devel %{_description} This package contains library source intended for building other packages which use the "either1" feature of the "%{crate}" crate. %files -n %{name}+either1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+indexmap2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+indexmap2-devel %{_description} This package contains library source intended for building other packages which use the "indexmap2" feature of the "%{crate}" crate. %files -n %{name}+indexmap2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+jiff02-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+jiff02-devel %{_description} This package contains library source intended for building other packages which use the "jiff02" feature of the "%{crate}" crate. %files -n %{name}+jiff02-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+preserve_order-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+preserve_order-devel %{_description} This package contains library source intended for building other packages which use the "preserve_order" feature of the "%{crate}" crate. %files -n %{name}+preserve_order-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+raw_value-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+raw_value-devel %{_description} This package contains library source intended for building other packages which use the "raw_value" feature of the "%{crate}" crate. %files -n %{name}+raw_value-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rust_decimal1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rust_decimal1-devel %{_description} This package contains library source intended for building other packages which use the "rust_decimal1" feature of the "%{crate}" crate. %files -n %{name}+rust_decimal1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+schemars_derive-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+schemars_derive-devel %{_description} This package contains library source intended for building other packages which use the "schemars_derive" feature of the "%{crate}" crate. %files -n %{name}+schemars_derive-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+semver1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+semver1-devel %{_description} This package contains library source intended for building other packages which use the "semver1" feature of the "%{crate}" crate. %files -n %{name}+semver1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+smallvec1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+smallvec1-devel %{_description} This package contains library source intended for building other packages which use the "smallvec1" feature of the "%{crate}" crate. %files -n %{name}+smallvec1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+smol_str02-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+smol_str02-devel %{_description} This package contains library source intended for building other packages which use the "smol_str02" feature of the "%{crate}" crate. %files -n %{name}+smol_str02-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+smol_str03-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+smol_str03-devel %{_description} This package contains library source intended for building other packages which use the "smol_str03" feature of the "%{crate}" crate. %files -n %{name}+smol_str03-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+url2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+url2-devel %{_description} This package contains library source intended for building other packages which use the "url2" feature of the "%{crate}" crate. %files -n %{name}+url2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+uuid1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+uuid1-devel %{_description} This package contains library source intended for building other packages which use the "uuid1" feature of the "%{crate}" crate. %files -n %{name}+uuid1-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # drop garde integration test (not packaged) rm tests/integration/garde.rs sed -r -i 's/^mod garde;$/# &/' tests/integration/main.rs # drop validator integration test (not packaged) rm tests/integration/validator.rs sed -r -i 's/^mod validator;$/# &/' tests/integration/main.rs %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Wed Mar 18 2026 Fabio Valentini - 1.2.1-1 - Update to version 1.2.1; Fixes RHBZ#2435806 * Sat Jan 17 2026 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Mon Dec 29 2025 Fabio Valentini - 1.2.0-1 - Update to version 1.2.0; Fixes RHBZ#2411917 * Fri Jul 25 2025 Fedora Release Engineering - 1.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sat Jul 19 2025 Fabio Valentini - 1.0.4-1 - Update to version 1.0.4; Fixes RHBZ#2376559 * Sat Jun 28 2025 Benjamin A. Beasley - 1.0.3-1 - Update to version 1.0.3; Fixes RHBZ#2368633 * Mon Apr 14 2025 Fabio Valentini - 0.8.22-2 - Drop unused support for arrayvec v0.5 and bigdecimal v0.3 * Mon Mar 03 2025 Fabio Valentini - 0.8.22-1 - Update to version 0.8.22; Fixes RHBZ#2347518 * Sun Jan 19 2025 Fedora Release Engineering - 0.8.21-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Sep 16 2024 Fabio Valentini - 0.8.21-3 - Drop unused support for uuid v0.8 * Sat Jul 20 2024 Fedora Release Engineering - 0.8.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue May 28 2024 Fabio Valentini - 0.8.21-1 - Update to version 0.8.21; Fixes RHBZ#2281440 * Tue May 07 2024 Fabio Valentini - 0.8.19-1 - Update to version 0.8.19; Fixes RHBZ#2277625 * Fri Jan 26 2024 Fedora Release Engineering - 0.8.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Nov 22 2023 Fabio Valentini - 0.8.16-1 - Initial import (#2246014) ## END: Generated by rpmautospec