Adapt to new packaging

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
epel9
Robert-André Mauchin 6 years ago
parent d140230b70
commit bceda1d060

@ -6,8 +6,8 @@
Name: rust-%{crate}
Version: 1.0.2
Release: 1%{?dist}
Summary: Fast CSV parsing with support for serde
Release: 2%{?dist}
Summary: Fast CSV parsing with support for serde.
# Upstream license specification: Unlicense/MIT
License: Unlicense or MIT
@ -17,27 +17,43 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(csv-core) >= 0.1.4 with crate(csv-core) < 0.2.0)
BuildRequires: (crate(serde) >= 1.0.55 with crate(serde) < 2.0.0)
BuildRequires: (crate(csv-core/default) >= 0.1.4 with crate(csv-core/default) < 0.2.0)
BuildRequires: (crate(serde/default) >= 1.0.55 with crate(serde/default) < 2.0.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(serde_bytes) >= 0.10.4 with crate(serde_bytes) < 0.11.0)
BuildRequires: (crate(serde_derive) >= 1.0.55 with crate(serde_derive) < 2.0.0)
BuildRequires: (crate(serde_bytes/default) >= 0.10.4 with crate(serde_bytes/default) < 0.11.0)
BuildRequires: (crate(serde_derive/default) >= 1.0.55 with crate(serde_derive/default) < 2.0.0)
%endif
%description
%{summary}.
%global _description \
Fast CSV parsing with support for serde.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Fast CSV parsing with support for serde.
%description devel %{_description}
This package contains library source intended for building other packages
which use %{crate} from crates.io.
which use "%{crate}" crate.
%files devel
%license COPYING LICENSE-MIT UNLICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages
which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
@ -54,12 +70,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license COPYING LICENSE-MIT UNLICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Fri Nov 09 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.2-2
- Adapt to new packaging
* Tue Sep 25 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.2-1
- Update to 1.0.2

Loading…
Cancel
Save