# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate lzma-sys Name: rust-%{crate} Version: 0.1.11 Release: 1%{?dist} Summary: Raw bindings to liblzma # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/lzma-sys Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) # [build-dependencies] BuildRequires: (crate(cc) >= 1.0.0 with crate(cc) < 2.0.0) BuildRequires: (crate(pkg-config) >= 0.3.0 with crate(pkg-config) < 0.4.0) BuildRequires: pkgconfig(liblzma) %description %{summary}. %package devel Summary: %{summary} Requires: pkgconfig(liblzma) BuildArch: noarch %description devel Raw bindings to liblzma which contains an implementation of LZMA and xz stream encoding/decoding. High level Rust bindings are available in the `xz2` crate. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 # No bundled libs rm -vrf xz-* config.h %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %license LICENSE-MIT LICENSE-APACHE %{cargo_registry}/%{crate}-%{version}/ %changelog * Thu Oct 11 2018 Josh Stone - 0.1.11-1 - Update to 0.1.11 * Sat Jul 14 2018 Fedora Release Engineering - 0.1.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 09 2018 Igor Gnatenko - 0.1.10-1 - Update to 0.1.10 * Wed Apr 25 2018 Igor Gnatenko - 0.1.9-3 - Bump filetime to 0.2 * Fri Feb 09 2018 Fedora Release Engineering - 0.1.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 13 2018 Igor Gnatenko - 0.1.9-1 - Initial package