f9b8632
# Generated by rust2rpm 25
c4c3b68
%bcond_without check
fa5d162
%global debug_package %{nil}
fa5d162
fa5d162
%global crate csv
fa5d162
33f0df7
Name:           rust-csv
f9b8632
Version:        1.3.0
ec037bf
Release:        %autorelease
f5915b5
Summary:        Fast CSV parsing with support for serde
fa5d162
83fd8a4
# Upstream license specification: Unlicense/MIT
33f0df7
License:        Unlicense OR MIT
fa5d162
URL:            https://crates.io/crates/csv
cf379f7
Source:         %{crates_source}
fa5d162
f9b8632
BuildRequires:  cargo-rpm-macros >= 24
fa5d162
c4c3b68
%global _description %{expand:
c4c3b68
Fast CSV parsing with support for serde.}
bceda1d
bceda1d
%description %{_description}
fa5d162
fa5d162
%package        devel
fa5d162
Summary:        %{summary}
fa5d162
BuildArch:      noarch
fa5d162
bceda1d
%description    devel %{_description}
fa5d162
33f0df7
This package contains library source intended for building other packages which
33f0df7
use the "%{crate}" crate.
bceda1d
bceda1d
%files          devel
33f0df7
%license %{crate_instdir}/COPYING
33f0df7
%license %{crate_instdir}/LICENSE-MIT
33f0df7
%license %{crate_instdir}/UNLICENSE
33f0df7
%doc %{crate_instdir}/ISSUE_TEMPLATE.md
33f0df7
%doc %{crate_instdir}/README.md
33f0df7
%{crate_instdir}/
bceda1d
bceda1d
%package     -n %{name}+default-devel
bceda1d
Summary:        %{summary}
bceda1d
BuildArch:      noarch
bceda1d
bceda1d
%description -n %{name}+default-devel %{_description}
bceda1d
33f0df7
This package contains library source intended for building other packages which
33f0df7
use the "default" feature of the "%{crate}" crate.
bceda1d
bceda1d
%files       -n %{name}+default-devel
33f0df7
%ghost %{crate_instdir}/Cargo.toml
fa5d162
fa5d162
%prep
f9b8632
%autosetup -n %{crate}-%{version} -p1
fa5d162
%cargo_prep
fa5d162
0fc5699
%generate_buildrequires
0fc5699
%cargo_generate_buildrequires
0fc5699
fa5d162
%build
fa5d162
%cargo_build
fa5d162
fa5d162
%install
fa5d162
%cargo_install
fa5d162
fa5d162
%if %{with check}
fa5d162
%check
fa5d162
%cargo_test
fa5d162
%endif
fa5d162
fa5d162
%changelog
ec037bf
%autochangelog