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

147 lines
4.0 KiB

# Generated by rust2rpm 18
%bcond_without check
%global debug_package %{nil}
%global crate bugreport
Name: rust-%{crate}
Version: 0.4.0
Release: %autorelease
Summary: Collect system and environment information for bug reports
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/bugreport
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Collect system and environment information for bug reports.}
%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-MIT LICENSE-APACHE
%doc examples example-report.md README.md examples/readme.rs
%{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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+collector_operating_system-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+collector_operating_system-devel %{_description}
This package contains library source intended for building other packages
which use "collector_operating_system" feature of "%{crate}" crate.
%files -n %{name}+collector_operating_system-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+format_markdown-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+format_markdown-devel %{_description}
This package contains library source intended for building other packages
which use "format_markdown" feature of "%{crate}" crate.
%files -n %{name}+format_markdown-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+format_plaintext-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+format_plaintext-devel %{_description}
This package contains library source intended for building other packages
which use "format_plaintext" feature of "%{crate}" crate.
%files -n %{name}+format_plaintext-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+git-version-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+git-version-devel %{_description}
This package contains library source intended for building other packages
which use "git-version" feature of "%{crate}" crate.
%files -n %{name}+git-version-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+git_hash-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+git_hash-devel %{_description}
This package contains library source intended for building other packages
which use "git_hash" feature of "%{crate}" crate.
%files -n %{name}+git_hash-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+sys-info-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+sys-info-devel %{_description}
This package contains library source intended for building other packages
which use "sys-info" feature of "%{crate}" crate.
%files -n %{name}+sys-info-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog