From 6e8d7ad44af24f11a65c3eb9ad5c69f701481f6f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 13 Jul 2023 12:41:55 +0200 Subject: [PATCH] Initial import (miniz_oxide 0.6 compat package) --- .gitignore | 1 + README.md | 3 -- rust-miniz_oxide0.6.spec | 96 ++++++++++++++++++++++++++++++++++++++++ rust2rpm.conf | 8 ++++ sources | 1 + 5 files changed, 106 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-miniz_oxide0.6.spec create mode 100644 rust2rpm.conf create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..657a96e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/miniz_oxide-0.6.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index 8807987..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-miniz_oxide0.6 - -The rust-miniz_oxide0.6 package diff --git a/rust-miniz_oxide0.6.spec b/rust-miniz_oxide0.6.spec new file mode 100644 index 0000000..43bb47c --- /dev/null +++ b/rust-miniz_oxide0.6.spec @@ -0,0 +1,96 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate miniz_oxide + +Name: rust-miniz_oxide0.6 +Version: 0.6.2 +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: rust-packaging >= 21 + +%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}+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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..f49a81e --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,8 @@ +[DEFAULT] +unwanted-features = + alloc + compiler_builtins + core + simd-adler32 + rustc-dep-of-std + simd diff --git a/sources b/sources new file mode 100644 index 0000000..cf3eaf4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (miniz_oxide-0.6.2.crate) = 250782e214572acdd11df87c2788cd5f78e8388d9b285d0a850918219678e262e8b9905cc88728f5b70d13920ef9d19c43d243dad8fbcc18f8c8462662ce1419