From c8bb18c3892989a2bf5f9ccbeacfb4531d312606 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:21:46 +0300 Subject: [PATCH] import rust-miniz_oxide0.7-0.7.4-1.el10 --- .gitignore | 1 + .rust-miniz_oxide0.7.metadata | 1 + SOURCES/rust2rpm.toml | 8 ++ SPECS/rust-miniz_oxide0.7.spec | 136 +++++++++++++++++++++++++++++++++ 4 files changed, 146 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-miniz_oxide0.7.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-miniz_oxide0.7.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d855b66 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/miniz_oxide-0.7.4.crate diff --git a/.rust-miniz_oxide0.7.metadata b/.rust-miniz_oxide0.7.metadata new file mode 100644 index 0000000..6c30c03 --- /dev/null +++ b/.rust-miniz_oxide0.7.metadata @@ -0,0 +1 @@ +5b1ebdf50bd09b3150e1bdfc3e04196062b83565 SOURCES/miniz_oxide-0.7.4.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_oxide0.7.spec b/SPECS/rust-miniz_oxide0.7.spec new file mode 100644 index 0000000..29c1358 --- /dev/null +++ b/SPECS/rust-miniz_oxide0.7.spec @@ -0,0 +1,136 @@ +## 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_oxide0.7 +Version: 0.7.4 +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.7.4-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Wed Sep 25 2024 Fabio Valentini - 0.7.4-1 +- Initial import (miniz_oxide 0.7 compat package) +## END: Generated by rpmautospec