|
|
@ -1,25 +1,25 @@
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
%bcond_without check
|
|
|
|
# * tests fail, require internet access, or pull in outdated dependencies
|
|
|
|
|
|
|
|
%bcond_with check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate curl
|
|
|
|
%global crate curl
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-curl
|
|
|
|
Name: rust-curl
|
|
|
|
Version: 0.4.44
|
|
|
|
Version: 0.4.47
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Rust bindings to libcurl for making HTTP requests
|
|
|
|
Summary: Rust bindings to libcurl for making HTTP requests
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://crates.io/crates/curl
|
|
|
|
URL: https://crates.io/crates/curl
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Automatically generated patch to strip foreign dependencies
|
|
|
|
# Automatically generated patch to strip dependencies and normalize metadata
|
|
|
|
Patch: curl-fix-metadata-auto.diff
|
|
|
|
Patch: curl-fix-metadata-auto.diff
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * drop test binary that requires internet connectivity
|
|
|
|
|
|
|
|
# * exclude upstream CI files
|
|
|
|
# * exclude upstream CI files
|
|
|
|
Patch: curl-fix-metadata.diff
|
|
|
|
Patch: curl-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Rust bindings to libcurl for making HTTP requests.}
|
|
|
|
Rust bindings to libcurl for making HTTP requests.}
|
|
|
@ -161,9 +161,7 @@ use the "upkeep_7_62_0" feature of the "%{crate}" crate.
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
# drop test binary that requires internet connectivity
|
|
|
|
|
|
|
|
rm tests/atexit.rs
|
|
|
|
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
@ -177,8 +175,7 @@ rm tests/atexit.rs
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# skip tests that require internet connectivity
|
|
|
|
%cargo_test
|
|
|
|
%cargo_test -- -- --skip src/easy/handle.rs --skip src/easy/handler.rs
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|