From 9e479eefe84834b5f4e934901b42de9d49583d54 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 18:07:43 +0300 Subject: [PATCH] import rust-weezl-0.1.8-4.el10 --- .gitignore | 1 + .rust-weezl.metadata | 1 + SOURCES/rust2rpm.toml | 4 + SOURCES/weezl-fix-metadata.diff | 31 +++++ SPECS/rust-weezl.spec | 220 ++++++++++++++++++++++++++++++++ 5 files changed, 257 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-weezl.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SOURCES/weezl-fix-metadata.diff create mode 100644 SPECS/rust-weezl.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a6d1052 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/weezl-0.1.8.crate diff --git a/.rust-weezl.metadata b/.rust-weezl.metadata new file mode 100644 index 0000000..fab719b --- /dev/null +++ b/.rust-weezl.metadata @@ -0,0 +1 @@ +0bbd125cee850fb4197467d7623b37ab471d9a12 SOURCES/weezl-0.1.8.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..21c43f6 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["doc"] +comments = ["files needed for encode/decode tests are not included in published crates"] + diff --git a/SOURCES/weezl-fix-metadata.diff b/SOURCES/weezl-fix-metadata.diff new file mode 100644 index 0000000..af0943d --- /dev/null +++ b/SOURCES/weezl-fix-metadata.diff @@ -0,0 +1,31 @@ +--- weezl-0.1.8/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ weezl-0.1.8/Cargo.toml 2024-09-15T05:35:19.687052+00:00 +@@ -61,19 +61,11 @@ + name = "implicit_reset" + required-features = ["std"] + +-[[bench]] +-name = "msb8" +-harness = false +-required-features = ["std"] +- + [dependencies.futures] + version = "0.3.12" + features = ["std"] + optional = true + default-features = false +- +-[dev-dependencies.criterion] +-version = "0.3.1" + + [dev-dependencies.tokio] + version = "1" +@@ -87,7 +79,7 @@ + default-features = false + + [dev-dependencies.tokio-util] +-version = "0.6.2" ++version = "0.7.7" + features = ["compat"] + default-features = false + diff --git a/SPECS/rust-weezl.spec b/SPECS/rust-weezl.spec new file mode 100644 index 0000000..5e165f9 --- /dev/null +++ b/SPECS/rust-weezl.spec @@ -0,0 +1,220 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 4; + 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 26 +%bcond_without check + +%global crate weezl + +Name: rust-weezl +Version: 0.1.8 +Release: %autorelease +Summary: Fast LZW compression and decompression + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/weezl +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +# * Update the tokio-util dev-dependency to 0.7.x +# (https://github.com/image-rs/weezl/pull/44) +Patch: weezl-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Fast LZW compression and decompression.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# MIT OR Apache-2.0 +License: MIT OR Apache-2.0 +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE-APACHE +%license LICENSE-MIT +%license LICENSE.dependencies +%doc Changes.md +%doc README.md +%{_bindir}/lzw + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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 + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+async-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+async-devel %{_description} + +This package contains library source intended for building other packages which +use the "async" feature of the "%{crate}" crate. + +%files -n %{name}+async-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+futures-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-devel %{_description} + +This package contains library source intended for building other packages which +use the "futures" feature of the "%{crate}" crate. + +%files -n %{name}+futures-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies + +%install +%cargo_install + +%if %{with check} +%check +# * files needed for encode/decode tests are not included in published crates +%cargo_test -- --doc +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.1.8-4 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sun Sep 15 2024 Benjamin A. Beasley - 0.1.8-4 +- Update the tokio-util dev-dependency to 0.7.x + +* Sat Jul 20 2024 Fedora Release Engineering - 0.1.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu May 23 2024 Fabio Valentini - 0.1.8-2 +- Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces + +* Tue Jan 30 2024 Fabio Valentini - 0.1.8-1 +- Update to version 0.1.8; Fixes RHBZ#2259502 + +* Sat Jan 27 2024 Fedora Release Engineering - 0.1.7-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Aug 07 2023 Fabio Valentini - 0.1.7-6 +- Regenerate with rust2rpm v24 + +* Sat Jul 22 2023 Fedora Release Engineering - 0.1.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun Feb 05 2023 Fabio Valentini - 0.1.7-4 +- Rebuild for fixed frame pointer compiler flags in Rust RPM macros + +* Sat Jan 21 2023 Fedora Release Engineering - 0.1.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jul 18 2022 Fabio Valentini - 0.1.7-1 +- Update to version 0.1.7; Fixes RHBZ#2077517 + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.1.5-5 +- Rebuild with package notes + +* Sat Jan 22 2022 Fedora Release Engineering - 0.1.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sat Aug 07 2021 Fabio Valentini - 0.1.5-3 +- Rebuild with crossbeam-deque 0.8.1 / 0.7.4 for CVE-2021-32810 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Apr 21 2021 Fabio Valentini - 0.1.5-1 +- Update to version 0.1.5. +- Fixes RHBZ#1950696 + +* Thu Mar 04 2021 Fabio Valentini - 0.1.4-1 +- Update to version 0.1.4. + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Nov 11 2020 Fabio Valentini - 0.1.3-1 +- Update to version 0.1.3. +- Fixes RHBZ#1896510 + +* Fri Oct 23 2020 Fabio Valentini - 0.1.2-1 +- Update to version 0.1.2. + +* Thu Oct 01 2020 Fabio Valentini - 0.1.0-1 +- Initial package + +## END: Generated by rpmautospec