From 9e62cf090e7cc4a308fd4910d1b574c7e71902b1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 23 Nov 2023 00:16:34 +0100 Subject: [PATCH] Initial import (#2246011) --- .gitignore | 1 + README.md | 3 -- rust-schemars_derive.spec | 68 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-schemars_derive.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..512a19c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/schemars_derive-0.8.16.crate diff --git a/README.md b/README.md deleted file mode 100644 index c101800..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-schemars_derive - -The rust-schemars_derive package diff --git a/rust-schemars_derive.spec b/rust-schemars_derive.spec new file mode 100644 index 0000000..b2960bb --- /dev/null +++ b/rust-schemars_derive.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate schemars_derive + +Name: rust-schemars_derive +Version: 0.8.16 +Release: %autorelease +Summary: Macros for #[derive(JsonSchema)], for use with schemars + +License: MIT +URL: https://crates.io/crates/schemars_derive +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Macros for #[derive(JsonSchema)], for use with schemars.} + +%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 + +%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..c5e9bd2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (schemars_derive-0.8.16.crate) = 000554c30ea0b8d50752244204d3eeaa76f8b96c9e22f3a40df840cb68308dc94ac072c52fbc8cf25658af88011a69a5fc1b9ebe910c20253a8f5a1162601f46