|
|
@ -1,33 +1,30 @@
|
|
|
|
# Generated by rust2rpm 17
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
%bcond_without check
|
|
|
|
# * missing dev-dependency: x509-parser
|
|
|
|
|
|
|
|
%bcond_with check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate rustls-native-certs
|
|
|
|
%global crate rustls-native-certs
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-rustls-native-certs
|
|
|
|
Version: 0.5.0
|
|
|
|
Version: 0.6.2
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Allow rustls to use the platform native certificate store
|
|
|
|
Summary: Allow rustls to use the platform native certificate store
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: Apache-2.0/ISC/MIT
|
|
|
|
# Upstream license specification: Apache-2.0/ISC/MIT
|
|
|
|
License: ASL 2.0 or ISC or MIT
|
|
|
|
License: Apache-2.0 OR ISC OR MIT
|
|
|
|
URL: https://crates.io/crates/rustls-native-certs
|
|
|
|
URL: https://crates.io/crates/rustls-native-certs
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Initial patched metadata
|
|
|
|
# Automatically generated patch to strip foreign dependencies
|
|
|
|
# * drop windows- and mac OS-specific dependencies
|
|
|
|
Patch: rustls-native-certs-fix-metadata-auto.diff
|
|
|
|
Patch0: rustls-native-certs-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
# ring is not available on ppc64le and s390x
|
|
|
|
# ring is not available on ppc64le and s390x
|
|
|
|
ExcludeArch: ppc64le s390x
|
|
|
|
ExcludeArch: ppc64le s390x
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Rustls-native-certs allows rustls to use the platform native certificate store.}
|
|
|
|
Rustls-native-certs allows rustls to use the platform native certificate
|
|
|
|
|
|
|
|
store.}
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
@ -37,14 +34,18 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description devel %{_description}
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
use the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%license LICENSE LICENSE-APACHE LICENSE-ISC LICENSE-MIT
|
|
|
|
%license %{crate_instdir}/LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%license %{crate_instdir}/LICENSE-APACHE
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
%license %{crate_instdir}/LICENSE-ISC
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/{admin/,integration-tests/}
|
|
|
|
%license %{crate_instdir}/LICENSE-MIT
|
|
|
|
|
|
|
|
%doc %{crate_instdir}/CONTRIBUTING.md
|
|
|
|
|
|
|
|
%doc %{crate_instdir}/README.md
|
|
|
|
|
|
|
|
%doc %{crate_instdir}/RELEASING.md
|
|
|
|
|
|
|
|
%{crate_instdir}/
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -52,23 +53,11 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
use the "default" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+rustls-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+rustls-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
|
|
|
which use "rustls" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+rustls-devel
|
|
|
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
@ -85,14 +74,7 @@ which use "rustls" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# skip tests that require internet connectivity
|
|
|
|
%cargo_test
|
|
|
|
%cargo_test -- -- \
|
|
|
|
|
|
|
|
--skip amazon \
|
|
|
|
|
|
|
|
--skip apple \
|
|
|
|
|
|
|
|
--skip ebay \
|
|
|
|
|
|
|
|
--skip facebook \
|
|
|
|
|
|
|
|
--skip google \
|
|
|
|
|
|
|
|
--skip netflix
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|