From b0edbf7bb3d50539cb42690c652bd14968000c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Thu, 10 Dec 2020 21:09:10 +0100 Subject: [PATCH] Initial import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert-André Mauchin --- .gitignore | 2 + rust-av-metrics.spec | 139 +++++++++++++++++++++++++++++++++++++++++++ sources | 2 + 3 files changed, 143 insertions(+) create mode 100644 .gitignore create mode 100644 rust-av-metrics.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7bc3c3d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/av-metrics-0.6.1.crate +/testfiles.tar.gz diff --git a/rust-av-metrics.spec b/rust-av-metrics.spec new file mode 100644 index 0000000..0f08f87 --- /dev/null +++ b/rust-av-metrics.spec @@ -0,0 +1,139 @@ +# 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 diff --git a/sources b/sources new file mode 100644 index 0000000..9c1251e --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (av-metrics-0.6.1.crate) = ea97afb8d05896bba720d74469504b515569921b797b774951f51eee7b57390e2cf582acc7fe8fb24448db3862e361090778f48fd4ea5038e96f9f2a00b3831e +SHA512 (testfiles.tar.gz) = 0da3e320586e62bc891bc0282613a742203ce99526dd788fb878cee0a976f936b35c8d739f992d3a5d716b538503d143690e13ffcf707855855dfca8e5c7b0be