From ab0995d0fa41009f093fd0c38e526e0dc06c4588 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 17 Jul 2023 21:02:09 +0200 Subject: [PATCH] Initial import (#2217030) --- .gitignore | 1 + README.md | 3 -- rust-sval_test.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-sval_test.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..84267d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sval_test-2.6.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 927d690..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sval_test - -The rust-sval_test package diff --git a/rust-sval_test.spec b/rust-sval_test.spec new file mode 100644 index 0000000..26c16dc --- /dev/null +++ b/rust-sval_test.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate sval_test + +Name: rust-sval_test +Version: 2.6.1 +Release: %autorelease +Summary: Utilities for testing sval::Value implementations + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/sval_test +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Utilities for testing sval::Value implementations.} + +%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..ae2d224 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sval_test-2.6.1.crate) = 586c12e41d1cacb92d126028bf4ece274e54c8dde1867ef709f871485d5b55d6f79cad27313af54506702c6853c92bd11f0a2d9895d913f56ec5d295bf358b1e