# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate freedesktop-icons Name: rust-freedesktop-icons Version: 0.3.1 Release: %autorelease Summary: Freedesktop Icons lookup crate License: MIT URL: https://crates.io/crates/freedesktop-icons Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Drop unneeded criterion dependency Patch: freedesktop-icons-fix-metadata.diff # * Fix doc tests Patch2: https://github.com/oknozor/freedesktop-icons/pull/25.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A Freedesktop Icons lookup crate.} %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 %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}+local_tests-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+local_tests-devel %{_description} This package contains library source intended for building other packages which use the "local_tests" feature of the "%{crate}" crate. %files -n %{name}+local_tests-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * Skip broken tests %{cargo_test -- -- --exact %{shrink: --skip theme::parse::test::should_get_theme_parents --skip theme::test::should_get_png_first --skip theme::test::should_get_svg_first }} %endif %changelog %autochangelog