# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate librsvg Name: rust-librsvg Version: 2.56.0 Release: %autorelease Summary: Render SVG documents with Cairo License: LGPL-2.1-or-later URL: https://crates.io/crates/librsvg Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop binaries as they are shipped by the librsvg package, see rhbz#2224817 # * drop criterion dependency # * drop wasmbind feature for chrono # * bump lopdf to 0.30 Patch: librsvg-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: Render SVG documents with Cairo.} %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}/COPYING.LIB %doc %{crate_instdir}/AUTHORS %doc %{crate_instdir}/README.md %doc %{crate_instdir}/code-of-conduct.md %doc %{crate_instdir}/rsvg-convert.rst %{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 %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 # Disable flaky tests and the ones for binaries we don't build %cargo_test -- -- --skip cmdline::rsvg_convert:: --skip reference::tests::filter_morphology_from_reference_page_svg --skip reference::tests::bugs_bug730_font_scaling_svg --skip reference::tests::filter_kernel_unit_length_svg --skip reference::tests::svg1_1_ %endif %changelog %autochangelog