Adapt to new packaging

epel9
Josh Stone 6 years ago
parent 78fccdc7e5
commit bc3a235645

@ -7,7 +7,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.18.0 Version: 0.18.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Helpers for interacting with crates.io Summary: Helpers for interacting with crates.io
# Upstream license specification: MIT OR Apache-2.0 # Upstream license specification: MIT OR Apache-2.0
@ -18,26 +18,42 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(curl/default) >= 0.4.0 with crate(curl/default) < 0.5.0)
BuildRequires: (crate(curl) >= 0.4.0 with crate(curl) < 0.5.0) BuildRequires: (crate(failure/default) >= 0.1.1 with crate(failure/default) < 0.2.0)
BuildRequires: (crate(failure) >= 0.1.1 with crate(failure) < 0.2.0) BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0)
BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0) BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0) BuildRequires: (crate(url/default) >= 1.0.0 with crate(url/default) < 2.0.0)
BuildRequires: (crate(url) >= 1.0.0 with crate(url) < 2.0.0)
%global _description \
Helpers for interacting with crates.io.
%description %description %{_description}
%{summary}.
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Helpers for interacting with crates.io.
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE-MIT LICENSE-APACHE
%{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 This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -54,11 +70,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Tue Nov 13 2018 Josh Stone <jistone@redhat.com> - 0.18.0-2
- Adapt to new packaging
* Sun Oct 21 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.18.0-1 * Sun Oct 21 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.18.0-1
- Update to 0.18.0 - Update to 0.18.0

Loading…
Cancel
Save