f1c0508
# Generated by rust2rpm 26
ba6dd2f
%bcond_without check
5857081
%global debug_package %{nil}
5857081
5857081
%global crate strum
5857081
6f7da71
Name:           rust-strum
f1c0508
Version:        0.26.2
3b9408f
Release:        %autorelease
5857081
Summary:        Helpful macros for working with enums and strings
5857081
5857081
License:        MIT
5857081
URL:            https://crates.io/crates/strum
5857081
Source:         %{crates_source}
6f7da71
# Manually created patch for downstream crate metadata changes
6f7da71
# * bump phf dependency from 0.10 to 0.11
6f7da71
Patch:          strum-fix-metadata.diff
5857081
f1c0508
BuildRequires:  cargo-rpm-macros >= 24
5857081
5857081
%global _description %{expand:
5857081
Helpful macros for working with enums and strings.}
5857081
5857081
%description %{_description}
5857081
5857081
%package        devel
5857081
Summary:        %{summary}
5857081
BuildArch:      noarch
5857081
5857081
%description    devel %{_description}
5857081
a3200d6
This package contains library source intended for building other packages which
a3200d6
use the "%{crate}" crate.
5857081
5857081
%files          devel
a3200d6
%license %{crate_instdir}/LICENSE
f1c0508
%doc %{crate_instdir}/README.md
a3200d6
%{crate_instdir}/
5857081
5857081
%package     -n %{name}+default-devel
5857081
Summary:        %{summary}
5857081
BuildArch:      noarch
5857081
5857081
%description -n %{name}+default-devel %{_description}
5857081
a3200d6
This package contains library source intended for building other packages which
a3200d6
use the "default" feature of the "%{crate}" crate.
5857081
5857081
%files       -n %{name}+default-devel
a3200d6
%ghost %{crate_instdir}/Cargo.toml
106a2f9
106a2f9
%package     -n %{name}+derive-devel
106a2f9
Summary:        %{summary}
106a2f9
BuildArch:      noarch
106a2f9
106a2f9
%description -n %{name}+derive-devel %{_description}
106a2f9
a3200d6
This package contains library source intended for building other packages which
a3200d6
use the "derive" feature of the "%{crate}" crate.
106a2f9
106a2f9
%files       -n %{name}+derive-devel
a3200d6
%ghost %{crate_instdir}/Cargo.toml
a3200d6
4351dc2
%package     -n %{name}+phf-devel
4351dc2
Summary:        %{summary}
4351dc2
BuildArch:      noarch
4351dc2
4351dc2
%description -n %{name}+phf-devel %{_description}
4351dc2
4351dc2
This package contains library source intended for building other packages which
4351dc2
use the "phf" feature of the "%{crate}" crate.
4351dc2
4351dc2
%files       -n %{name}+phf-devel
4351dc2
%ghost %{crate_instdir}/Cargo.toml
4351dc2
a3200d6
%package     -n %{name}+std-devel
a3200d6
Summary:        %{summary}
a3200d6
BuildArch:      noarch
a3200d6
a3200d6
%description -n %{name}+std-devel %{_description}
a3200d6
a3200d6
This package contains library source intended for building other packages which
a3200d6
use the "std" feature of the "%{crate}" crate.
a3200d6
a3200d6
%files       -n %{name}+std-devel
a3200d6
%ghost %{crate_instdir}/Cargo.toml
106a2f9
106a2f9
%package     -n %{name}+strum_macros-devel
106a2f9
Summary:        %{summary}
106a2f9
BuildArch:      noarch
106a2f9
106a2f9
%description -n %{name}+strum_macros-devel %{_description}
106a2f9
a3200d6
This package contains library source intended for building other packages which
a3200d6
use the "strum_macros" feature of the "%{crate}" crate.
106a2f9
106a2f9
%files       -n %{name}+strum_macros-devel
a3200d6
%ghost %{crate_instdir}/Cargo.toml
5857081
5857081
%prep
f1c0508
%autosetup -n %{crate}-%{version} -p1
5857081
%cargo_prep
5857081
ba6dd2f
%generate_buildrequires
ba6dd2f
%cargo_generate_buildrequires
ba6dd2f
5857081
%build
5857081
%cargo_build
5857081
5857081
%install
5857081
%cargo_install
5857081
5857081
%if %{with check}
5857081
%check
a3200d6
%cargo_test -f derive
5857081
%endif
5857081
5857081
%changelog
3b9408f
%autochangelog