initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 7 years ago
parent 8691e57ae7
commit 3dc4c229fb

1
.gitignore vendored

@ -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

@ -0,0 +1 @@
SHA512 (miniz_oxide-0.1.2.crate) = 66ff845b4b34a7c346006d736cc0588b408453ea0d3b993cacd91598b0e6dded7122a53235d04fe2ba903c7faeb7546529a146c204f99d0d27618c4892617788
Loading…
Cancel
Save