File rust-webpki-roots.spec of Package rust-webpki-roots

#
# spec file for package rust-webpki-roots
#
# 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 webpki-roots

Name:           rust-webpki-roots
Version:        0.26.1
Release:        0
Summary:        Mozilla's CA root certificates for use with webpki
Group:          Development/Libraries/Rust

License:        MPL-2.0
URL:            https://crates.io/crates/webpki-roots
Source:         https://crates.io/api/v1/crates/%crate/%version/download#/%crate-%version.crate

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging >= 21
BuildRequires:  (crate(rustls-pki-types) >= 1.0.0 with crate(rustls-pki-types) < 2.0.0~)
%if 0
#{with check}
BuildRequires:  (crate(hex/default) >= 0.4.3 with crate(hex/default) < 0.5.0~)
BuildRequires:  (crate(percent-encoding/default) >= 2.3.0 with crate(percent-encoding/default) < 3.0.0~)
BuildRequires:  (crate(rcgen/default) >= 0.12.0 with crate(rcgen/default) < 0.13.0~)
BuildRequires:  (crate(ring/default) >= 0.17.0 with crate(ring/default) < 0.18.0~)
BuildRequires:  (crate(rustls-webpki/alloc) >= 0.102.0 with crate(rustls-webpki/alloc) < 0.103.0~)
BuildRequires:  (crate(rustls-webpki/default) >= 0.102.0 with crate(rustls-webpki/default) < 0.103.0~)
BuildRequires:  (crate(rustls/default) >= 0.22.0 with crate(rustls/default) < 0.23.0~)
BuildRequires:  (crate(tokio/default) >= 1.0.0 with crate(tokio/default) < 2.0.0~)
BuildRequires:  (crate(tokio/macros) >= 1.0.0 with crate(tokio/macros) < 2.0.0~)
BuildRequires:  (crate(tokio/rt-multi-thread) >= 1.0.0 with crate(tokio/rt-multi-thread) < 2.0.0~)
BuildRequires:  (crate(x509-parser/default) >= 0.15.1 with crate(x509-parser/default) < 0.16.0~)
BuildRequires:  (crate(yasna/default) >= 0.5.2 with crate(yasna/default) < 0.6.0~)
%endif

%global _description %{expand:
Mozilla's CA root certificates for use with webpki.}

%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
%doc %{crate_instdir}/README.md
%{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

%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep

%build
%cargo_build

%install
%cargo_install

%if 0
#{with check}
%check
%endif

%changelog
* Thu Apr 11 14:25:37 +03 2024 u <u>
- Version 0.26.1
- Initial package
openSUSE Build Service is sponsored by