From c7c59852f5e6fd357721dbb04251179da40f7268 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:21:35 +0300 Subject: [PATCH] import rust-miniz_oxide-0.8.0-1.el10 --- .gitignore | 1 + .rust-miniz_oxide.metadata | 1 + SOURCES/rust2rpm.toml | 8 ++ SPECS/rust-miniz_oxide.spec | 240 ++++++++++++++++++++++++++++++++++++ 4 files changed, 250 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-miniz_oxide.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-miniz_oxide.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f4e6b87 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/miniz_oxide-0.8.0.crate diff --git a/.rust-miniz_oxide.metadata b/.rust-miniz_oxide.metadata new file mode 100644 index 0000000..157e3c0 --- /dev/null +++ b/.rust-miniz_oxide.metadata @@ -0,0 +1 @@ +27fafc10fde1f321b6a0dea0c0c68d2b5afe8a2c SOURCES/miniz_oxide-0.8.0.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..4ee8242 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,8 @@ +[features] +hide = [ + "alloc", + "compiler_builtins", + "core", + "rustc-dep-of-std", +] + diff --git a/SPECS/rust-miniz_oxide.spec b/SPECS/rust-miniz_oxide.spec new file mode 100644 index 0000000..b1daed8 --- /dev/null +++ b/SPECS/rust-miniz_oxide.spec @@ -0,0 +1,240 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate miniz_oxide + +Name: rust-miniz_oxide +Version: 0.8.0 +Release: %autorelease +Summary: DEFLATE compression and decompression library rewritten in Rust based on miniz + +License: MIT OR Zlib OR Apache-2.0 +URL: https://crates.io/crates/miniz_oxide +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +DEFLATE compression and decompression library rewritten in Rust based on +miniz.} + +%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 +%license %{crate_instdir}/LICENSE-APACHE.md +%license %{crate_instdir}/LICENSE-MIT.md +%license %{crate_instdir}/LICENSE-ZLIB.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}+simd-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simd-devel %{_description} + +This package contains library source intended for building other packages which +use the "simd" feature of the "%{crate}" crate. + +%files -n %{name}+simd-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+simd-adler32-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simd-adler32-devel %{_description} + +This package contains library source intended for building other packages which +use the "simd-adler32" feature of the "%{crate}" crate. + +%files -n %{name}+simd-adler32-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 + +%package -n %{name}+with-alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+with-alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "with-alloc" feature of the "%{crate}" crate. + +%files -n %{name}+with-alloc-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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.8.0-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Mon Sep 23 2024 Fabio Valentini - 0.8.0-1 +- Update to version 0.8.0; Fixes RHBZ#2303762 + +* Sat Jul 20 2024 Fedora Release Engineering - 0.7.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 21 2024 Fabio Valentini - 0.7.4-1 +- Update to version 0.7.4; Fixes RHBZ#2292803 + +* Fri May 24 2024 Benjamin A. Beasley - 0.7.3-1 +- Update to version 0.7.3; Fixes RHBZ#2281024 + +* Sun Feb 04 2024 Fabio Valentini - 0.7.2-1 +- Update to version 0.7.2; Fixes RHBZ#2262565 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.7.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 27 2023 Fabio Valentini - 0.7.1-3 +- Enable feature for simd-accelerated adler32 hash + +* Fri Jul 21 2023 Fedora Release Engineering - 0.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Fabio Valentini - 0.7.1-1 +- Update to version 0.7.1; Fixes RHBZ#2120116 + +* Thu Mar 30 2023 Fabio Valentini - 0.6.2-1 +- Update to version 0.6.2 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.5.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Aug 09 2022 Fabio Valentini - 0.5.3-1 +- Update to version 0.5.3; Fixes RHBZ#2020449 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.4.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.4.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.4.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Feb 25 2021 Fabio Valentini - 0.4.4-1 +- Update to version 0.4.4. +- Fixes RHBZ#1933081 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.4.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Nov 07 2020 Fabio Valentini - 0.4.3-2 +- Reintroduce accidentally dropped no_extern_crate_alloc feature. + +* Mon Oct 26 2020 Fabio Valentini - 0.4.3-1 +- Update to version 0.4.3. + +* Wed Jul 29 2020 Fedora Release Engineering - 0.3.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jun 10 2020 Josh Stone - 0.3.7-1 +- Update to 0.3.7 + +* Thu Feb 06 2020 Josh Stone - 0.3.6-1 +- Update to 0.3.6 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.3.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Nov 19 2019 Josh Stone - 0.3.5-1 +- Update to 0.3.5 + +* Tue Sep 17 14:50:15 CEST 2019 Igor Gnatenko - 0.3.2-1 +- Update to 0.3.2 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.2.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 22 09:38:31 CEST 2019 Igor Gnatenko - 0.2.1-3 +- Regenerate + +* Sat Feb 02 2019 Fedora Release Engineering - 0.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Jan 23 2019 Josh Stone - 0.2.1-1 +- Update to 0.2.1 + +* Sun Nov 04 2018 Igor Gnatenko - 0.2.0-2 +- Adapt to new packaging + +* Mon Oct 22 2018 Josh Stone - 0.2.0-1 +- Update to 0.2.0 + +* Sat Jul 14 2018 Fedora Release Engineering - 0.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jun 24 2018 Igor Gnatenko - 0.1.3-1 +- Update to 0.1.3 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 10 2018 Igor Gnatenko - 0.1.2-1 +- Initial package + +## END: Generated by rpmautospec