diff --git a/csv-fix-metadata.diff b/csv-fix-metadata.diff new file mode 100644 index 0000000..9507696 --- /dev/null +++ b/csv-fix-metadata.diff @@ -0,0 +1,10 @@ +--- csv-1.0.1/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ csv-1.0.1/Cargo.toml 2018-09-25T07:14:47.639840+02:00 +@@ -22,6 +22,7 @@ + categories = ["encoding", "parser-implementations"] + license = "Unlicense/MIT" + repository = "https://github.com/BurntSushi/rust-csv" ++exclude = ["/.travis.yml", "/appveyor.yml", "/ci/*", "/scripts/*"] + [profile.bench] + debug = true + diff --git a/rust-csv.spec b/rust-csv.spec index 1d85518..3866f94 100644 --- a/rust-csv.spec +++ b/rust-csv.spec @@ -6,12 +6,16 @@ Name: rust-%{crate} Version: 1.0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Fast CSV parsing with support for serde +# Upstream license specification: Unlicense/MIT License: Unlicense or MIT URL: https://crates.io/crates/csv Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# Exclude useless files, https://github.com/BurntSushi/rust-csv/pull/134 +Patch0: csv-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -60,9 +64,11 @@ chmod -x benches/bench.rs %license COPYING LICENSE-MIT UNLICENSE %doc README.md %{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,ci,scripts} %changelog +* Tue Sep 25 2018 Igor Gnatenko - 1.0.1-2 +- Exclude unneeded files in other way + * Thu Aug 30 2018 Josh Stone - 1.0.1-1 - Update to 1.0.1