# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate espanso-inject Name: rust-espanso-inject Version: 0.1.0 Release: %autorelease Summary: Expanso inject module License: GPL-3.0 URL: https://espanso.org/ Source: %{crate}-%{version}.tar.gz Source: make-archive.sh # Automatically generated patch to strip foreign dependencies Patch: espanso-inject-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # - Bump enum-as-inner to 0.5.0 Patch: espanso-inject-fix-metadata.diff BuildRequires: rust-packaging >= 21 BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(xtst) %global _description %{expand: %{summary}.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(x11) Requires: pkgconfig(xkbcommon) Requires: pkgconfig(xtst) %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license 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}+wayland-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+wayland-devel %{_description} This package contains library source intended for building other packages which use the "wayland" feature of the "%{crate}" crate. %files -n %{name}+wayland-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog