# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate wayland-protocols-misc Name: rust-wayland-protocols-misc Version: 0.3.6 Release: 1743238254%{?dist} Summary: Generated API for misc and deprecated wayland protocol extensions License: LGPL-2.1-or-later AND MIT URL: https://crates.io/crates/wayland-protocols-misc Source: %{crates_source} Source: https://invent.kde.org/libraries/plasma-wayland-protocols/-/raw/master/COPYING.LIB BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Generated API for misc and deprecated wayland protocol extensions.} %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.txt %license %{crate_instdir}/LICENSE-LGPL-2.1.txt %doc %{crate_instdir}/CHANGELOG.md %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 %package -n %{name}+client-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+client-devel %{_description} This package contains library source intended for building other packages which use the "client" feature of the "%{crate}" crate. %files -n %{name}+client-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+server-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+server-devel %{_description} This package contains library source intended for building other packages which use the "server" feature of the "%{crate}" crate. %files -n %{name}+server-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+wayland-client-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+wayland-client-devel %{_description} This package contains library source intended for building other packages which use the "wayland-client" feature of the "%{crate}" crate. %files -n %{name}+wayland-client-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+wayland-server-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+wayland-server-devel %{_description} This package contains library source intended for building other packages which use the "wayland-server" feature of the "%{crate}" crate. %files -n %{name}+wayland-server-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 cp %{SOURCE1} LICENSE-LGPL-2.1.txt %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog