From feb5f418276069300e8effa4c717b8de4b2c3786 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 14 Jun 2024 17:13:35 +0200 Subject: [PATCH] Initial import (#2290389) --- .gitignore | 1 + README.md | 3 -- rust-avif-parse.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-avif-parse.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..581a448 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/avif-parse-1.0.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 1d7477a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-avif-parse - -The rust-avif-parse package diff --git a/rust-avif-parse.spec b/rust-avif-parse.spec new file mode 100644 index 0000000..654787e --- /dev/null +++ b/rust-avif-parse.spec @@ -0,0 +1,82 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate avif-parse + +Name: rust-avif-parse +Version: 1.0.0 +Release: %autorelease +Summary: Parser for AVIF image files + +License: MPL-2.0 +URL: https://crates.io/crates/avif-parse +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Parser for AVIF image files.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ +# https://github.com/kornelski/avif-parse/pull/1 +%exclude %{crate_instdir}/av1-avif/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+mp4parse_fallible-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mp4parse_fallible-devel %{_description} + +This package contains library source intended for building other packages which +use the "mp4parse_fallible" feature of the "%{crate}" crate. + +%files -n %{name}+mp4parse_fallible-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..cb2b3a8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (avif-parse-1.0.0.crate) = af2321514e7b12d7d51a4662e3c40e07a83f9c76d8db27590b5d46f9a6e43b3bbda739df0ce77615523ac6f9e4d8328f6c5188087eeae718bcbd8f0cf00556df