parent
8691e57ae7
commit
3dc4c229fb
@ -0,0 +1 @@
|
|||||||
|
/miniz_oxide-0.1.2.crate
|
@ -0,0 +1,59 @@
|
|||||||
|
# Generated by rust2rpm
|
||||||
|
%bcond_without check
|
||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
%global crate miniz_oxide
|
||||||
|
|
||||||
|
Name: rust-%{crate}
|
||||||
|
Version: 0.1.2
|
||||||
|
Release: 1%{?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
|
||||||
|
* Wed Jan 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.2-1
|
||||||
|
- Initial package
|
Loading…
Reference in new issue