|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
# 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 crate curl
|
|
|
|
@ -15,7 +16,6 @@ Source: %{crates_source}
|
|
|
|
|
# Automatically generated patch to strip dependencies and normalize metadata
|
|
|
|
|
Patch: curl-fix-metadata-auto.diff
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * drop test binary that requires internet connectivity
|
|
|
|
|
# * exclude upstream CI files
|
|
|
|
|
Patch: curl-fix-metadata.diff
|
|
|
|
|
|
|
|
|
@ -163,11 +163,6 @@ use the "upkeep_7_62_0" feature of the "%{crate}" crate.
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
# * drop test binary that requires internet connectivity
|
|
|
|
|
rm tests/atexit.rs
|
|
|
|
|
# * drop test binary that only contains tests that fail:
|
|
|
|
|
# likely caused by either libcurl or curl-sys crate updates (FIXME)
|
|
|
|
|
rm tests/post.rs
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
@ -180,10 +175,7 @@ rm tests/post.rs
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
# * skip a test that hangs indefinitely: upload_lots
|
|
|
|
|
# * skip two tests that require internet connectivity: src/easy/handle{,r}.rs
|
|
|
|
|
# * skip a test that fails with curl 8.7+ for unknown reasons: abort_read
|
|
|
|
|
%cargo_test -- -- --skip abort_read --skip upload_lots --skip 'src/easy/handle.rs' --skip 'src/easy/handler.rs'
|
|
|
|
|
%cargo_test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|