Blame rust-file-per-thread-logger.spec

499394a
# Generated by rust2rpm 17
499394a
%bcond_without check
499394a
%global debug_package %{nil}
499394a
499394a
%global crate file-per-thread-logger
499394a
499394a
Name:           rust-%{crate}
499394a
Version:        0.1.4
3f66631
Release:        2%{?dist}
499394a
Summary:        Logging implementation that writes logs in one file per thread
499394a
499394a
# Upstream license specification: Apache-2.0 WITH LLVM-exception
499394a
License:        ASL 2.0 with exceptions
499394a
URL:            https://crates.io/crates/file-per-thread-logger
499394a
Source:         %{crates_source}
499394a
499394a
ExclusiveArch:  %{rust_arches}
499394a
%if %{__cargo_skip_build}
499394a
BuildArch:      noarch
499394a
%endif
499394a
499394a
BuildRequires:  rust-packaging
499394a
499394a
%global _description %{expand:
499394a
Logging implementation that writes logs in one file per thread.}
499394a
499394a
%description %{_description}
499394a
499394a
%package        devel
499394a
Summary:        %{summary}
499394a
BuildArch:      noarch
499394a
499394a
%description    devel %{_description}
499394a
499394a
This package contains library source intended for building other packages
499394a
which use "%{crate}" crate.
499394a
499394a
%files          devel
499394a
%doc README.md
499394a
%license LICENSE
499394a
%{cargo_registry}/%{crate}-%{version_no_tilde}/
499394a
499394a
%package     -n %{name}+default-devel
499394a
Summary:        %{summary}
499394a
BuildArch:      noarch
499394a
499394a
%description -n %{name}+default-devel %{_description}
499394a
499394a
This package contains library source intended for building other packages
499394a
which use "default" feature of "%{crate}" crate.
499394a
499394a
%files       -n %{name}+default-devel
499394a
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
499394a
499394a
%prep
499394a
%autosetup -n %{crate}-%{version_no_tilde} -p1
499394a
%cargo_prep
499394a
499394a
%generate_buildrequires
499394a
%cargo_generate_buildrequires
499394a
499394a
%build
499394a
%cargo_build
499394a
499394a
%install
499394a
%cargo_install
499394a
499394a
%if %{with check}
499394a
%check
499394a
# Tests have to run one after the other because cargo test uses multiple threads
499394a
# Cf. https://github.com/bnjbvr/file-per-thread-logger/blob/1fb9c9e14/.github/workflows/rust.yml#L25
499394a
%cargo_test tests
499394a
%cargo_test formatted_logs
499394a
%cargo_test uninitialized_threads_should_panic
499394a
%cargo_test logging_from_uninitialized_threads_allowed
499394a
%endif
499394a
499394a
%changelog
3f66631
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-2
3f66631
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
3f66631
499394a
* Sun May 23 16:29:33 CEST 2021 Olivier Lemasle <o.lemasle@gmail.com> - 0.1.4-1
499394a
- Initial package