commit 776cb8b7ab795e83848635274188b85e5e0364ea Author: MSVSphere Packaging Team Date: Fri Dec 20 17:52:06 2024 +0300 import rust-tiff-0.9.1-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..77d023a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tiff-0.9.1.crate diff --git a/.rust-tiff.metadata b/.rust-tiff.metadata new file mode 100644 index 0000000..0f2542d --- /dev/null +++ b/.rust-tiff.metadata @@ -0,0 +1 @@ +a9ce4d7b33ac239196234929615ac13a8c6ab2d8 SOURCES/tiff-0.9.1.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..5c2462d --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["doc"] +comments = ["files for unit / integration tests are not included in published crates"] + diff --git a/SOURCES/tiff-fix-metadata.diff b/SOURCES/tiff-fix-metadata.diff new file mode 100644 index 0000000..cec6c73 --- /dev/null +++ b/SOURCES/tiff-fix-metadata.diff @@ -0,0 +1,20 @@ +--- tiff-0.9.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tiff-0.9.1/Cargo.toml 2024-01-13T21:57:31.938819+00:00 +@@ -29,10 +29,6 @@ + repository = "https://github.com/image-rs/image-tiff" + resolver = "2" + +-[[bench]] +-name = "lzw" +-harness = false +- + [dependencies.flate2] + version = "1.0.20" + +@@ -43,6 +39,3 @@ + + [dependencies.weezl] + version = "0.1.0" +- +-[dev-dependencies.criterion] +-version = "0.3.1" diff --git a/SPECS/rust-tiff.spec b/SPECS/rust-tiff.spec new file mode 100644 index 0000000..15e2e9f --- /dev/null +++ b/SPECS/rust-tiff.spec @@ -0,0 +1,168 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate tiff + +Name: rust-tiff +Version: 0.9.1 +Release: %autorelease +Summary: 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 +Patch: tiff-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%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} -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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.9.1-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.9.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.9.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 13 2024 Fabio Valentini - 0.9.1-1 +- Update to version 0.9.1; Fixes RHBZ#2258272 + +* Sat Aug 12 2023 Kalev Lember - 0.9.0-1 +- Update to version 0.9.0; Fixes RHBZ#2138521 + +* Tue Aug 08 2023 Kalev Lember - 0.8.1-1 +- Update to version 0.8.1 + +* Tue Aug 08 2023 Kalev Lember - 0.7.3-4 +- Re-generate packaging with rust2rpm 24 + +* Sat Jul 22 2023 Fedora Release Engineering - 0.7.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 0.7.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Aug 21 2022 Fabio Valentini - 0.7.3-1 +- Update to version 0.7.3; Fixes RHBZ#1964672 + +* Tue Aug 09 2022 Fabio Valentini - 0.6.1-6 +- Bump miniz_oxide from 0.4.1 to 0.5. + +* Sat Jul 23 2022 Fedora Release Engineering - 0.6.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.6.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.6.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Dec 12 2020 Fabio Valentini - 0.6.1-1 +- Update to version 0.6.1. +- Fixes RHBZ#1907077 + +* Sat Nov 07 2020 Fabio Valentini - 0.6.0-1 +- Update to version 0.6.0. +- Fixes RHBZ#1868785 + +* Sat Aug 01 2020 Fedora Release Engineering - 0.5.0-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jun 11 2020 Josh Stone - 0.5.0-1 +- Update to 0.5.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jan 16 2020 Josh Stone - 0.4.0-1 +- Update to 0.4.0 + +* Fri Nov 22 2019 Josh Stone - 0.3.1-2 +- Bump to num-derive 0.3 + +* Sun Sep 01 20:58:56 CEST 2019 Igor Gnatenko - 0.3.1-1 +- Update to 0.3.1 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 23 10:28:28 CEST 2019 Igor Gnatenko - 0.2.2-2 +- Regenerate + +* Fri Mar 15 2019 Igor Gnatenko - 0.2.2-1 +- Initial package + +## END: Generated by rpmautospec