Blob Blame History Raw
# Generated by rust2rpm 13
%bcond_without check

%global crate fedora-update-feedback

Name:           rust-%{crate}
Version:        0.5.2
Release:        1%{?dist}
Summary:        Provide feedback for fedora updates (inspired by fedora-easy-karma)

# Upstream license specification: MIT OR Apache-2.0
License:        MIT or ASL 2.0
URL:            https://crates.io/crates/fedora-update-feedback
Source:         %{crates_source}

ExclusiveArch:  %{rust_arches}
%if %{__cargo_skip_build}
BuildArch:      noarch
%endif

BuildRequires:  rust-packaging

%global _description %{expand:
Provide feedback for fedora updates (inspired by fedora-easy-karma).}

%description %{_description}

%if ! %{__cargo_skip_build}
%package     -n %{crate}
Summary:        %{summary}
# Licenses of dependencies:
# $ rpm -qa --qf '%%{LICENSE}\n' 'rust-*-devel' | sort -u
# - (MIT or ASL 2.0) and BSD
# - ASL 2.0
# - ASL 2.0 or Boost
# - ASL 2.0 or MIT
# - BSD
# - MIT
# - MIT or ASL 2.0
# - Unlicense or MIT
License:        ASL 2.0 and BSD and MIT

%description -n %{crate} %{_description}

%files       -n %{crate}
%license LICENSE-APACHE LICENSE-MIT
%doc README.md
%{_bindir}/fedora-update-feedback
%endif

%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-APACHE LICENSE-MIT
%doc README.md
%{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

%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
* Tue Apr 07 2020 Fabio Valentini <decathorpe@gmail.com> - 0.5.2-1
- Update to version 0.5.2.

* Sun Mar 29 09:52:27 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.5.1-1
- Update to 0.5.1

* Fri Mar 20 2020 Fabio Valentini <decathorpe@gmail.com> - 0.5.0-2
- Rebuild for bodhi-rs 0.5.8.

* Sun Mar 08 2020 Fabio Valentini <decathorpe@gmail.com> - 0.5.0-1
- Update to version 0.5.0.

* Thu Mar 05 2020 Fabio Valentini <decathorpe@gmail.com> - 0.4.2-3
- Rebuild for bodhi-rs 0.5.7.

* Sat Feb 29 2020 Fabio Valentini <decathorpe@gmail.com> - 0.4.2-2
- Rebuild for bodhi-rs 0.5.6.

* Fri Feb 28 2020 Fabio Valentini <decathorpe@gmail.com> - 0.4.2-1
- Update to version 0.4.2.

* Fri Feb 28 2020 Fabio Valentini <decathorpe@gmail.com> - 0.4.1-1
- Update to version 0.4.1.

* Mon Feb 24 2020 Fabio Valentini <decathorpe@gmail.com> - 0.4.0-1
- Update to version 0.4.0.

* Wed Feb 19 2020 Fabio Valentini <decathorpe@gmail.com> - 0.3.2-1
- Update to version 0.3.2.

* Mon Feb 10 2020 Fabio Valentini <decathorpe@gmail.com> - 0.3.1-1
- Initial package