You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-webpki-roots/rust-webpki-roots.spec

79 lines
1.7 KiB

# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate webpki-roots
# compile and run tests only on supported architectures
%global supported_arches x86_64 %{ix86} aarch64 %{arm}
Name: rust-webpki-roots
Version: 0.23.1
Release: %autorelease
Summary: Mozilla's CA root certificates for use with webpki
License: MPL-2.0
URL: https://crates.io/crates/webpki-roots
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * prevent development-only executable from being built
Patch: webpki-roots-fix-metadata.diff
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Mozilla's CA root certificates for use with webpki.}
%description %{_description}
%package devel
Summary: %{summary}
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
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%ifarch %{supported_arches}
%cargo_build
%endif
%install
%cargo_install
%if %{with check}
%ifarch %{supported_arches}
%check
%cargo_test
%endif
%endif
%changelog
%autochangelog