diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f0eb421 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sval_serde-2.6.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 8906ef0..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sval_serde - -The rust-sval_serde package diff --git a/rust-sval_serde.spec b/rust-sval_serde.spec new file mode 100644 index 0000000..7bfe53c --- /dev/null +++ b/rust-sval_serde.spec @@ -0,0 +1,93 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate sval_serde + +Name: rust-sval_serde +Version: 2.6.1 +Release: %autorelease +Summary: Integration between serde::Serialize and sval::Value + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/sval_serde +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Integration between serde::Serialize and sval::Value.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-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..fce2b49 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sval_serde-2.6.1.crate) = 7deccae3f402c4f9750128d443d9b2c8a24c4823fdeb33c822b4445f0771aea310d3eb8b3d18ab9a52a84a40b4af5dce6c5542f25f91e5b15a9d2b86a8ef3505