diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..934e01f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sval_buffer-2.6.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index f56de0b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sval_buffer - -The rust-sval_buffer package diff --git a/rust-sval_buffer.spec b/rust-sval_buffer.spec new file mode 100644 index 0000000..ea306ab --- /dev/null +++ b/rust-sval_buffer.spec @@ -0,0 +1,93 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate sval_buffer + +Name: rust-sval_buffer +Version: 2.6.1 +Release: %autorelease +Summary: Value buffering for sval + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/sval_buffer +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Value buffering 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}+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..08a5081 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sval_buffer-2.6.1.crate) = 959b4d4393e28e4636eb2700a2ed8d65f718627b08aae4894c9dbc4f30c967c86b938a97ebb27cd8f0e40487d734809eaaaf935b7e829d992b3cbd00ec66154a