# Generated by rust2rpm %bcond_with check %global debug_package %{nil} %global crate libssh2-sys Name: rust-%{crate} Version: 0.2.11 Release: 3%{?dist} Summary: Native bindings to the libssh2 library # Upstream license specification: MIT/Apache-2.0 # https://github.com/alexcrichton/ssh2-rs/issues/75 License: MIT or ASL 2.0 URL: https://crates.io/crates/libssh2-sys Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No Windows Patch0: libssh2-sys-fix-metadata.diff # Doesn't seem to be upstreamable Patch1: 0001-build.rs-always-use-pkg-config.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(cc/default) >= 1.0.25 with crate(cc/default) < 2.0.0) BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0) BuildRequires: (crate(libz-sys/default) >= 1.0.21 with crate(libz-sys/default) < 2.0.0) BuildRequires: (crate(openssl-sys/default) >= 0.9.35 with crate(openssl-sys/default) < 0.10.0) BuildRequires: (crate(pkg-config/default) >= 0.3.11 with crate(pkg-config/default) < 0.4.0) BuildRequires: pkgconfig(libssh2) %global _description \ Native bindings to the libssh2 library. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(libssh2) %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %{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} -N # No bundled deps rm -vrf libssh2/ %patch0 -p1 %patch1 -p2 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Thu Dec 20 2018 Igor Gnatenko - 0.2.11-3 - Run tests in infrastructure * Sun Nov 04 2018 Igor Gnatenko - 0.2.11-2 - Adapt to new packaging * Mon Sep 17 2018 Josh Stone - 0.2.11-1 - Update to 0.2.11 * Tue Aug 07 2018 Josh Stone - 0.2.10-1 - Update to 0.2.10 * Sat Jul 14 2018 Igor Gnatenko - 0.2.8-1 - Update to 0.2.8 * Sat Jul 14 2018 Fedora Release Engineering - 0.2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri May 04 2018 Josh Stone - 0.2.7-1 - Update to 0.2.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 0.2.6-2 - Rebuild for rust-packaging v5 * Thu Jun 15 2017 Igor Gnatenko - 0.2.6-1 - Update to 0.2.6 * Wed Jun 14 2017 Igor Gnatenko - 0.2.5-3 - Port to use rust-packaging * Sun Feb 26 2017 Igor Gnatenko - 0.2.5-2 - Rebuild * Sun Feb 26 2017 Igor Gnatenko - 0.2.5-1 - Initial package