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-ring/rust-ring.spec

149 lines
4.0 KiB

# Generated by rust2rpm 25
# * test fixtures are not included in published crates
%bcond_with check
5 years ago
%global debug_package %{nil}
%global crate ring
Name: rust-ring
Version: 0.17.7
Release: %autorelease
5 years ago
Summary: Safe, fast, small crypto using Rust
License: ISC AND MIT AND OpenSSL
5 years ago
URL: https://crates.io/crates/ring
Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: ring-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes
# * set package.license in metadata to match package license
# * drop unstable / WASM-only features
Patch: ring-fix-metadata.diff
5 years ago
BuildRequires: cargo-rpm-macros >= 24
5 years ago
%global _description %{expand:
Safe, fast, small crypto using Rust.}
%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.
5 years ago
%files devel
%license %{crate_instdir}/LICENSE
%license %{crate_instdir}/third_party/fiat/LICENSE
%doc %{crate_instdir}/README.md
%{crate_instdir}/
5 years ago
%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.
5 years ago
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%package -n %{name}+alloc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+alloc-devel %{_description}
This package contains library source intended for building other packages which
use the "alloc" feature of the "%{crate}" crate.
5 years ago
%files -n %{name}+alloc-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%package -n %{name}+dev_urandom_fallback-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dev_urandom_fallback-devel %{_description}
This package contains library source intended for building other packages which
use the "dev_urandom_fallback" feature of the "%{crate}" crate.
5 years ago
%files -n %{name}+dev_urandom_fallback-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%package -n %{name}+less-safe-getrandom-custom-or-rdrand-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+less-safe-getrandom-custom-or-rdrand-devel %{_description}
This package contains library source intended for building other packages which
use the "less-safe-getrandom-custom-or-rdrand" feature of the "%{crate}" crate.
%files -n %{name}+less-safe-getrandom-custom-or-rdrand-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%package -n %{name}+slow_tests-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+slow_tests-devel %{_description}
This package contains library source intended for building other packages which
use the "slow_tests" feature of the "%{crate}" crate.
5 years ago
%files -n %{name}+slow_tests-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%package -n %{name}+std-devel
Summary: %{summary}
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.
5 years ago
%files -n %{name}+std-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%package -n %{name}+test_logging-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+test_logging-devel %{_description}
This package contains library source intended for building other packages which
use the "test_logging" feature of the "%{crate}" crate.
5 years ago
%files -n %{name}+test_logging-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%prep
%autosetup -n %{crate}-%{version} -p1
5 years ago
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
5 years ago
%changelog
%autochangelog