Adapt to new packaging

epel9
Josh Stone 6 years ago
parent cc26ec8522
commit e0129bea58

@ -6,7 +6,7 @@
Name: rust-%{crate}
Version: 0.3.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Default TLS implementation for use with hyper
# Upstream license specification: MIT/Apache-2.0
@ -20,29 +20,45 @@ Patch0: hyper-tls-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(bytes) >= 0.4.0 with crate(bytes) < 0.5.0)
BuildRequires: (crate(futures) >= 0.1.21 with crate(futures) < 0.2.0)
BuildRequires: (crate(hyper) >= 0.12.0 with crate(hyper) < 0.13.0)
BuildRequires: (crate(native-tls) >= 0.2.0 with crate(native-tls) < 0.3.0)
BuildRequires: (crate(tokio-io) >= 0.1.0 with crate(tokio-io) < 0.2.0)
BuildRequires: (crate(bytes/default) >= 0.4.0 with crate(bytes/default) < 0.5.0)
BuildRequires: (crate(futures/default) >= 0.1.21 with crate(futures/default) < 0.2.0)
BuildRequires: (crate(hyper/default) >= 0.12.0 with crate(hyper/default) < 0.13.0)
BuildRequires: (crate(native-tls/default) >= 0.2.0 with crate(native-tls/default) < 0.3.0)
BuildRequires: (crate(tokio-io/default) >= 0.1.0 with crate(tokio-io/default) < 0.2.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(tokio) >= 0.1.5 with crate(tokio) < 0.2.0)
BuildRequires: (crate(tokio/default) >= 0.1.5 with crate(tokio/default) < 0.2.0)
%endif
%description
%{summary}.
%global _description \
Default TLS implementation for use with hyper.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Default TLS implementation for use with hyper.
%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 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
@ -59,12 +75,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Mon Nov 12 2018 Josh Stone <jistone@redhat.com> - 0.3.1-2
- Adapt to new packaging
* Tue Oct 02 2018 Josh Stone <jistone@redhat.com> - 0.3.1-1
- Update to 0.3.1

Loading…
Cancel
Save