# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate ffsend-api Name: rust-%{crate} Version: 0.2.3 Release: 1%{?dist} Summary: Fully featured Firefox Send API client License: MIT URL: https://crates.io/crates/ffsend-api Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(arrayref/default) >= 0.3.0 with crate(arrayref/default) < 0.4.0) BuildRequires: (crate(base64/default) >= 0.10.0 with crate(base64/default) < 0.11.0) BuildRequires: (crate(byteorder/default) >= 1.3.0 with crate(byteorder/default) < 2.0.0) BuildRequires: (crate(bytes/default) >= 0.4.0 with crate(bytes/default) < 0.5.0) BuildRequires: (crate(chrono/default) >= 0.4.0 with crate(chrono/default) < 0.5.0) BuildRequires: (crate(chrono/serde) >= 0.4.0 with crate(chrono/serde) < 0.5.0) BuildRequires: (crate(derive_builder/default) >= 0.7.0 with crate(derive_builder/default) < 0.8.0) BuildRequires: (crate(failure/default) >= 0.1.0 with crate(failure/default) < 0.2.0) BuildRequires: (crate(failure_derive/default) >= 0.1.0 with crate(failure_derive/default) < 0.2.0) BuildRequires: (crate(hkdf/default) >= 0.7.0 with crate(hkdf/default) < 0.8.0) BuildRequires: (crate(hyper/default) >= 0.12.20 with crate(hyper/default) < 0.13.0) BuildRequires: (crate(mime/default) >= 0.3.12 with crate(mime/default) < 0.4.0) BuildRequires: (crate(mime_guess/default) >= 2.0.0~alpha.4 with crate(mime_guess/default) < 3.0.0) BuildRequires: (crate(openssl/default) >= 0.10.0 with crate(openssl/default) < 0.11.0) BuildRequires: (crate(regex/default) >= 1.1.0 with crate(regex/default) < 2.0.0) BuildRequires: (crate(reqwest/default) >= 0.9.2 with crate(reqwest/default) < 0.10.0) BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0) BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0) BuildRequires: (crate(sha2/default) >= 0.8.0 with crate(sha2/default) < 0.9.0) BuildRequires: (crate(time/default) >= 0.1.0 with crate(time/default) < 0.2.0) BuildRequires: (crate(url/default) >= 1.7.0 with crate(url/default) < 2.0.0) BuildRequires: (crate(url_serde/default) >= 0.2.0 with crate(url_serde/default) < 0.3.0) BuildRequires: (crate(version-compare/default) >= 0.0.6 with crate(version-compare/default) < 0.0.7) BuildRequires: (crate(websocket/default) >= 0.22.3 with crate(websocket/default) < 0.23.0) %global _description \ A fully featured Firefox Send API client. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE %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 %package -n %{name}+send2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+send2-devel %{_description} This package contains library source intended for building other packages which use "send2" feature of "%{crate}" crate. %files -n %{name}+send2-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+send3-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+send3-devel %{_description} This package contains library source intended for building other packages which use "send3" feature of "%{crate}" crate. %files -n %{name}+send3-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+websocket-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+websocket-devel %{_description} This package contains library source intended for building other packages which use "websocket" feature of "%{crate}" crate. %files -n %{name}+websocket-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Wed Mar 13 2019 Igor Gnatenko - 0.2.3-1 - Initial package