From adcd455f6e26bb564289a9fbaebf26370b1bb65a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 18 Jul 2023 22:40:53 +0200 Subject: [PATCH] Initial import (#2217023) --- .gitignore | 1 + README.md | 3 -- rust-serde_buf.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-serde_buf.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e1d1de --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/serde_buf-0.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 7b7bb09..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-serde_buf - -The rust-serde_buf package diff --git a/rust-serde_buf.spec b/rust-serde_buf.spec new file mode 100644 index 0000000..8a33d37 --- /dev/null +++ b/rust-serde_buf.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate serde_buf + +Name: rust-serde_buf +Version: 0.1.1 +Release: %autorelease +Summary: Generic buffering for serde + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/serde_buf +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Generic buffering for serde.} + +%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..ec12aee --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (serde_buf-0.1.1.crate) = 09692d4297bf26fb1b1f7a2d4a443c16f95be27eb06bac538a3cb7b2264f57679a189bd188d6565e61909276e6bc41f1d4df1779ef51a449e52f8f0eb3d1c176