From ae6578cc3aee2c9ffd5ec946b20cac3624396027 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 15 Jun 2018 15:53:30 +0200 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + csv-core-0.1.4-fix-metadata.diff | 11 ++++++ rust-csv-core.spec | 64 ++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 csv-core-0.1.4-fix-metadata.diff create mode 100644 rust-csv-core.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16e2ec8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/csv-core-0.1.4.crate diff --git a/csv-core-0.1.4-fix-metadata.diff b/csv-core-0.1.4-fix-metadata.diff new file mode 100644 index 0000000..3faf7a4 --- /dev/null +++ b/csv-core-0.1.4-fix-metadata.diff @@ -0,0 +1,11 @@ +--- csv-core-0.1.4/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ csv-core-0.1.4/Cargo.toml 2018-06-14T08:44:14.607427+02:00 +@@ -34,7 +34,7 @@ + version = "2" + default-features = false + [dev-dependencies.arrayvec] +-version = "0.3" ++version = "0.4" + default-features = false + + [features] diff --git a/rust-csv-core.spec b/rust-csv-core.spec new file mode 100644 index 0000000..6695740 --- /dev/null +++ b/rust-csv-core.spec @@ -0,0 +1,64 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate csv-core + +Name: rust-%{crate} +Version: 0.1.4 +Release: 1%{?dist} +Summary: Bare bones CSV parsing with no_std support + +License: Unlicense or MIT +URL: https://crates.io/crates/csv-core +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Bump arrayvec to 0.4, https://github.com/BurntSushi/rust-csv/commit/9030a4a5f3c04cfecea69cca5b934c589f81427e +Patch0: csv-core-0.1.4-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(memchr) >= 2.0.0 with crate(memchr) < 3.0.0) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(arrayvec) >= 0.4.0 with crate(arrayvec) < 0.5.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Bare bones CSV parsing with no_std support. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license COPYING LICENSE-MIT UNLICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Thu Jun 14 2018 Igor Gnatenko - 0.1.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b04357b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (csv-core-0.1.4.crate) = c2e5291489eb1d1c192c7d94cbe8be3c6bcf0a5d8ef2bb525ccdc20a9c512e3a42946241457de7ba219b59d330d87a2ce51995782621e6c1d4192e2a71e888f6