parent
f9000d9f14
commit
7eb73b5c60
@ -0,0 +1 @@
|
||||
/lzma-sys-0.1.9.crate
|
@ -0,0 +1,67 @@
|
||||
# Generated by rust2rpm
|
||||
%bcond_without check
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global crate lzma-sys
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 0.1.9
|
||||
Release: 1%{?dist}
|
||||
Summary: Raw bindings to liblzma
|
||||
|
||||
# https://github.com/alexcrichton/xz2-rs/pull/23
|
||||
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(filetime) >= 0.1.0 with crate(filetime) < 0.2.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-*
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%{cargo_registry}/%{crate}-%{version}/
|
||||
|
||||
%changelog
|
||||
* Sat Jan 13 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.9-1
|
||||
- Initial package
|
Loading…
Reference in new issue