# Generated by rust2rpm # Tests are run in infrastructure %bcond_with check %global debug_package %{nil} %global crate curl Name: rust-%{crate} Version: 0.4.15 Release: 1%{?dist} Summary: Rust bindings to libcurl for making HTTP requests License: MIT URL: https://crates.io/crates/curl Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No windows/osx Patch0: curl-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(curl-sys) >= 0.4.9 with crate(curl-sys) < 0.5.0) BuildRequires: (crate(libc) >= 0.2.42 with crate(libc) < 0.3.0) BuildRequires: (crate(openssl-probe) >= 0.1.2 with crate(openssl-probe) < 0.2.0) BuildRequires: (crate(openssl-sys) >= 0.9.33 with crate(openssl-sys) < 0.10.0) BuildRequires: (crate(socket2) >= 0.3.7 with crate(socket2) < 0.4.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(mio) >= 0.6.0 with crate(mio) < 0.7.0) BuildRequires: (crate(mio-extras) >= 2.0.3 with crate(mio-extras) < 3.0.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Rust bindings to libcurl for making HTTP requests. 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}/ %exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,ci} %changelog * Thu Sep 13 2018 Josh Stone - 0.4.15-1 - Update to 0.4.15 * Fri Sep 07 2018 Josh Stone - 0.4.14-1 - Update to 0.4.14 * Sat Jul 28 2018 Igor Gnatenko - 0.4.12-2 - Rebuild to trigger tests * Sun Jul 22 2018 Igor Gnatenko - 0.4.12-1 - Update to 0.4.12 * Sat Jul 14 2018 Fedora Release Engineering - 0.4.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.4.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 13 2018 Igor Gnatenko - 0.4.11-1 - Initial package