# Generated by rust2rpm # Tests require internet connection %bcond_with check %global debug_package %{nil} %global crate openssl Name: rust-%{crate} Version: 0.10.2 Release: 1%{?dist} Summary: OpenSSL bindings License: ASL 2.0 URL: https://crates.io/crates/openssl Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(bitflags) >= 1.0.0 with crate(bitflags) < 2.0.0) BuildRequires: (crate(foreign-types) >= 0.3.1 with crate(foreign-types) < 0.4.0) BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0) BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) BuildRequires: (crate(openssl-sys) >= 0.9.24 with crate(openssl-sys) < 0.10.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(data-encoding) >= 2.0.0 with crate(data-encoding) < 3.0.0) BuildRequires: (crate(hex) >= 0.3.0 with crate(hex) < 0.4.0) BuildRequires: (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel OpenSSL bindings. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %license LICENSE %doc README.md %{cargo_registry}/%{crate}-%{version}/ %changelog * Thu Jan 11 2018 Igor Gnatenko - 0.10.1-1 - Update to 0.10.1 * Mon Jan 08 2018 Igor Gnatenko - 0.9.23-2 - Rebuild for rust-packaging v5 * Thu Dec 07 2017 Igor Gnatenko - 0.9.23-1 - Update to 0.9.23 * Thu Nov 30 2017 Igor Gnatenko - 0.9.22-2 - Bump lazy_static to 1 * Thu Nov 30 2017 Igor Gnatenko - 0.9.22-1 - Update to 0.9.22 * Tue Nov 21 2017 Igor Gnatenko - 0.9.21-1 - Update to 0.9.21 * Thu Jun 15 2017 Igor Gnatenko - 0.9.14-1 - Update to 0.9.14 * Wed Jun 14 2017 Igor Gnatenko - 0.9.10-2 - Port to use rust-packaging * Mon Apr 03 2017 Igor Gnatenko - 0.9.10-1 - Initial package