Blob Blame Raw
# Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}

%global crate miniz_oxide

Name:           rust-%{crate}
Version:        0.1.2
Release:        2%{?dist}
Summary:        DEFLATE compression and decompression library rewritten in Rust based on miniz

# https://github.com/Frommi/miniz_oxide/issues/15
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
# [dependencies]
BuildRequires:  (crate(adler32) >= 1.0.2 with crate(adler32) < 2.0.0)
BuildRequires:  (crate(libc) >= 0.2.22 with crate(libc) < 0.3.0)

%description
%{summary}.

%package        devel
Summary:        %{summary}
BuildArch:      noarch

%description    devel
DEFLATE compression and decompression library rewritten in Rust based on miniz.

This package contains library source intended for building other packages
which use %{crate} from crates.io.

%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

%files          devel
%doc Readme.md
%{cargo_registry}/%{crate}-%{version}/

%changelog
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Jan 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.2-1
- Initial package