# Generated by rust2rpm 16 %bcond_without check %global debug_package %{nil} %global crate svg_metadata Name: rust-%{crate} Version: 0.4.1 Release: 1%{?dist} Summary: Extracts metadata (like the viewBox, width, and height) from SVG graphics # Upstream license specification: Apache-2.0/MIT # https://github.com/mre/svg-metadata/issues/2 License: ASL 2.0 or MIT URL: https://crates.io/crates/svg_metadata Source: %{crates_source} # Initial patched metadata # * Update roxmltree to 0.13, https://github.com/mre/svg-metadata/pull/1 Patch0: svg_metadata-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Extracts metadata (like the viewBox, width, and height) from SVG graphics.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %doc README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 * Fri Dec 25 10:45:10 CET 2020 Igor Raits - 0.4.1-1 - Initial package