|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
%global crate curl
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.4.18
|
|
|
|
|
Version: 0.4.19
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Rust bindings to libcurl for making HTTP requests
|
|
|
|
|
|
|
|
|
@ -15,35 +15,103 @@ 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
|
|
|
|
|
# * No static features
|
|
|
|
|
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)
|
|
|
|
|
BuildRequires: (crate(curl-sys) >= 0.4.15 with crate(curl-sys) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(curl-sys/http2) >= 0.4.15 with crate(curl-sys/http2) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(curl-sys/ssl) >= 0.4.15 with crate(curl-sys/ssl) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(openssl-probe/default) >= 0.1.2 with crate(openssl-probe/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(openssl-sys/default) >= 0.9.33 with crate(openssl-sys/default) < 0.10.0)
|
|
|
|
|
BuildRequires: (crate(socket2/default) >= 0.3.7 with crate(socket2/default) < 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)
|
|
|
|
|
BuildRequires: (crate(mio-extras/default) >= 2.0.3 with crate(mio-extras/default) < 3.0.0)
|
|
|
|
|
BuildRequires: (crate(mio/default) >= 0.6.0 with crate(mio/default) < 0.7.0)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
%global _description \
|
|
|
|
|
Rust bindings to libcurl for making HTTP requests.
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Rust bindings to libcurl for making HTTP requests.
|
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,ci}
|
|
|
|
|
|
|
|
|
|
%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 %{crate} from crates.io.
|
|
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+http2-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+http2-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "http2" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+http2-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+openssl-probe-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+openssl-probe-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "openssl-probe" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+openssl-probe-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+openssl-sys-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+openssl-sys-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "openssl-sys" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+openssl-sys-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+ssl-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+ssl-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "ssl" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+ssl-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
@ -60,13 +128,11 @@ which use %{crate} from crates.io.
|
|
|
|
|
%cargo_test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,ci}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Nov 10 2018 Josh Stone <jistone@redhat.com> - 0.4.19-1
|
|
|
|
|
- Update to 0.4.19
|
|
|
|
|
- Adapt to new packaging
|
|
|
|
|
|
|
|
|
|
* Mon Oct 01 2018 Josh Stone <jistone@redhat.com> - 0.4.18-1
|
|
|
|
|
- Update to 0.4.18
|
|
|
|
|
|
|
|
|
|