|
|
005764d |
# Generated by rust2rpm 26
|
|
|
6f11e75 |
%bcond_without check
|
|
|
6f11e75 |
|
|
|
c255cf0 |
%global crate fedora-update-feedback
|
|
|
c255cf0 |
|
|
|
b868799 |
# reduce debuginfo verbosity to work around rustc OOM problems on 32-bit arches
|
|
|
aae9782 |
%global rustflags_debuginfo 1
|
|
|
aae9782 |
|
|
|
c255cf0 |
Name: rust-fedora-update-feedback
|
|
|
005764d |
Version: 2.1.4
|
|
|
6aa5ade |
Release: %autorelease
|
|
|
aae9782 |
Summary: Provide feedback for Fedora updates (inspired by fedora-easy-karma)
|
|
|
6f11e75 |
|
|
|
c255cf0 |
License: MIT OR Apache-2.0
|
|
|
6f11e75 |
URL: https://crates.io/crates/fedora-update-feedback
|
|
|
c255cf0 |
Source: %{crates_source}
|
|
|
6f11e75 |
|
|
|
005764d |
# include patch that prints an explaination of why this program no longer works
|
|
|
005764d |
Patch: error-early.patch
|
|
|
005764d |
|
|
|
5079352 |
BuildRequires: cargo-rpm-macros >= 24
|
|
|
6f11e75 |
|
|
|
6f11e75 |
%global _description %{expand:
|
|
|
aae9782 |
Provide feedback for Fedora updates (inspired by fedora-easy-karma).}
|
|
|
6f11e75 |
|
|
|
6f11e75 |
%description %{_description}
|
|
|
6f11e75 |
|
|
|
6f11e75 |
%package -n %{crate}
|
|
|
6f11e75 |
Summary: %{summary}
|
|
|
c255cf0 |
# (Apache-2.0 OR MIT) AND BSD-3-Clause
|
|
|
c255cf0 |
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
|
|
|
c255cf0 |
# Apache-2.0
|
|
|
5079352 |
# Apache-2.0 AND MIT
|
|
|
c255cf0 |
# Apache-2.0 OR BSL-1.0
|
|
|
005764d |
# Apache-2.0 OR ISC OR MIT
|
|
|
c255cf0 |
# Apache-2.0 OR MIT
|
|
|
c255cf0 |
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
|
|
|
c255cf0 |
# BSD-3-Clause
|
|
|
aae9782 |
# MIT
|
|
|
c255cf0 |
# MIT OR Apache-2.0
|
|
|
c255cf0 |
# MIT OR Apache-2.0 OR Zlib
|
|
|
5079352 |
# MPL-2.0
|
|
|
c255cf0 |
# Unlicense OR MIT
|
|
|
c255cf0 |
# Zlib OR Apache-2.0 OR MIT
|
|
|
005764d |
License: Apache-2.0 AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT)
|
|
|
aae9782 |
# LICENSE.dependencies contains a full license breakdown
|
|
|
6f11e75 |
|
|
|
5079352 |
# nano is the fallback in case no editor is configured
|
|
|
5079352 |
Recommends: nano
|
|
|
5079352 |
|
|
|
6f11e75 |
%description -n %{crate} %{_description}
|
|
|
6f11e75 |
|
|
|
6f11e75 |
%files -n %{crate}
|
|
|
aae9782 |
%license LICENSE-APACHE
|
|
|
aae9782 |
%license LICENSE-MIT
|
|
|
aae9782 |
%license LICENSE.dependencies
|
|
|
5079352 |
%doc CHANGELOG.md
|
|
|
aae9782 |
%doc README.md
|
|
|
6f11e75 |
%{_bindir}/fedora-update-feedback
|
|
|
c255cf0 |
%{bash_completions_dir}/fedora-update-feedback.bash
|
|
|
c255cf0 |
%{fish_completions_dir}/fedora-update-feedback.fish
|
|
|
c255cf0 |
%{zsh_completions_dir}/_fedora-update-feedback
|
|
|
6f11e75 |
|
|
|
6f11e75 |
%prep
|
|
|
5079352 |
%autosetup -n %{crate}-%{version} -p1
|
|
|
6f11e75 |
%cargo_prep
|
|
|
6f11e75 |
|
|
|
6f11e75 |
%generate_buildrequires
|
|
|
6f11e75 |
%cargo_generate_buildrequires
|
|
|
6f11e75 |
|
|
|
6f11e75 |
%build
|
|
|
6f11e75 |
%cargo_build
|
|
|
5079352 |
%{cargo_license_summary}
|
|
|
c255cf0 |
%{cargo_license} > LICENSE.dependencies
|
|
|
6f11e75 |
|
|
|
6f11e75 |
%install
|
|
|
6f11e75 |
%cargo_install
|
|
|
c255cf0 |
# install shell completions
|
|
|
c255cf0 |
install -Dpm 0644 target/release/build/%{crate}-*/out/fedora-update-feedback.bash \
|
|
|
c255cf0 |
%{buildroot}/%{bash_completions_dir}/fedora-update-feedback.bash
|
|
|
c255cf0 |
install -Dpm 0644 target/release/build/%{crate}-*/out/fedora-update-feedback.fish \
|
|
|
c255cf0 |
%{buildroot}/%{fish_completions_dir}/fedora-update-feedback.fish
|
|
|
c255cf0 |
install -Dpm 0644 target/release/build/%{crate}-*/out/_fedora-update-feedback \
|
|
|
c255cf0 |
%{buildroot}/%{zsh_completions_dir}/_fedora-update-feedback
|
|
|
6f11e75 |
|
|
|
6f11e75 |
%if %{with check}
|
|
|
6f11e75 |
%check
|
|
|
6f11e75 |
%cargo_test
|
|
|
6f11e75 |
%endif
|
|
|
6f11e75 |
|
|
|
6f11e75 |
%changelog
|
|
|
6aa5ade |
%autochangelog
|