From 5989958107e836608cb35bc6a84fff2ec08c0425 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 26 Oct 2020 23:03:43 +0100 Subject: [PATCH] initial import (miniz_oxide 0.3 compat package) --- .gitignore | 4 +++ README.md | 3 -- rust-miniz_oxide0.3.spec | 75 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-miniz_oxide0.3.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2033de2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/miniz_oxide-0.3.7.crate diff --git a/README.md b/README.md deleted file mode 100644 index 37c2504..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-miniz_oxide0.3 - -The rust-miniz_oxide0.3 package diff --git a/rust-miniz_oxide0.3.spec b/rust-miniz_oxide0.3.spec new file mode 100644 index 0000000..701629b --- /dev/null +++ b/rust-miniz_oxide0.3.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate miniz_oxide + +Name: rust-%{crate}0.3 +Version: 0.3.7 +Release: 1%{?dist} +Summary: DEFLATE compression and decompression library rewritten in Rust based on miniz + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/miniz_oxide +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%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 "%{crate}" crate. + +%files devel +%license LICENSE +%doc Readme.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Mon Oct 26 2020 Fabio Valentini - 0.3.7-1 +- Initial compat package for miniz_oxide 0.3 diff --git a/sources b/sources new file mode 100644 index 0000000..ee5b551 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (miniz_oxide-0.3.7.crate) = d4eff239f8d6e947b94619e80fe03ed32aabd1a6393f63145d70ed7f08c51c45c7261d8157bf61c78d1637ea1f71ef15f9813ec733efd8afe6aa14810888718e