## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate glycin-utils %global crate_version 0.1.0-beta.2 Name: rust-glycin-utils Version: 0.1.0~beta.2 Release: %autorelease Summary: Sandboxed image rendering License: LGPL-2.1 URL: https://crates.io/crates/glycin-utils Source: %{crates_source %{crate} %{crate_version}} # Add missing LICENSE file from upstream Source1: https://gitlab.gnome.org/sophie-h/glycin/-/raw/main/LICENSE 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 %{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}+image-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+image-devel %{_description} This package contains library source intended for building other packages which use the "image" feature of the "%{crate}" crate. %files -n %{name}+image-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+image-rs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+image-rs-devel %{_description} This package contains library source intended for building other packages which use the "image-rs" feature of the "%{crate}" crate. %files -n %{name}+image-rs-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{crate_version} -p1 cp %{SOURCE1} . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sat Aug 12 2023 Kalev Lember - 0.1.0~beta.2-2 - Add missing LICENSE file from upstream * Sat Aug 12 2023 Kalev Lember - 0.1.0~beta.2-1 - Update to 0.1.0-beta.2 * Tue Aug 08 2023 Kalev Lember - 0.1.0~beta.1-1 - Initial Fedora packaging