# Generated by rust2rpm # * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} %global crate miniz_oxide Name: rust-%{crate} Version: 0.2.1 Release: 1%{?dist} Summary: DEFLATE compression and decompression library rewritten in Rust based on miniz License: MIT URL: https://crates.io/crates/miniz_oxide Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(adler32/default) >= 1.0.2 with crate(adler32/default) < 2.0.0) %global _description \ 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}/ %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}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check # miniz.c is not included in distribution %cargo_test || : %endif %changelog * 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