|
|
|
# Generated by rust2rpm
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
%global crate csv-core
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.1.4
|
|
|
|
Release: 2%{?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
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jun 14 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.4-1
|
|
|
|
- Initial package
|