# Generated by rust2rpm 16 %bcond_without check %global debug_package %{nil} %global crate av-metrics Name: rust-%{crate} Version: 0.6.1 Release: 1%{?dist} Summary: Collection of algorithms for measuring audio/video metrics # Upstream license specification: MIT # https://github.com/rust-av/av-metrics/issues/215 License: MIT URL: https://crates.io/crates/av-metrics Source: %{crates_source} # git clone https://github.com/rust-av/av-metrics # cd av-metrics/av_metrics # tar czvf testfiles.tar.gz testfiles/ Source1: testfiles.tar.gz ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Collection of algorithms for measuring audio/video metrics.} %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 %{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 %package -n %{name}+bench-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bench-devel %{_description} This package contains library source intended for building other packages which use "bench" feature of "%{crate}" crate. %files -n %{name}+bench-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+decode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+decode-devel %{_description} This package contains library source intended for building other packages which use "decode" feature of "%{crate}" crate. %files -n %{name}+decode-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use "serde" feature of "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+y4m-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+y4m-devel %{_description} This package contains library source intended for building other packages which use "y4m" feature of "%{crate}" crate. %files -n %{name}+y4m-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+y4m-decode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+y4m-decode-devel %{_description} This package contains library source intended for building other packages which use "y4m-decode" feature of "%{crate}" crate. %files -n %{name}+y4m-decode-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep tar xvf %{S:1} %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Wed Dec 09 18:17:03 CET 2020 Robert-André Mauchin - 0.6.1-1 - Initial package