diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c8eac8b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/avif-serialize-0.8.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 253738c..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-avif-serialize - -The rust-avif-serialize package diff --git a/rust-avif-serialize.spec b/rust-avif-serialize.spec new file mode 100644 index 0000000..db07f14 --- /dev/null +++ b/rust-avif-serialize.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 26 +# * tests can only be run in-tree +%bcond_with check +%global debug_package %{nil} + +%global crate avif-serialize + +Name: rust-avif-serialize +Version: 0.8.1 +Release: %autorelease +Summary: Minimal writer for AVIF header structure (MPEG/HEIF/MIAF/ISO-BMFF) + +License: BSD-3-Clause +URL: https://crates.io/crates/avif-serialize +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Minimal writer for AVIF header structure (MPEG/HEIF/MIAF/ISO-BMFF).} + +%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}/ + +%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 + +%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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..553347c --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["tests can only be run in-tree"] + diff --git a/sources b/sources new file mode 100644 index 0000000..418d021 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (avif-serialize-0.8.1.crate) = baf7c88c5de8fae4d6066baa43684ad7bab684baec7125f850c4f668ee232eedbc0a9c4d802fcba23be3aa735a6dcafb8e6954e6f753d1b3b2482f80cf990d2e