# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate glycin-common %global crate_version 1.0.0-beta.1 Name: rust-glycin-common Version: 1.0.0~beta.1 Release: %autorelease Summary: Sandboxed image decoding License: MPL-2.0 OR LGPL-2.1-or-later URL: https://crates.io/crates/glycin-common Source: %{crates_source %{crate} %{crate_version}} # * https://gitlab.gnome.org/GNOME/glycin/-/issues/181 Source2: https://gitlab.gnome.org/GNOME/glycin/-/raw/2.0.beta.2/LICENSE Source3: https://gitlab.gnome.org/GNOME/glycin/-/raw/2.0.beta.2/LICENSE-LGPL-2.1 Source4: https://gitlab.gnome.org/GNOME/glycin/-/raw/2.0.beta.2/LICENSE-MPL-2.0 BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Sandboxed image decoding.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %license %{crate_instdir}/LICENSE-LGPL-2.1 %license %{crate_instdir}/LICENSE-MPL-2.0 %{crate_instdir}/ %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 the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gobject-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gobject-devel %{_description} This package contains library source intended for building other packages which use the "gobject" feature of the "%{crate}" crate. %files -n %{name}+gobject-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{crate_version} -p1 %cargo_prep cp -pav %{SOURCE2} %{SOURCE3} %{SOURCE4} . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * doctests can only be compiled in-tree %cargo_test -- --lib %endif %changelog %autochangelog