Blame rust-rustio.spec

fc9cbec
# Generated by rust2rpm 13
895c674
%bcond_with check
895c674
%global debug_package %{nil}
895c674
895c674
%global crate rustio
895c674
895c674
Name:           rust-%{crate}
895c674
Version:        0.0.2
5500fb1
Release:        5%{?dist}
895c674
Summary:        Rust API wrapper for radio-browser.info
895c674
895c674
# Upstream license specification: GPL-3.0
895c674
License:        GPLv3
895c674
URL:            https://crates.io/crates/rustio
895c674
Source:         %{crates_source}
895c674
# Initial patched metadata
fc9cbec
# * Update restson to 0.6, https://gitlab.gnome.org/haecker-felix/Rustio/merge_requests/2
895c674
Patch0:         rustio-fix-metadata.diff
895c674
895c674
ExclusiveArch:  %{rust_arches}
fc9cbec
%if %{__cargo_skip_build}
fc9cbec
BuildArch:      noarch
fc9cbec
%endif
895c674
895c674
BuildRequires:  rust-packaging
895c674
fc9cbec
%global _description %{expand:
fc9cbec
Rust API wrapper for radio-browser.info.}
895c674
895c674
%description %{_description}
895c674
895c674
%package        devel
895c674
Summary:        %{summary}
895c674
BuildArch:      noarch
895c674
895c674
%description    devel %{_description}
895c674
895c674
This package contains library source intended for building other packages
895c674
which use "%{crate}" crate.
895c674
895c674
%files          devel
895c674
%license LICENSE
895c674
%doc README.md
fc9cbec
%{cargo_registry}/%{crate}-%{version_no_tilde}/
895c674
895c674
%package     -n %{name}+default-devel
895c674
Summary:        %{summary}
895c674
BuildArch:      noarch
895c674
895c674
%description -n %{name}+default-devel %{_description}
895c674
895c674
This package contains library source intended for building other packages
895c674
which use "default" feature of "%{crate}" crate.
895c674
895c674
%files       -n %{name}+default-devel
fc9cbec
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
895c674
895c674
%prep
895c674
%autosetup -n %{crate}-%{version_no_tilde} -p1
895c674
%cargo_prep
895c674
fc9cbec
%generate_buildrequires
fc9cbec
%cargo_generate_buildrequires
fc9cbec
895c674
%build
895c674
%cargo_build
895c674
895c674
%install
895c674
%cargo_install
895c674
895c674
%if %{with check}
895c674
%check
895c674
%cargo_test
895c674
%endif
895c674
895c674
%changelog
5500fb1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-5
5500fb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5500fb1
fc9cbec
* Thu Mar 05 2020 Josh Stone <jistone@redhat.com> - 0.0.2-4
fc9cbec
- Update restson to 0.6
fc9cbec
0f45030
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-3
0f45030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0f45030
e6e477d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-2
e6e477d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e6e477d
895c674
* Tue May 07 08:46:08 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.2-1
895c674
- Initial package