diff --git a/.gitignore b/.gitignore index 4143f08..0932a27 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /rmp-0.8.7.crate /rmp-0.8.8.crate /rmp-0.8.9.crate +/rmp-0.8.11.crate diff --git a/rust-rmp.spec b/rust-rmp.spec index 9e64d91..600ae24 100644 --- a/rust-rmp.spec +++ b/rust-rmp.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate rmp Name: rust-%{crate} -Version: 0.8.9 +Version: 0.8.11 Release: %autorelease Summary: Pure Rust MessagePack serialization implementation @@ -15,11 +15,8 @@ URL: https://crates.io/crates/rmp Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Pure Rust MessagePack serialization implementation.} @@ -32,13 +29,14 @@ 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 -%doc CHANGELOG.md README.md -%license LICENSE -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +44,23 @@ 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}+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 diff --git a/sources b/sources index e6424ba..f1f3e85 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rmp-0.8.9.crate) = cbed3952a022ba63283b438b108b16234002f4a2a2959ae3c17360d34751ccca4fcdf93d917b9b2b6026eb5802fea07c8017547654fe3920b5306f704d11f797 +SHA512 (rmp-0.8.11.crate) = 27a499316542722a4d9fe4fa9cc005b6b5fa75dcf66686a5c08aa6130497b67511c0283419adb64fec09a51a563f4991f2039280d2e74f8ea4102afbe4977f38