diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4993795 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sval_dynamic-2.6.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 32e6ad4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sval_dynamic - -The rust-sval_dynamic package diff --git a/rust-sval_dynamic.spec b/rust-sval_dynamic.spec new file mode 100644 index 0000000..4df8abc --- /dev/null +++ b/rust-sval_dynamic.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate sval_dynamic + +Name: rust-sval_dynamic +Version: 2.6.1 +Release: %autorelease +Summary: Object-safe versions of sval::Stream and sval::Value + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/sval_dynamic +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Object-safe versions of sval::Stream 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 + +%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..537137e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sval_dynamic-2.6.1.crate) = 247f6bfb1ac1a68d4ae6ab07f53b84e6b45912f4e20227827b9d06480d1a97ba195f0b5129476fd062633472dd3ec861ddd77bf2fc404d57f090808532239851