Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent 98cc215054
commit 0654c4f14b
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,5 +1,5 @@
# Generated by rust2rpm
# Tests are run in infrastructure
# * Tests are run in infrastructure
%bcond_with check
%global debug_package %{nil}
@ -7,7 +7,7 @@
Name: rust-%{crate}
Version: 0.1.13
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Set of types for representing HTTP requests and responses
# Upstream license specification: MIT/Apache-2.0
@ -18,32 +18,48 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(bytes) >= 0.4.0 with crate(bytes) < 0.5.0)
BuildRequires: (crate(fnv) >= 1.0.5 with crate(fnv) < 2.0.0)
BuildRequires: (crate(itoa) >= 0.4.1 with crate(itoa) < 0.5.0)
BuildRequires: (crate(bytes/default) >= 0.4.0 with crate(bytes/default) < 0.5.0)
BuildRequires: (crate(fnv/default) >= 1.0.5 with crate(fnv/default) < 2.0.0)
BuildRequires: (crate(itoa/default) >= 0.4.1 with crate(itoa/default) < 0.5.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(indexmap) >= 1.0.0 with crate(indexmap) < 2.0.0)
BuildRequires: (crate(quickcheck) >= 0.6.0 with crate(quickcheck) < 0.7.0)
BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0)
BuildRequires: (crate(seahash) >= 3.0.5 with crate(seahash) < 4.0.0)
BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0)
BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0)
BuildRequires: (crate(indexmap/default) >= 1.0.0 with crate(indexmap/default) < 2.0.0)
BuildRequires: (crate(quickcheck/default) >= 0.6.0 with crate(quickcheck/default) < 0.7.0)
BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0)
BuildRequires: (crate(seahash/default) >= 3.0.5 with crate(seahash/default) < 4.0.0)
BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
%endif
%description
%{summary}.
%global _description \
A set of types for representing HTTP requests and responses.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
A set of types for representing HTTP requests and responses.
%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 LICENSE-MIT LICENSE-APACHE
%doc CHANGELOG.md 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
@ -60,12 +76,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc CHANGELOG.md README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Sun Nov 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.13-2
- Adapt to new packaging
* Mon Sep 17 2018 Josh Stone <jistone@redhat.com> - 0.1.13-1
- Update to 0.1.13

Loading…
Cancel
Save