From 322fa666b7f0784dd3247918ecd4d5ec954b8b42 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 3 Nov 2023 01:20:07 +0100 Subject: [PATCH] Initial import (#2245087) --- .gitignore | 1 + README.md | 3 -- rust-sval_derive_macros.spec | 81 ++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-sval_derive_macros.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b3b0791 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sval_derive_macros-2.10.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index c02e423..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sval_derive_macros - -The rust-sval_derive_macros package diff --git a/rust-sval_derive_macros.spec b/rust-sval_derive_macros.spec new file mode 100644 index 0000000..0566b66 --- /dev/null +++ b/rust-sval_derive_macros.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate sval_derive_macros + +Name: rust-sval_derive_macros +Version: 2.10.2 +Release: %autorelease +Summary: Minimal derive support for sval + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/sval_derive_macros +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Minimal derive support for `sval`.} + +%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}+flatten-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+flatten-devel %{_description} + +This package contains library source intended for building other packages which +use the "flatten" feature of the "%{crate}" crate. + +%files -n %{name}+flatten-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -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..e55621c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sval_derive_macros-2.10.2.crate) = 51c15ac60c72af32d4f58826b7efb6e4a47c355bc721d7e196ae74d5a3e97718fff4ce96a251b2c1970d68954169212f8f01620eee126ed349bedb0f21943eaf