The package rpms/rust-schemafy_core.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/rust-schemafy_core.git/commit/?id=75....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit 7569a9ae3c7c28032cc5c40c1543e9eef7a917f3 Author: Jan Macku jamacku@redhat.com Date: Tue Nov 1 09:17:19 2022 +0100
Initial import
Resolves: #2138156
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..142807e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/schemafy_core-0.6.0.crate diff --git a/0001-docs-Add-a-README.md-and-LICENSE.patch b/0001-docs-Add-a-README.md-and-LICENSE.patch new file mode 100644 index 0000000..3ae3170 --- /dev/null +++ b/0001-docs-Add-a-README.md-and-LICENSE.patch @@ -0,0 +1,51 @@ +From 198e99496d0678c43143a11cd3ce1c4232ada8b3 Mon Sep 17 00:00:00 2001 +From: Markus Westerlind marwes91@gmail.com +Date: Mon, 31 Oct 2016 23:18:50 +0100 +Subject: [PATCH] docs: Add a README.md and LICENSE + +--- + LICENSE | 22 ++++++++++++++++++++++ + README.md | 5 +++++ + 2 files changed, 27 insertions(+) + create mode 100644 LICENSE + create mode 100644 README.md + +diff --git a/LICENSE b/LICENSE +new file mode 100644 +index 0000000..32781d9 +--- /dev/null ++++ b/LICENSE +@@ -0,0 +1,22 @@ ++The MIT License (MIT) ++ ++Copyright (c) 2016 Markus Westerlind ++ ++Permission is hereby granted, free of charge, to any person obtaining a copy ++of this software and associated documentation files (the "Software"), to deal ++in the Software without restriction, including without limitation the rights ++to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ++copies of the Software, and to permit persons to whom the Software is ++furnished to do so, subject to the following conditions: ++ ++The above copyright notice and this permission notice shall be included in ++all copies or substantial portions of the Software. ++ ++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ++IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ++FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ++AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ++LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ++OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN ++THE SOFTWARE. ++ +diff --git a/README.md b/README.md +new file mode 100644 +index 0000000..9131ab3 +--- /dev/null ++++ b/README.md +@@ -0,0 +1,5 @@ ++# json-schema ++ ++This is a Rust crate which can take a [json schema](http://json-schema.org/) and generate Rust types which are serializable with [serde](https://serde.rs/). No checking such as `min_value` are done but instead only the structure of the schema is followed as closely as possible. ++ ++As a schema could be arbitrarily complex this crate makes no guarantee that it can generate good types or even any types at all for a given schema but the crate does manage to bootstrap itself which is kind of cool. diff --git a/rust-schemafy_core.spec b/rust-schemafy_core.spec new file mode 100644 index 0000000..ea624b4 --- /dev/null +++ b/rust-schemafy_core.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 22 +%bcond_without check +%global debug_package %{nil} + +%global crate schemafy_core + +Name: rust-schemafy_core +Version: 0.6.0 +Release: %autorelease +Summary: Generates serializeable Rust types from a json schema + +License: MIT +URL: https://crates.io/crates/schemafy_core +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +# Upstream patches -- official upstream patches released by upstream since the +# ---------------- last release that are necessary for any reason: +# Should be fixed in next release - https://github.com/Marwes/schemafy/pull/62 +Patch0001: 0001-docs-Add-a-README.md-and-LICENSE.patch + +%global _description %{expand: +Generates serializeable Rust types from a json schema.} + +%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 +%{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_no_tilde} -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..c8a9cff --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (schemafy_core-0.6.0.crate) = ca9595a0d07df9990edbf3de386410d837459d6c91c3be00cd93722678eca2bebd0ab78e2b18e2ae67d629e02f441c2606d64aff6eab0df75bb42b7e153cca50
arch-excludes@lists.fedoraproject.org