diff --git a/README.md b/README.md deleted file mode 100644 index 489ea50..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-tinyvec - -The rust-tinyvec package \ No newline at end of file diff --git a/rust-tinyvec.spec b/rust-tinyvec.spec index 683852d..316149a 100644 --- a/rust-tinyvec.spec +++ b/rust-tinyvec.spec @@ -1,23 +1,20 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate tinyvec -Name: rust-%{crate} +Name: rust-tinyvec Version: 1.6.0 Release: %autorelease Summary: 100% safe vec-like data structures -# Upstream license specification: Zlib OR Apache-2.0 OR MIT -License: zlib or ASL 2.0 or MIT +License: Zlib OR Apache-2.0 OR MIT URL: https://crates.io/crates/tinyvec Source: %{crates_source} -# Initial patched metadata -# * drop criterion dev-dependency (only used in benchmarks) to speed up builds -Patch0: tinyvec-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: tinyvec-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -42,7 +39,6 @@ use the "%{crate}" crate. %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ -%exclude %{crate_instdir}/{src-backup/,*.sh,*.py,rustfmt.toml} %package -n %{name}+default-devel Summary: %{summary} diff --git a/tinyvec-fix-metadata.diff b/tinyvec-fix-metadata.diff index 8c2e840..d165c47 100644 --- a/tinyvec-fix-metadata.diff +++ b/tinyvec-fix-metadata.diff @@ -1,6 +1,19 @@ --- tinyvec-1.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ tinyvec-1.6.0/Cargo.toml 2022-05-12T14:34:59.983167+00:00 -@@ -91,9 +91,6 @@ ++++ tinyvec-1.6.0/Cargo.toml 2023-08-07T18:29:35.290442+00:00 +@@ -27,6 +27,12 @@ + ] + license = "Zlib OR Apache-2.0 OR MIT" + repository = "https://github.com/Lokathor/tinyvec" ++exclude = [ ++ "/src-backup", ++ "/compare_benchmarks.py", ++ "/gen-array-impls.sh", ++ "/rustfmt.toml", ++] + + [package.metadata.docs.rs] + features = [ +@@ -91,9 +97,6 @@ version = "0.1" optional = true @@ -10,7 +23,7 @@ [dev-dependencies.serde_test] version = "1.0" -@@ -106,7 +103,6 @@ +@@ -106,7 +109,6 @@ experimental_write_impl = [] grab_spare_slice = [] nightly_slice_partition_dedup = []