# Generated by rust2rpm 20 %bcond_with check %global debug_package %{nil} %global crate serde_with Name: rust-%{crate} Version: 1.12.0 Release: %autorelease Summary: Custom de/serialization functions for Rust's serde # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/serde_with Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description %{expand: Custom de/serialization functions for Rust's serde.} %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 LICENSE-APACHE LICENSE-MIT %doc CHANGELOG.md README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+base64-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+base64-devel %{_description} This package contains library source intended for building other packages which use the "base64" feature of the "%{crate}" crate. %files -n %{name}+base64-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+base64_crate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+base64_crate-devel %{_description} This package contains library source intended for building other packages which use the "base64_crate" feature of the "%{crate}" crate. %files -n %{name}+base64_crate-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+chrono_crate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chrono_crate-devel %{_description} This package contains library source intended for building other packages which use the "chrono_crate" feature of the "%{crate}" crate. %files -n %{name}+chrono_crate-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+doc-comment-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+doc-comment-devel %{_description} This package contains library source intended for building other packages which use the "doc-comment" feature of the "%{crate}" crate. %files -n %{name}+doc-comment-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+guide-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+guide-devel %{_description} This package contains library source intended for building other packages which use the "guide" feature of the "%{crate}" crate. %files -n %{name}+guide-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+hex-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hex-devel %{_description} This package contains library source intended for building other packages which use the "hex" feature of the "%{crate}" crate. %files -n %{name}+hex-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+json-devel %{_description} This package contains library source intended for building other packages which use the "json" feature of the "%{crate}" crate. %files -n %{name}+json-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+macros-devel %{_description} This package contains library source intended for building other packages which use the "macros" feature of the "%{crate}" crate. %files -n %{name}+macros-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde_json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_json-devel %{_description} This package contains library source intended for building other packages which use the "serde_json" feature of the "%{crate}" crate. %files -n %{name}+serde_json-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde_with_macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_with_macros-devel %{_description} This package contains library source intended for building other packages which use the "serde_with_macros" feature of the "%{crate}" crate. %files -n %{name}+serde_with_macros-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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