From da96babaebe2c5d81fe72f7bdbdf5f761223925b Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 17 Jul 2023 23:57:39 +0200 Subject: [PATCH] Initial import (#2217032) --- .gitignore | 1 + README.md | 3 -- rust-sval_ref.spec | 93 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-sval_ref.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a180fdc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sval_ref-2.6.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index edb967a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sval_ref - -The rust-sval_ref package diff --git a/rust-sval_ref.spec b/rust-sval_ref.spec new file mode 100644 index 0000000..59c16ca --- /dev/null +++ b/rust-sval_ref.spec @@ -0,0 +1,93 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate sval_ref + +Name: rust-sval_ref +Version: 2.6.1 +Release: %autorelease +Summary: Variant of sval::Value for types with internal references + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/sval_ref +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A variant of sval::Value for types with internal references.} + +%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..7be85de --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sval_ref-2.6.1.crate) = 91ac822ae7b08c427fb5de860d4162e17e85b25b4219a32bc9ef1f5722b884624d78c17f46af332fb34ff6d2733c76603fc3a6b38c20001107c02d549b378fb0