File rust-rustls-pemfile.spec of Package rust-rustls-pemfile
#
# spec file for package rust-rustls-pemfile
#
# 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 rustls-pemfile
Name: rust-rustls-pemfile
Version: 2.1.2
Release: 0
Summary: Basic .pem file parser for keys and certificates
Group: Development/Libraries/Rust
License: Apache-2.0 OR ISC OR MIT
URL: https://crates.io/crates/rustls-pemfile
Source: https://crates.io/api/v1/crates/%crate/%version/download#/%crate-%version.crate
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21
BuildRequires: (crate(base64) >= 0.22.0 with crate(base64) < 0.23.0~)
BuildRequires: (crate(base64/alloc) >= 0.22.0 with crate(base64/alloc) < 0.23.0~)
BuildRequires: (crate(base64/std) >= 0.22.0 with crate(base64/std) < 0.23.0~)
BuildRequires: (crate(rustls-pki-types/default) >= 1.3.0 with crate(rustls-pki-types/default) < 2.0.0~)
%if %{with check}
BuildRequires: (crate(bencher/default) >= 0.1.5 with crate(bencher/default) < 0.2.0~)
%endif
%global _description %{expand:
Basic .pem file parser for keys and certificates.}
%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
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-ISC
%license %{crate_instdir}/LICENSE-MIT
%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
%package -n %{name}+std-devel
Summary: %{summary}
Group: Development/Libraries/Rust
BuildArch: noarch
%description -n %{name}+std-devel %{_description}
This package contains library source intended for building other packages which
use the "std" feature of the "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%endif
%changelog
* Thu Apr 11 14:24:55 +03 2024 u <u>
- Version 2.1.2
- Initial package