Initial import

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
epel9
Robert-André Mauchin 4 years ago
parent 53d433f8c8
commit b0edbf7bb3
No known key found for this signature in database
GPG Key ID: F07E690B12A82D56

2
.gitignore vendored

@ -0,0 +1,2 @@
/av-metrics-0.6.1.crate
/testfiles.tar.gz

@ -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 <zebob.m@gmail.com> - 0.6.1-1
- Initial package

@ -0,0 +1,2 @@
SHA512 (av-metrics-0.6.1.crate) = ea97afb8d05896bba720d74469504b515569921b797b774951f51eee7b57390e2cf582acc7fe8fb24448db3862e361090778f48fd4ea5038e96f9f2a00b3831e
SHA512 (testfiles.tar.gz) = 0da3e320586e62bc891bc0282613a742203ce99526dd788fb878cee0a976f936b35c8d739f992d3a5d716b538503d143690e13ffcf707855855dfca8e5c7b0be
Loading…
Cancel
Save