Adapt to new packaging

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

@ -1,10 +0,0 @@
--- futures-0.1.24/Cargo.toml 1969-12-31T16:00:00-08:00
+++ futures-0.1.24/Cargo.toml 2018-09-07T16:14:02.543757-07:00
@@ -27,7 +27,6 @@
[features]
default = ["use_std", "with-deprecated"]
-nightly = []
use_std = []
with-deprecated = []
[badges.appveyor]

@ -6,34 +6,73 @@
Name: rust-%{crate}0.1 Name: rust-%{crate}0.1
Version: 0.1.25 Version: 0.1.25
Release: 1%{?dist} Release: 2%{?dist}
Summary: Implementation of futures and streams featuring zero allocations Summary: Implementation of futures and streams featuring zero allocations
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/futures URL: https://crates.io/crates/futures
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata
# * no nightly features
Patch0: futures-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
%description %global _description \
%{summary}. An implementation of futures and streams featuring zero allocations,\
composability, and iterator-like interfaces.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
An implementation of futures and streams featuring zero allocations,
composability, and iterator-like interfaces. This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md CHANGELOG.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 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
%package -n %{name}+use_std-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+use_std-devel %{_description}
This package contains library source intended for building other packages
which use "use_std" feature of "%{crate}" crate.
%files -n %{name}+use_std-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+with-deprecated-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+with-deprecated-devel %{_description}
This package contains library source intended for building other packages
which use "with-deprecated" feature of "%{crate}" crate.
%files -n %{name}+with-deprecated-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -50,13 +89,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md CHANGELOG.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml
%changelog %changelog
* Sun Nov 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.25-2
- Adapt to new packaging
* Mon Oct 08 2018 Josh Stone <jistone@redhat.com> - 0.1.25-1 * Mon Oct 08 2018 Josh Stone <jistone@redhat.com> - 0.1.25-1
- Update to 0.1.25 - Update to 0.1.25

Loading…
Cancel
Save