exclude unneeded files in another way

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent d2bcf93518
commit 83fd8a4b28
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -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

@ -6,12 +6,16 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 1.0.1 Version: 1.0.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Fast CSV parsing with support for serde Summary: Fast CSV parsing with support for serde
# Upstream license specification: Unlicense/MIT
License: Unlicense or MIT License: Unlicense or MIT
URL: https://crates.io/crates/csv URL: https://crates.io/crates/csv
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate 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} ExclusiveArch: %{rust_arches}
@ -60,9 +64,11 @@ chmod -x benches/bench.rs
%license COPYING LICENSE-MIT UNLICENSE %license COPYING LICENSE-MIT UNLICENSE
%doc README.md %doc README.md
%{cargo_registry}/%{crate}-%{version}/ %{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,ci,scripts}
%changelog %changelog
* Tue Sep 25 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-2
- Exclude unneeded files in other way
* Thu Aug 30 2018 Josh Stone <jistone@redhat.com> - 1.0.1-1 * Thu Aug 30 2018 Josh Stone <jistone@redhat.com> - 1.0.1-1
- Update to 1.0.1 - Update to 1.0.1

Loading…
Cancel
Save