From 7d64b9da0dcf8f6ea927fb7cb6c6573b16f64815 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 23 Nov 2023 00:19:38 +0100 Subject: [PATCH] Initial import (#2246014) --- .gitignore | 1 + README.md | 3 - rust-schemars.spec | 404 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 406 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-schemars.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..78734ef --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/schemars-0.8.16.crate diff --git a/README.md b/README.md deleted file mode 100644 index d7c343f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-schemars - -The rust-schemars package diff --git a/rust-schemars.spec b/rust-schemars.spec new file mode 100644 index 0000000..a853ed2 --- /dev/null +++ b/rust-schemars.spec @@ -0,0 +1,404 @@ +# 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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..3439681 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (schemars-0.8.16.crate) = 738022b563bedfc73f2f2899216b8ae4cf0f563c1a6ac91639715d5f36446d7011fadd5554b8a4e9e569dddff836cc136ea2be5e65b72f85613a4a890d355a06