diff --git a/README.md b/README.md deleted file mode 100644 index 9f1f118..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-bincode - -The rust-bincode package \ No newline at end of file diff --git a/rust-bincode.spec b/rust-bincode.spec index 64ec27d..598b639 100644 --- a/rust-bincode.spec +++ b/rust-bincode.spec @@ -1,28 +1,22 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate bincode -Name: rust-%{crate} +Name: rust-bincode Version: 1.3.3 Release: %autorelease Summary: Binary serialization / deserialization strategy that uses Serde -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/bincode Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Binary serialization / deserialization strategy that uses Serde for +A binary serialization / deserialization strategy that uses Serde for transforming structs into bytes and vice versa!.} %description %{_description} @@ -34,12 +28,12 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel -%license LICENSE.md -%doc readme.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE.md +%doc %{crate_instdir}/readme.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,10 +42,10 @@ 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. +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+i128-devel Summary: %{summary} @@ -60,10 +54,10 @@ BuildArch: noarch %description -n %{name}+i128-devel %{_description} This package contains library source intended for building other packages which -use "the i128" feature of the "%{crate}" crate. +use the "i128" feature of the "%{crate}" crate. %files -n %{name}+i128-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..e0debed --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Binary serialization / deserialization strategy that uses Serde