## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 24 # * test resources are not included in the create %bcond_with check %global debug_package %{nil} %global crate librsvg Name: rust-librsvg Version: 2.57.1 Release: %autorelease Summary: Library to render SVG images to Cairo surfaces License: LGPL-2.1-or-later URL: https://crates.io/crates/librsvg Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop criterion dependency Patch: librsvg-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: A library to render SVG images to Cairo surfaces. GNOME uses this to render SVG icons. Outside of GNOME, other desktop environments use it for similar purposes. Wikimedia uses it for Wikipedia's SVG diagrams.} %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}/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}+c-api-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+c-api-devel %{_description} This package contains library source intended for building other packages which use the "c-api" feature of the "%{crate}" crate. %files -n %{name}+c-api-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test-utils-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+test-utils-devel %{_description} This package contains library source intended for building other packages which use the "test-utils" feature of the "%{crate}" crate. %files -n %{name}+test-utils-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+yeslogic-fontconfig-sys-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+yeslogic-fontconfig-sys-devel %{_description} This package contains library source intended for building other packages which use the "yeslogic-fontconfig-sys" feature of the "%{crate}" crate. %files -n %{name}+yeslogic-fontconfig-sys-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 %cargo_test %endif %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 2.57.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Dec 15 2023 Kalev Lember - 2.57.1-1 - Update to 2.57.1 * Sun Oct 01 2023 Kalev Lember - 2.57.0-1 - Update to 2.57.0 * Tue Aug 22 2023 Kalev Lember - 2.57.0~beta.2-2 - Disable tests as test resources are not included in the create * Tue Aug 22 2023 Kalev Lember - 2.57.0~beta.2-1 - Update to 2.57.0-beta.2 * Thu Aug 03 2023 Fabio Valentini - 2.56.0-2 - Ensure all required files are present for builds of dependent packages * Sun Jul 30 2023 Davide Cavalca - 2.56.0-1 - Initial import; Fixes: RHBZ#2227475 ## END: Generated by rpmautospec