# Generated by rust2rpm # Tests require nightly compiler %bcond_with check %global debug_package %{nil} %global crate encoding Name: rust-%{crate} Version: 0.2.33 Release: 5%{?dist} Summary: Character encoding support for Rust License: MIT URL: https://crates.io/crates/encoding Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No paths Patch0: encoding-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(encoding-index-japanese/default) >= 1.20141219.5 with crate(encoding-index-japanese/default) < 1.20141220.0) BuildRequires: (crate(encoding-index-korean/default) >= 1.20141219.5 with crate(encoding-index-korean/default) < 1.20141220.0) BuildRequires: (crate(encoding-index-simpchinese/default) >= 1.20141219.5 with crate(encoding-index-simpchinese/default) < 1.20141220.0) BuildRequires: (crate(encoding-index-singlebyte/default) >= 1.20141219.5 with crate(encoding-index-singlebyte/default) < 1.20141220.0) BuildRequires: (crate(encoding-index-tradchinese/default) >= 1.20141219.5 with crate(encoding-index-tradchinese/default) < 1.20141220.0) %if %{with check} BuildRequires: (crate(getopts/default) >= 0.2.0 with crate(getopts/default) < 0.3.0) %endif %global _description \ Character encoding support for Rust. %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.txt %doc README.md AUTHORS.txt %{cargo_registry}/%{crate}-%{version}/ %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}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sat Nov 03 2018 Igor Gnatenko - 0.2.33-5 - Adapt to new packaging * Sat Jul 14 2018 Fedora Release Engineering - 0.2.33-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.2.33-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 0.2.33-2 - Rebuild for rust-packaging v5 * Mon Nov 13 2017 Igor Gnatenko - 0.2.33-1 - Initial package