# Generated by rust2rpm 24 # * tests are broken: https://github.com/gtk-rs/gtk-rs-core/issues/64 %bcond_with check %global debug_package %{nil} %global crate gdk4-x11-sys Name: rust-gdk4-x11-sys Version: 0.6.3 Release: %autorelease Summary: FFI bindings of GDK4 X11 License: MIT URL: https://crates.io/crates/gdk4-x11-sys Source: %{crates_source} BuildRequires: rust-packaging >= 21 %global _description %{expand: FFI bindings of GDK4 X11.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(gtk4-x11) >= 4.0.0 %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/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}+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}+v4_10-devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(gtk4-x11) >= 4.10 %description -n %{name}+v4_10-devel %{_description} This package contains library source intended for building other packages which use the "v4_10" feature of the "%{crate}" crate. %files -n %{name}+v4_10-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v4_4-devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(gtk4-x11) >= 4.4 %description -n %{name}+v4_4-devel %{_description} This package contains library source intended for building other packages which use the "v4_4" feature of the "%{crate}" crate. %files -n %{name}+v4_4-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo 'pkgconfig(gtk4-x11) >= 4.0.0' %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog