diff --git a/.gitignore b/.gitignore index 7e4017c..c907a5b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /tower-service-0.3.0.crate /tower-service-0.3.1.crate +/tower-service-0.3.2.crate diff --git a/rust-tower-service.spec b/rust-tower-service.spec index ad0cc54..3caf49d 100644 --- a/rust-tower-service.spec +++ b/rust-tower-service.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate tower-service Name: rust-%{crate} -Version: 0.3.1 +Version: 0.3.2 Release: %autorelease Summary: Asynchronous, request / response based, client or server trait @@ -13,16 +13,10 @@ Summary: Asynchronous, request / response based, client or server trait License: MIT URL: https://crates.io/crates/tower-service Source: %{crates_source} -# Initial patched metadata -# * add missing features to tokio dev-dependency -Patch0: tower-service-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Trait representing an asynchronous, request / response based, client or server.} @@ -35,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 -%license LICENSE -%doc README.md -%{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} @@ -49,11 +44,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 07c9f28..736fd74 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tower-service-0.3.1.crate) = d23f9db2d6632f561970b55eaeaac22a20c8b9af18931cd564db193688eb2a2973127b440e175cfd7358f3d0ead53f7a759e34b7b86c293751079af9c2181ba7 +SHA512 (tower-service-0.3.2.crate) = f4578421603067fa708c4ad9eca5ca096b5262b6d51a404f37d9fbb6c64f027cec6114991e4b7f8324cb756c033971a384f1804add28e00d0cd6b2ee01d9e005 diff --git a/tower-service-fix-metadata.diff b/tower-service-fix-metadata.diff deleted file mode 100644 index 0935915..0000000 --- a/tower-service-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- tower-service-0.3.1/Cargo.toml 2021-01-23T11:31:37+00:00 -+++ tower-service-0.3.1/Cargo.toml 2021-05-21T19:52:45.811563+00:00 -@@ -32,6 +32,7 @@ - - [dev-dependencies.tokio] - version = "1" -+features = ["time", "macros"] - - [dev-dependencies.tower-layer] - version = "0.3"