diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a3660eb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/miniz_oxide-0.5.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index 10bc54b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-miniz_oxide0.5 - -The rust-miniz_oxide0.5 package diff --git a/rust-miniz_oxide0.5.spec b/rust-miniz_oxide0.5.spec new file mode 100644 index 0000000..eb101f6 --- /dev/null +++ b/rust-miniz_oxide0.5.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate miniz_oxide + +Name: rust-miniz_oxide0.5 +Version: 0.5.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: 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 + +%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..55dd3f5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (miniz_oxide-0.5.4.crate) = 589dac16ca9c2f94e6fa92b68bcf51d140f46562cbb3a1b791b75c59feae51da5ec16042604bbd6bcb7d7f0c7f75e98ea1af8cf42d177133a5eaa86429cf3114