diff --git a/README.md b/README.md deleted file mode 100644 index d48ec98..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-rspec - -The rust-rspec package diff --git a/rspec-1.0.0.crate b/rspec-1.0.0.crate deleted file mode 100644 index 4a530ff..0000000 Binary files a/rspec-1.0.0.crate and /dev/null differ diff --git a/rspec-fix-metadata.diff b/rspec-fix-metadata.diff new file mode 100644 index 0000000..dd67661 --- /dev/null +++ b/rspec-fix-metadata.diff @@ -0,0 +1,24 @@ +--- rspec-1.0.0/Cargo.toml 2021-02-06T15:09:51+00:00 ++++ rspec-1.0.0/Cargo.toml 2023-05-18T15:58:26.536674+00:00 +@@ -30,21 +30,13 @@ + [dependencies.derive_builder] + version = "0.9" + +-[dependencies.expectest] +-version = "0.12" +-optional = true +- + [dependencies.rayon] + version = "1.5" + + [dependencies.time] + version = "0.2" +-[build-dependencies.clippy] +-version = "0.0.153" +-optional = true + + [features] + default = [] +-expectest_compat = ["expectest"] + [badges.maintenance] + status = "passively-maintained" diff --git a/rust-rspec.spec b/rust-rspec.spec index 53e7a68..9c56198 100644 --- a/rust-rspec.spec +++ b/rust-rspec.spec @@ -1,25 +1,23 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate rspec -Name: rust-%{crate} +Name: rust-rspec Version: 1.0.0 Release: %autorelease Summary: Write Rspec-like tests with stable rust -# Upstream license specification: MPL-2.0 -License: MPLv2.0 +License: MPL-2.0 URL: https://crates.io/crates/rspec Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * remove optional build-dependency on the obsolete clippy crate +# * remove unused optional feature for expectest compatibility +Patch: rspec-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Write Rspec-like tests with stable rust.} @@ -32,13 +30,13 @@ 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}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,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