# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate glycin %global crate_version 0.1.0-beta.3 Name: rust-glycin Version: 0.1.0~beta.3 Release: %autorelease Summary: Sandboxed image rendering # https://gitlab.gnome.org/sophie-h/glycin/-/issues/15 License: LGPL-2.1-only URL: https://crates.io/crates/glycin Source: %{crates_source %{crate} %{crate_version}} # Add missing LICENSE file from upstream # https://gitlab.gnome.org/sophie-h/glycin/-/merge_requests/9 Source1: https://gitlab.gnome.org/sophie-h/glycin/-/raw/main/LICENSE # Manually created patch for downstream crate metadata changes # * Add autobins = false to avoid unwanted /usr/bin/test binary Patch: glycin-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: Sandboxed image rendering.} %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 %doc %{crate_instdir}/README.md %{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 %prep %autosetup -n %{crate}-%{crate_version} -p1 # https://gitlab.gnome.org/sophie-h/glycin/-/merge_requests/9 cp %{SOURCE1} . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog