Blame rust-unicode-bidi.spec

0de67ad
# Generated by rust2rpm 25
1f79c83
%bcond_without check
dab9bb3
%global debug_package %{nil}
dab9bb3
dab9bb3
%global crate unicode-bidi
dab9bb3
b365ca2
Name:           rust-unicode-bidi
c73103f
Version:        0.3.15
8edef26
Release:        %autorelease
dab9bb3
Summary:        Implementation of the Unicode Bidirectional Algorithm
dab9bb3
b365ca2
License:        MIT OR Apache-2.0
dab9bb3
URL:            https://crates.io/crates/unicode-bidi
e7e9c6c
Source:         %{crates_source}
b365ca2
# Manually created patch for downstream crate metadata changes
bed13dc
# * drop unused flame_it feature with missing dependencies
b365ca2
# * drop references to test files that are not shipped in published crates
b365ca2
Patch:          unicode-bidi-fix-metadata.diff
dab9bb3
0de67ad
BuildRequires:  cargo-rpm-macros >= 24
dab9bb3
1f79c83
%global _description %{expand:
1f79c83
Implementation of the Unicode Bidirectional Algorithm.}
6fbd8a5
6fbd8a5
%description %{_description}
dab9bb3
dab9bb3
%package        devel
dab9bb3
Summary:        %{summary}
dab9bb3
BuildArch:      noarch
dab9bb3
6fbd8a5
%description    devel %{_description}
6fbd8a5
91b4e7a
This package contains library source intended for building other packages which
91b4e7a
use the "%{crate}" crate.
6fbd8a5
6fbd8a5
%files          devel
91b4e7a
%license %{crate_instdir}/COPYRIGHT
91b4e7a
%license %{crate_instdir}/LICENSE-APACHE
91b4e7a
%license %{crate_instdir}/LICENSE-MIT
91b4e7a
%doc %{crate_instdir}/AUTHORS
91b4e7a
%doc %{crate_instdir}/README.md
91b4e7a
%{crate_instdir}/
6fbd8a5
6fbd8a5
%package     -n %{name}+default-devel
6fbd8a5
Summary:        %{summary}
6fbd8a5
BuildArch:      noarch
6fbd8a5
6fbd8a5
%description -n %{name}+default-devel %{_description}
6fbd8a5
91b4e7a
This package contains library source intended for building other packages which
91b4e7a
use the "default" feature of the "%{crate}" crate.
6fbd8a5
6fbd8a5
%files       -n %{name}+default-devel
91b4e7a
%ghost %{crate_instdir}/Cargo.toml
6fbd8a5
1f79c83
%package     -n %{name}+bench_it-devel
1f79c83
Summary:        %{summary}
1f79c83
BuildArch:      noarch
1f79c83
1f79c83
%description -n %{name}+bench_it-devel %{_description}
1f79c83
91b4e7a
This package contains library source intended for building other packages which
91b4e7a
use the "bench_it" feature of the "%{crate}" crate.
1f79c83
1f79c83
%files       -n %{name}+bench_it-devel
91b4e7a
%ghost %{crate_instdir}/Cargo.toml
91b4e7a
91b4e7a
%package     -n %{name}+hardcoded-data-devel
91b4e7a
Summary:        %{summary}
91b4e7a
BuildArch:      noarch
91b4e7a
91b4e7a
%description -n %{name}+hardcoded-data-devel %{_description}
91b4e7a
91b4e7a
This package contains library source intended for building other packages which
91b4e7a
use the "hardcoded-data" feature of the "%{crate}" crate.
91b4e7a
91b4e7a
%files       -n %{name}+hardcoded-data-devel
91b4e7a
%ghost %{crate_instdir}/Cargo.toml
1f79c83
6fbd8a5
%package     -n %{name}+serde-devel
6fbd8a5
Summary:        %{summary}
6fbd8a5
BuildArch:      noarch
6fbd8a5
6fbd8a5
%description -n %{name}+serde-devel %{_description}
dab9bb3
91b4e7a
This package contains library source intended for building other packages which
91b4e7a
use the "serde" feature of the "%{crate}" crate.
6fbd8a5
6fbd8a5
%files       -n %{name}+serde-devel
91b4e7a
%ghost %{crate_instdir}/Cargo.toml
6fbd8a5
bed13dc
%package     -n %{name}+std-devel
bed13dc
Summary:        %{summary}
bed13dc
BuildArch:      noarch
bed13dc
bed13dc
%description -n %{name}+std-devel %{_description}
bed13dc
91b4e7a
This package contains library source intended for building other packages which
91b4e7a
use the "std" feature of the "%{crate}" crate.
bed13dc
bed13dc
%files       -n %{name}+std-devel
91b4e7a
%ghost %{crate_instdir}/Cargo.toml
bed13dc
6fbd8a5
%package     -n %{name}+unstable-devel
6fbd8a5
Summary:        %{summary}
6fbd8a5
BuildArch:      noarch
6fbd8a5
6fbd8a5
%description -n %{name}+unstable-devel %{_description}
6fbd8a5
91b4e7a
This package contains library source intended for building other packages which
91b4e7a
use the "unstable" feature of the "%{crate}" crate.
6fbd8a5
6fbd8a5
%files       -n %{name}+unstable-devel
91b4e7a
%ghost %{crate_instdir}/Cargo.toml
6fbd8a5
6fbd8a5
%package     -n %{name}+with_serde-devel
6fbd8a5
Summary:        %{summary}
6fbd8a5
BuildArch:      noarch
6fbd8a5
6fbd8a5
%description -n %{name}+with_serde-devel %{_description}
6fbd8a5
91b4e7a
This package contains library source intended for building other packages which
91b4e7a
use the "with_serde" feature of the "%{crate}" crate.
6fbd8a5
6fbd8a5
%files       -n %{name}+with_serde-devel
91b4e7a
%ghost %{crate_instdir}/Cargo.toml
dab9bb3
dab9bb3
%prep
0de67ad
%autosetup -n %{crate}-%{version} -p1
dab9bb3
%cargo_prep
dab9bb3
1f79c83
%generate_buildrequires
1f79c83
%cargo_generate_buildrequires
1f79c83
dab9bb3
%build
dab9bb3
%cargo_build
dab9bb3
dab9bb3
%install
dab9bb3
%cargo_install
dab9bb3
dab9bb3
%if %{with check}
dab9bb3
%check
bed13dc
%cargo_test
dab9bb3
%endif
dab9bb3
dab9bb3
%changelog
8edef26
%autochangelog