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

155 lines
3.9 KiB

# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate simple_logger
Name: rust-simple_logger
Version: 1.16.0
Release: %autorelease
Summary: Logger that prints all messages with a readable output format
License: MIT
URL: https://crates.io/crates/simple_logger
Source: %{crates_source}
# Automatically generated patch to strip foreign dependencies
Patch: simple_logger-fix-metadata-auto.diff
BuildRequires: rust-packaging >= 21
%global _description %{expand:
A logger that prints all messages with a readable output format.}
%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.
%files devel
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%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.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+colored-devel
5 years ago
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+colored-devel %{_description}
5 years ago
This package contains library source intended for building other packages which
use the "colored" feature of the "%{crate}" crate.
5 years ago
%files -n %{name}+colored-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%package -n %{name}+colors-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+colors-devel %{_description}
This package contains library source intended for building other packages which
use the "colors" feature of the "%{crate}" crate.
%files -n %{name}+colors-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+nightly-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+nightly-devel %{_description}
This package contains library source intended for building other packages which
use the "nightly" feature of the "%{crate}" crate.
%files -n %{name}+nightly-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+stderr-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+stderr-devel %{_description}
This package contains library source intended for building other packages which
use the "stderr" feature of the "%{crate}" crate.
%files -n %{name}+stderr-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+threads-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+threads-devel %{_description}
This package contains library source intended for building other packages which
use the "threads" feature of the "%{crate}" crate.
%files -n %{name}+threads-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+time-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+time-devel %{_description}
This package contains library source intended for building other packages which
use the "time" feature of the "%{crate}" crate.
%files -n %{name}+time-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+timestamps-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+timestamps-devel %{_description}
This package contains library source intended for building other packages which
use the "timestamps" feature of the "%{crate}" crate.
%files -n %{name}+timestamps-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
5 years ago
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog