commit 7847391d6cffd7491c4da5e452717f7961313be1 Author: tigro Date: Mon Jan 15 22:54:51 2024 +0300 import rust-tiff0.6-0.6.1-1.el9 diff --git a/.rust-tiff0.6.metadata b/.rust-tiff0.6.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/tiff-0.6.1.crate b/SOURCES/tiff-0.6.1.crate new file mode 100644 index 0000000..1cdbab2 Binary files /dev/null and b/SOURCES/tiff-0.6.1.crate differ diff --git a/SOURCES/tiff-fix-metadata.diff b/SOURCES/tiff-fix-metadata.diff new file mode 100644 index 0000000..d499f29 --- /dev/null +++ b/SOURCES/tiff-fix-metadata.diff @@ -0,0 +1,14 @@ +--- tiff-0.6.1/Cargo.toml 2020-12-12T19:23:19+00:00 ++++ tiff-0.6.1/Cargo.toml 2022-08-21T11:12:33.539697+00:00 +@@ -29,10 +29,7 @@ + package = "jpeg-decoder" + + [dependencies.miniz_oxide] +-version = "0.4.1" +-features = ["no_extern_crate_alloc"] ++version = "0.5" + + [dependencies.weezl] + version = "0.1.0" +-[dev-dependencies.criterion] +-version = "0.3.1" diff --git a/SPECS/rust-tiff0.6.spec b/SPECS/rust-tiff0.6.spec new file mode 100644 index 0000000..6250815 --- /dev/null +++ b/SPECS/rust-tiff0.6.spec @@ -0,0 +1,89 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.0) +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 22 +%bcond_without check +%global debug_package %{nil} + +%global crate tiff + +Name: rust-tiff0.6 +Version: 0.6.1 +Release: %autorelease +Summary: TIFF decoding and encoding library in pure Rust + +License: MIT +URL: https://crates.io/crates/tiff +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * bump miniz_oxide from 0.4.1 to 0.5 +Patch: tiff-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +TIFF decoding and encoding library in pure Rust.} + +%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}/CHANGES.md +%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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +# * files for unit / integration tests are not included in published crates +%cargo_test -- --doc +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.6.1-1 +- Rebuilt for MSVSphere 9.3 + +* Sun Aug 21 2022 Fabio Valentini 0.6.1-1 +- Initial import (tiff 0.6 compat package)