File rust-ureq.spec of Package rust-ureq
Patch1: fix_2024103060104389.diff
Patch0: fix_2024102216605326.diff
#
# spec file for package rust-ureq
#
# Copyright (c) 2024 u <u>.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate ureq
Name: rust-ureq
Version: 2.9.6
Release: 0
Summary: Simple, safe HTTP client
Group: Development/Libraries/Rust
License: MIT OR Apache-2.0
URL: https://crates.io/crates/ureq
Source0: https://crates.io/api/v1/crates/%crate/%version/download#/%crate-%version.crate
ExclusiveArch: %{rust_arches}
BuildRequires: cargo-rpm-macros >= 24
BuildRequires: (crate(base64/default) >= 0.21.0 with crate(base64/default) < 1.22.0~)
BuildRequires: (crate(flate2/default) >= 1.0.22 with crate(flate2/default) < 3.0.0~)
BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 1.5.0~)
BuildRequires: (crate(once_cell/default) >= 1.0.0 with crate(once_cell/default) < 3.0.0~)
BuildRequires: (crate(rustls-pki-types/default) >= 1.0.0 with crate(rustls-pki-types/default) < 3.0.0~)
BuildRequires: (crate(rustls-webpki/default) >= 0.102.0 with crate(rustls-webpki/default) < 1.103.0~)
BuildRequires: (crate(rustls/default) >= 0.22.0 with crate(rustls/default) < 1.23.0~)
BuildRequires: (crate(url/default) >= 2.0.0 with crate(url/default) < 4.0.0~)
BuildRequires: (crate(webpki-roots/default) >= 0.26.0 with crate(webpki-roots/default) < 1.27.0~)
BuildRequires: rust >= 1.61
BuildRequires: cmake
#if %{with check}
#BuildRequires: (crate(rustls-pemfile/default) >= 2.0.0 with crate(rustls-pemfile/default) < 3.0.0~)
#BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0~)
#BuildRequires: (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0~)
#BuildRequires: crate(env_logger/default) < 0.10.0~
#endif
%global _description %{expand:
Simple, safe HTTP client.}
%description %{_description}
%package devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%license %{crate_instdir}/src/chunked/LICENSE
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/CONTRIBUTING.md
%doc %{crate_instdir}/FUTURE.md
%doc %{crate_instdir}/README.md
%doc %{crate_instdir}/RELEASE.txt
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+brotli-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+brotli-devel %{_description}
This package contains library source intended for building other packages which
use the "brotli" feature of the "%{crate}" crate.
%files -n %{name}+brotli-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+charset-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+charset-devel %{_description}
This package contains library source intended for building other packages which
use the "charset" feature of the "%{crate}" crate.
%files -n %{name}+charset-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cookies-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+cookies-devel %{_description}
This package contains library source intended for building other packages which
use the "cookies" feature of the "%{crate}" crate.
%files -n %{name}+cookies-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+gzip-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+gzip-devel %{_description}
This package contains library source intended for building other packages which
use the "gzip" feature of the "%{crate}" crate.
%files -n %{name}+gzip-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+http-crate-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+http-crate-devel %{_description}
This package contains library source intended for building other packages which
use the "http-crate" feature of the "%{crate}" crate.
%files -n %{name}+http-crate-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+http-interop-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+http-interop-devel %{_description}
This package contains library source intended for building other packages which
use the "http-interop" feature of the "%{crate}" crate.
%files -n %{name}+http-interop-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+json-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+json-devel %{_description}
This package contains library source intended for building other packages which
use the "json" feature of the "%{crate}" crate.
%files -n %{name}+json-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+native-certs-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+native-certs-devel %{_description}
This package contains library source intended for building other packages which
use the "native-certs" feature of the "%{crate}" crate.
%files -n %{name}+native-certs-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+native-tls-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+native-tls-devel %{_description}
This package contains library source intended for building other packages which
use the "native-tls" feature of the "%{crate}" crate.
%files -n %{name}+native-tls-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+proxy-from-env-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+proxy-from-env-devel %{_description}
This package contains library source intended for building other packages which
use the "proxy-from-env" feature of the "%{crate}" crate.
%files -n %{name}+proxy-from-env-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+socks-proxy-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+socks-proxy-devel %{_description}
This package contains library source intended for building other packages which
use the "socks-proxy" feature of the "%{crate}" crate.
%files -n %{name}+socks-proxy-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+testdeps-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+testdeps-devel %{_description}
This package contains library source intended for building other packages which
use the "testdeps" feature of the "%{crate}" crate.
%files -n %{name}+testdeps-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+tls-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+tls-devel %{_description}
This package contains library source intended for building other packages which
use the "tls" feature of the "%{crate}" crate.
%files -n %{name}+tls-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%changelog
* Thu Apr 11 15:00:57 +03 2024 u <u>
- Version 2.9.6
- Initial package