commit 0d5354bf6afb2ed2f606bcdfc133b09bb5c48c75 Author: tigro Date: Mon Jan 15 22:32:37 2024 +0300 import rust-schemars-0.8.16-1.el9 diff --git a/.rust-schemars.metadata b/.rust-schemars.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/schemars-0.8.16.crate b/SOURCES/schemars-0.8.16.crate new file mode 100644 index 0000000..e3c2f70 Binary files /dev/null and b/SOURCES/schemars-0.8.16.crate differ diff --git a/SPECS/rust-schemars.spec b/SPECS/rust-schemars.spec new file mode 100644 index 0000000..55bc7dd --- /dev/null +++ b/SPECS/rust-schemars.spec @@ -0,0 +1,418 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate schemars + +Name: rust-schemars +Version: 0.8.16 +Release: %autorelease +Summary: Generate JSON Schemas from Rust code + +License: MIT +URL: https://crates.io/crates/schemars +Source: %{crates_source} + +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}+arrayvec-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+arrayvec-devel %{_description} + +This package contains library source intended for building other packages which +use the "arrayvec" feature of the "%{crate}" crate. + +%files -n %{name}+arrayvec-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+arrayvec05-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+arrayvec05-devel %{_description} + +This package contains library source intended for building other packages which +use the "arrayvec05" feature of the "%{crate}" crate. + +%files -n %{name}+arrayvec05-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}+bigdecimal-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bigdecimal-devel %{_description} + +This package contains library source intended for building other packages which +use the "bigdecimal" feature of the "%{crate}" crate. + +%files -n %{name}+bigdecimal-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+bigdecimal03-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bigdecimal03-devel %{_description} + +This package contains library source intended for building other packages which +use the "bigdecimal03" feature of the "%{crate}" crate. + +%files -n %{name}+bigdecimal03-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}+bytes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bytes-devel %{_description} + +This package contains library source intended for building other packages which +use the "bytes" feature of the "%{crate}" crate. + +%files -n %{name}+bytes-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+chrono-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+chrono-devel %{_description} + +This package contains library source intended for building other packages which +use the "chrono" feature of the "%{crate}" crate. + +%files -n %{name}+chrono-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}+derive_json_schema-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+derive_json_schema-devel %{_description} + +This package contains library source intended for building other packages which +use the "derive_json_schema" feature of the "%{crate}" crate. + +%files -n %{name}+derive_json_schema-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+either-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+either-devel %{_description} + +This package contains library source intended for building other packages which +use the "either" feature of the "%{crate}" crate. + +%files -n %{name}+either-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+enumset-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+enumset-devel %{_description} + +This package contains library source intended for building other packages which +use the "enumset" feature of the "%{crate}" crate. + +%files -n %{name}+enumset-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+impl_json_schema-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+impl_json_schema-devel %{_description} + +This package contains library source intended for building other packages which +use the "impl_json_schema" feature of the "%{crate}" crate. + +%files -n %{name}+impl_json_schema-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+indexmap-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+indexmap-devel %{_description} + +This package contains library source intended for building other packages which +use the "indexmap" feature of the "%{crate}" crate. + +%files -n %{name}+indexmap-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+indexmap1-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+indexmap1-devel %{_description} + +This package contains library source intended for building other packages which +use the "indexmap1" feature of the "%{crate}" crate. + +%files -n %{name}+indexmap1-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}+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_decimal-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rust_decimal-devel %{_description} + +This package contains library source intended for building other packages which +use the "rust_decimal" feature of the "%{crate}" crate. + +%files -n %{name}+rust_decimal-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}+semver-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+semver-devel %{_description} + +This package contains library source intended for building other packages which +use the "semver" feature of the "%{crate}" crate. + +%files -n %{name}+semver-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+smallvec-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+smallvec-devel %{_description} + +This package contains library source intended for building other packages which +use the "smallvec" feature of the "%{crate}" crate. + +%files -n %{name}+smallvec-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+smol_str-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+smol_str-devel %{_description} + +This package contains library source intended for building other packages which +use the "smol_str" feature of the "%{crate}" crate. + +%files -n %{name}+smol_str-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+ui_test-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ui_test-devel %{_description} + +This package contains library source intended for building other packages which +use the "ui_test" feature of the "%{crate}" crate. + +%files -n %{name}+ui_test-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+url-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+url-devel %{_description} + +This package contains library source intended for building other packages which +use the "url" feature of the "%{crate}" crate. + +%files -n %{name}+url-devel +%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 +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 + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.8.16-1 +- Rebuilt for MSVSphere 9.3 + +* Wed Nov 22 2023 Fabio Valentini - 0.8.16-1 +- Initial import (#2246014)