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

106 lines
2.7 KiB

# Generated by rust2rpm 18
%bcond_without check
%global debug_package %{nil}
%global crate tracing-core
Name: rust-%{crate}
Version: 0.1.20
Release: %autorelease
Summary: Core primitives for application-level tracing
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/tracing-core
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Core primitives for application-level tracing.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE LICENSE-lazy_static LICENSE-spin
%doc README.md CHANGELOG.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
# exclude LICENSE file copies from -devel package
%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/LICENSE-*
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+lazy_static-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+lazy_static-devel %{_description}
This package contains library source intended for building other packages
which use "lazy_static" feature of "%{crate}" crate.
%files -n %{name}+lazy_static-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%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 "std" feature of "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
# copy LICENSE files for bundled sources:
# they are also MIT, but with different copyright statements
cp -p src/lazy_static/LICENSE LICENSE-lazy_static
cp -p src/spin/LICENSE LICENSE-spin
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
# skip test that fails since Rust 1.52.1 but is not reproducible upstream
%cargo_test -- -- --skip field::test::value_sets_with_fields_from_other_callsites_are_empty
%endif
%changelog
%autochangelog