# Generated by rust2rpm 13
%bcond_without check
%global debug_package %{nil}
%global crate letter-avatar
Name: rust-%{crate}
Version: 1.2.0
Release: 3%{?dist}
Summary: Generates user avatars using username initials
# Upstream license specification: GPL-3.0+
License: GPLv3+
URL: https://crates.io/crates/letter-avatar
Source: %{crates_source}
# Initial patched metadata
# * https://gitlab.gnome.org/World/Rust/letter-avatar/merge_requests/4
# - Bump pango to 0.8.0
# - Bump pangocairo to 0.9.0
# - Bump cairo-rs to 0.8.0
Patch0: letter-avatar-fix-metadata.diff
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Generates user avatars using username initials.}
%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
%{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
* Sat Feb 01 01:11:37 EET 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.2.0-3
- Bump pango to 0.8.0
- Bump pangocairo to 0.9.0
- Bump cairo-rs to 0.8.0
- Rebuild for F32 Mass Rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Tue Dec 10 2019 Josh Stone <jistone@redhat.com> - 1.2.0-1
- Update to 1.2.0
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Jun 03 2019 Josh Stone <jistone@redhat.com> - 1.1.0-1
- Update to 1.1.0
* Mon Apr 29 12:53:58 EEST 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 1.0.2-1
- Initial package