# Generated by rust2rpm 26 %global debug_package %{nil} %global crate relm4 Name: rust-relm4 Version: 0.8.1 Release: %autorelease Summary: Idiomatic GUI library inspired by Elm and based on gtk4-rs License: Apache-2.0 OR MIT URL: https://crates.io/crates/relm4 Source: %{crates_source} # https://github.com/Relm4/Relm4/issues/655 Source100: https://raw.githubusercontent.com/Relm4/Relm4/main/LICENSE-APACHE Source101: https://raw.githubusercontent.com/Relm4/Relm4/main/LICENSE-MIT BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: An idiomatic GUI library inspired by Elm and based on gtk4-rs.} %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-APACHE %license %{crate_instdir}/LICENSE-MIT %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}+adw-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+adw-devel %{_description} This package contains library source intended for building other packages which use the "adw" feature of the "%{crate}" crate. %files -n %{name}+adw-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+all-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+all-devel %{_description} This package contains library source intended for building other packages which use the "all" feature of the "%{crate}" crate. %files -n %{name}+all-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gnome_42-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gnome_42-devel %{_description} This package contains library source intended for building other packages which use the "gnome_42" feature of the "%{crate}" crate. %files -n %{name}+gnome_42-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gnome_43-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gnome_43-devel %{_description} This package contains library source intended for building other packages which use the "gnome_43" feature of the "%{crate}" crate. %files -n %{name}+gnome_43-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gnome_44-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gnome_44-devel %{_description} This package contains library source intended for building other packages which use the "gnome_44" feature of the "%{crate}" crate. %files -n %{name}+gnome_44-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gnome_45-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gnome_45-devel %{_description} This package contains library source intended for building other packages which use the "gnome_45" feature of the "%{crate}" crate. %files -n %{name}+gnome_45-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gnome_46-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gnome_46-devel %{_description} This package contains library source intended for building other packages which use the "gnome_46" feature of the "%{crate}" crate. %files -n %{name}+gnome_46-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libadwaita-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+libadwaita-devel %{_description} This package contains library source intended for building other packages which use the "libadwaita" feature of the "%{crate}" crate. %files -n %{name}+libadwaita-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libpanel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+libpanel-devel %{_description} This package contains library source intended for building other packages which use the "libpanel" feature of the "%{crate}" crate. %files -n %{name}+libpanel-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+macros-devel %{_description} This package contains library source intended for building other packages which use the "macros" feature of the "%{crate}" crate. %files -n %{name}+macros-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+panel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+panel-devel %{_description} This package contains library source intended for building other packages which use the "panel" feature of the "%{crate}" crate. %files -n %{name}+panel-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+relm4-macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+relm4-macros-devel %{_description} This package contains library source intended for building other packages which use the "relm4-macros" feature of the "%{crate}" crate. %files -n %{name}+relm4-macros-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp -pav %{SOURCE100} %{SOURCE101} . # Remove dev dependencies for criterion, we wont run benchmarks sed -i '/^\[dev-dependencies.criterion\]/{N;N;d}' Cargo.toml %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # Install icons.toml from rust-relm4-icons for tests cp -pav /usr/share/cargo/registry/relm4-icons-*/icons.toml . # Hack patch the path sed -i 's@icons/fluentui-system-icons@/usr/share/cargo/registry/relm4-icons-0.8.3/icons/fluentui-system-icons@' icons.toml %cargo_test %endif %changelog %autochangelog