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

159 lines
4.2 KiB

# Generated by rust2rpm 20
%bcond_without check
%global debug_package %{nil}
%global crate simple_logger
Name: rust-%{crate}
Version: 1.16.0
Release: %autorelease
Summary: Logger that prints all messages with a readable output format
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/simple_logger
Source: %{crates_source}
5 years ago
# Initial patched metadata
# * drop windows-specific dependencies
5 years ago
Patch0: simple_logger-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%global _description %{expand:
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 LICENSE
%doc README.md
5 years ago
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%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
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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