Blame rust-encoding-index-korean.spec

8f6314
# Generated by rust2rpm
8f6314
# Tests require nightly compiler
8f6314
%bcond_with check
8f6314
%global debug_package %{nil}
8f6314
8f6314
%global crate encoding-index-korean
8f6314
8f6314
Name:           rust-%{crate}
8f6314
Version:        1.20141219.5
931620
Release:        2%{?dist}
8f6314
Summary:        Index tables for Korean character encodings
8f6314
8f6314
# https://github.com/lifthrasiir/rust-encoding/issues/111
8f6314
License:        CC0
8f6314
URL:            https://crates.io/crates/encoding-index-korean
8f6314
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
8f6314
# Initial patched metadata
8f6314
# * No paths
8f6314
# * Make dev-dependency as dev one
8f6314
Patch0:         encoding-index-korean-1.20141219.5-fix-metadata.diff
8f6314
8f6314
ExclusiveArch:  %{rust_arches}
8f6314
8f6314
BuildRequires:  rust-packaging
8f6314
%if %{with check}
8f6314
# [dev-dependencies]
8f6314
BuildRequires:  (crate(encoding_index_tests) >= 0.1.4 with crate(encoding_index_tests) < 0.2.0)
8f6314
%endif
8f6314
8f6314
%description
8f6314
%{summary}.
8f6314
8f6314
%package        devel
8f6314
Summary:        %{summary}
8f6314
BuildArch:      noarch
8f6314
8f6314
%description    devel
8f6314
Index tables for Korean character encodings.
8f6314
8f6314
This package contains library source intended for building other packages
8f6314
which use %{crate} from crates.io.
8f6314
8f6314
%prep
8f6314
%autosetup -n %{crate}-%{version} -p1
8f6314
%cargo_prep
8f6314
8f6314
%build
8f6314
%cargo_build
8f6314
8f6314
%install
8f6314
%cargo_install
8f6314
8f6314
%if %{with check}
8f6314
%check
8f6314
%cargo_test
8f6314
%endif
8f6314
8f6314
%files          devel
8f6314
%{cargo_registry}/%{crate}-%{version}/
8f6314
8f6314
%changelog
931620
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.20141219.5-2
931620
- Rebuild for rust-packaging v5
931620
8f6314
* Sun Nov 12 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.20141219.5-1
8f6314
- Initial package