From 1363b1b7575aed90eae20e8aed13ba1e767de3d1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 20 Aug 2022 15:15:46 +0200 Subject: [PATCH] Update to version 0.2.6; Fixes RHBZ#2029173 --- .gitignore | 1 + rust-jpeg-decoder.spec | 63 ++++++++++++++++++++++++++++-------------- sources | 2 +- 3 files changed, 45 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 01e54a7..bd560e1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /jpeg-decoder-0.1.19.crate /jpeg-decoder-0.1.20.crate /jpeg-decoder-0.1.22.crate +/jpeg-decoder-0.2.6.crate diff --git a/rust-jpeg-decoder.spec b/rust-jpeg-decoder.spec index a8b67e6..45f3740 100644 --- a/rust-jpeg-decoder.spec +++ b/rust-jpeg-decoder.spec @@ -1,26 +1,23 @@ -# Generated by rust2rpm 16 -# * Test files are not shipped +# Generated by rust2rpm 22 +# * tests and test files are not included in published crates %bcond_with check %global debug_package %{nil} %global crate jpeg-decoder -Name: rust-%{crate} -Version: 0.1.22 +Name: rust-jpeg-decoder +Version: 0.2.6 Release: %autorelease Summary: JPEG decoder # Upstream license specification: MIT / Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/jpeg-decoder Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: JPEG decoder.} @@ -33,13 +30,15 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,11 +46,35 @@ 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. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+nightly_aarch64_neon-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly_aarch64_neon-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly_aarch64_neon" feature of the "%{crate}" crate. + +%files -n %{name}+nightly_aarch64_neon-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+platform_independent-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+platform_independent-devel %{_description} + +This package contains library source intended for building other packages which +use the "platform_independent" feature of the "%{crate}" crate. + +%files -n %{name}+platform_independent-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rayon-devel Summary: %{summary} @@ -59,11 +82,11 @@ BuildArch: noarch %description -n %{name}+rayon-devel %{_description} -This package contains library source intended for building other packages -which use "rayon" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 4ccd6f0..4c46b04 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (jpeg-decoder-0.1.22.crate) = 3edf415eb11909b7b16755f54c6a5b082200f81e6ce5dede413e41be221c8be5c14035a171fa1c21771c8d11f30cd990f57e6e98e3204e34e3f0e7ca2c3e38b4 +SHA512 (jpeg-decoder-0.2.6.crate) = f96c95729357d87a3c1e78dd873e81346b8e98f0e9e4a161b54e2f5bcc7abb54c37de37eb032be647fcefb1e36a6343444c795ad5d37043f5e958dda71a34abe