ebdd365
# Generated by rust2rpm 26
f45c2b3
# * data files required by tests are not included in published crates
48207fc
%bcond_with check
48207fc
%global debug_package %{nil}
48207fc
48207fc
%global crate gif
48207fc
f45c2b3
Name:           rust-gif
ebdd365
Version:        0.13.1
f9f8c66
Release:        %autorelease
48207fc
Summary:        GIF de- and encoder
48207fc
48207fc
# Upstream license specification: MIT/Apache-2.0
f45c2b3
License:        MIT OR Apache-2.0
48207fc
URL:            https://crates.io/crates/gif
48207fc
Source:         %{crates_source}
48207fc
ebdd365
BuildRequires:  cargo-rpm-macros >= 24
48207fc
eff47a9
%global _description %{expand:
eff47a9
GIF de- and encoder.}
48207fc
48207fc
%description %{_description}
48207fc
48207fc
%package        devel
48207fc
Summary:        %{summary}
48207fc
BuildArch:      noarch
48207fc
48207fc
%description    devel %{_description}
48207fc
0d4736a
This package contains library source intended for building other packages which
0d4736a
use the "%{crate}" crate.
48207fc
48207fc
%files          devel
0d4736a
%license %{crate_instdir}/LICENSE-APACHE
0d4736a
%license %{crate_instdir}/LICENSE-MIT
0d4736a
%doc %{crate_instdir}/README.md
0d4736a
%{crate_instdir}/
48207fc
48207fc
%package     -n %{name}+default-devel
48207fc
Summary:        %{summary}
48207fc
BuildArch:      noarch
48207fc
48207fc
%description -n %{name}+default-devel %{_description}
48207fc
0d4736a
This package contains library source intended for building other packages which
0d4736a
use the "default" feature of the "%{crate}" crate.
48207fc
48207fc
%files       -n %{name}+default-devel
0d4736a
%ghost %{crate_instdir}/Cargo.toml
48207fc
f45c2b3
%package     -n %{name}+color_quant-devel
f45c2b3
Summary:        %{summary}
f45c2b3
BuildArch:      noarch
f45c2b3
f45c2b3
%description -n %{name}+color_quant-devel %{_description}
f45c2b3
f45c2b3
This package contains library source intended for building other packages which
f45c2b3
use the "color_quant" feature of the "%{crate}" crate.
f45c2b3
f45c2b3
%files       -n %{name}+color_quant-devel
f45c2b3
%ghost %{crate_instdir}/Cargo.toml
f45c2b3
21ed17f
%package     -n %{name}+raii_no_panic-devel
48207fc
Summary:        %{summary}
48207fc
BuildArch:      noarch
48207fc
21ed17f
%description -n %{name}+raii_no_panic-devel %{_description}
48207fc
0d4736a
This package contains library source intended for building other packages which
0d4736a
use the "raii_no_panic" feature of the "%{crate}" crate.
48207fc
21ed17f
%files       -n %{name}+raii_no_panic-devel
0d4736a
%ghost %{crate_instdir}/Cargo.toml
48207fc
21ed17f
%package     -n %{name}+std-devel
48207fc
Summary:        %{summary}
48207fc
BuildArch:      noarch
48207fc
21ed17f
%description -n %{name}+std-devel %{_description}
48207fc
0d4736a
This package contains library source intended for building other packages which
0d4736a
use the "std" feature of the "%{crate}" crate.
48207fc
21ed17f
%files       -n %{name}+std-devel
0d4736a
%ghost %{crate_instdir}/Cargo.toml
48207fc
48207fc
%prep
ebdd365
%autosetup -n %{crate}-%{version} -p1
48207fc
%cargo_prep
48207fc
eff47a9
%generate_buildrequires
eff47a9
%cargo_generate_buildrequires
eff47a9
48207fc
%build
48207fc
%cargo_build
48207fc
48207fc
%install
48207fc
%cargo_install
48207fc
48207fc
%if %{with check}
48207fc
%check
48207fc
%cargo_test
48207fc
%endif
48207fc
48207fc
%changelog
f9f8c66
%autochangelog