|
|
|
@ -1,12 +1,11 @@
|
|
|
|
|
# Generated by rust2rpm 16
|
|
|
|
|
# * Tests are too environment dependent
|
|
|
|
|
%bcond_with check
|
|
|
|
|
# Generated by rust2rpm 18
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate curl
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.4.33
|
|
|
|
|
Version: 0.4.40
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Rust bindings to libcurl for making HTTP requests
|
|
|
|
|
|
|
|
|
@ -15,7 +14,8 @@ License: MIT
|
|
|
|
|
URL: https://crates.io/crates/curl
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * No windows/osx
|
|
|
|
|
# * drop windows- and mac OS-specific dependencies
|
|
|
|
|
# * drop test binary that requires internet connectivity
|
|
|
|
|
Patch0: curl-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
@ -43,7 +43,7 @@ which use "%{crate}" crate.
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/{ci/,.github/}
|
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/ci/
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -93,6 +93,18 @@ which use "openssl-sys" feature of "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+openssl-sys-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+poll_7_68_0-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+poll_7_68_0-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "poll_7_68_0" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+poll_7_68_0-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+protocol-ftp-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -153,8 +165,22 @@ which use "static-ssl" feature of "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+static-ssl-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+upkeep_7_62_0-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+upkeep_7_62_0-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "upkeep_7_62_0" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+upkeep_7_62_0-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
# drop test binary that requires internet connectivity
|
|
|
|
|
rm tests/atexit.rs
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
@ -168,7 +194,8 @@ which use "static-ssl" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
%cargo_test
|
|
|
|
|
# skip tests that require internet connectivity
|
|
|
|
|
%cargo_test -- -- --skip src/easy/handle.rs --skip src/easy/handler.rs
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|