# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate libadwaita Name: rust-libadwaita Version: 0.1.1 Release: %autorelease Summary: Rust bindings for libadwaita License: MIT URL: https://crates.io/crates/libadwaita Source: %{crates_source} # Add missing LICENSE file from upstream Source: https://gitlab.gnome.org/World/Rust/libadwaita-rs/-/raw/master/LICENCE BuildRequires: rust-packaging >= 21 %global _description %{expand: Rust bindings for libadwaita.} %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}/LICENCE %{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}+dox-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dox-devel %{_description} This package contains library source intended for building other packages which use the "dox" feature of the "%{crate}" crate. %files -n %{name}+dox-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gtk_v4_2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gtk_v4_2-devel %{_description} This package contains library source intended for building other packages which use the "gtk_v4_2" feature of the "%{crate}" crate. %files -n %{name}+gtk_v4_2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gtk_v4_4-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gtk_v4_4-devel %{_description} This package contains library source intended for building other packages which use the "gtk_v4_4" feature of the "%{crate}" crate. %files -n %{name}+gtk_v4_4-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gtk_v4_6-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gtk_v4_6-devel %{_description} This package contains library source intended for building other packages which use the "gtk_v4_6" feature of the "%{crate}" crate. %files -n %{name}+gtk_v4_6-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 cp %{SOURCE1} LICENCE %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog