# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} %global crate winit Name: rust-%{crate} Version: 0.23.0 Release: 1%{?dist} Summary: Cross-platform window creation library # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: https://crates.io/crates/winit Source: %{crates_source} # Initial patched metadata Patch0: winit-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Cross-platform window creation library.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE %doc README.md CHANGELOG.md FEATURES.md CONTRIBUTING.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+sctk-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sctk-devel %{_description} This package contains library source intended for building other packages which use "sctk" feature of "%{crate}" crate. %files -n %{name}+sctk-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use "serde" feature of "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "wayland" feature of "%{crate}" crate. %files -n %{name}+wayland-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "wayland-client" feature of "%{crate}" crate. %files -n %{name}+wayland-client-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+x11-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+x11-devel %{_description} This package contains library source intended for building other packages which use "x11" feature of "%{crate}" crate. %files -n %{name}+x11-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+x11-dl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+x11-dl-devel %{_description} This package contains library source intended for building other packages which use "x11-dl" feature of "%{crate}" crate. %files -n %{name}+x11-dl-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 * Sat Oct 10 15:21:00 CEST 2020 returntrip - 0.23.0-1 - Initial package