From fe0f2f2e37b9fd15359bed9f60d5b16f9664ea4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Thu, 19 Dec 2019 20:13:03 +0100 Subject: [PATCH] Initial import (#1780797) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert-André Mauchin --- .gitignore | 1 + rust-ivf.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 76 insertions(+) create mode 100644 .gitignore create mode 100644 rust-ivf.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b16c9a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ivf-0.1.0.crate diff --git a/rust-ivf.spec b/rust-ivf.spec new file mode 100644 index 0000000..3265a5e --- /dev/null +++ b/rust-ivf.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 10 +%bcond_without check +%global debug_package %{nil} + +%global crate ivf + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Simple ivf muxer + +# Upstream license specification: BSD-2-Clause +License: BSD +URL: https://crates.io/crates/ivf +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Simple ivf muxer.} + +%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 +%license LICENSE +%{cargo_registry}/%{crate}-%{version}/ + +%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}/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 +* Sat Dec 07 01:08:24 CET 2019 Robert-André Mauchin - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ae73587 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ivf-0.1.0.crate) = 38cf316d3de42e03ccce9310d14f24c253268dc238763cee923cd28edd18222d4252f7d32d51ab77ecc2087ca4165fbe9e6f74abcc921a4308fbdde5140b4e51