diff --git a/README.md b/README.md deleted file mode 100644 index 920cb01..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-serde_cbor - -The rust-serde_cbor package \ No newline at end of file diff --git a/rust-serde_cbor.spec b/rust-serde_cbor.spec index 5d37250..08e240b 100644 --- a/rust-serde_cbor.spec +++ b/rust-serde_cbor.spec @@ -1,25 +1,20 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate serde_cbor -Name: rust-%{crate} +Name: rust-serde_cbor Version: 0.11.2 Release: %autorelease Summary: CBOR support for serde # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/serde_cbor Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: CBOR support for serde.} @@ -32,13 +27,15 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CONTRIBUTING.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +43,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+alloc-devel Summary: %{summary} @@ -58,11 +55,11 @@ BuildArch: noarch %description -n %{name}+alloc-devel %{_description} -This package contains library source intended for building other packages -which use "alloc" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -70,11 +67,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tags-devel Summary: %{summary} @@ -82,11 +79,11 @@ BuildArch: noarch %description -n %{name}+tags-devel %{_description} -This package contains library source intended for building other packages -which use "tags" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "tags" feature of the "%{crate}" crate. %files -n %{name}+tags-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unsealed_read_write-devel Summary: %{summary} @@ -94,11 +91,11 @@ BuildArch: noarch %description -n %{name}+unsealed_read_write-devel %{_description} -This package contains library source intended for building other packages -which use "unsealed_read_write" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "unsealed_read_write" feature of the "%{crate}" crate. %files -n %{name}+unsealed_read_write-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1