# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate wayland-protocols
Name: rust-wayland-protocols
Version: 0.29.5
Release: %autorelease
Summary: Generated API for the officials wayland protocol extensions
License: MIT
URL: https://crates.io/crates/wayland-protocols
Source: %{crates_source}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Generated API for the officials 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}/protocols/COPYING
%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}+staging_protocols-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+staging_protocols-devel %{_description}
This package contains library source intended for building other packages which
use the "staging_protocols" feature of the "%{crate}" crate.
%files -n %{name}+staging_protocols-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+unstable_protocols-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+unstable_protocols-devel %{_description}
This package contains library source intended for building other packages which
use the "unstable_protocols" feature of the "%{crate}" crate.
%files -n %{name}+unstable_protocols-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_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