initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 7 years ago
parent f9000d9f14
commit 7eb73b5c60

1
.gitignore vendored

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

@ -0,0 +1 @@
SHA512 (lzma-sys-0.1.9.crate) = 8ec690a9b8e37b2c5c4554b8ad70362d56fd817c5a18ed9ce0515535b4c1ad9ea2ccc59e912a638db384a46f0e0f05f3931e58f8f82687f19a1dac4dce4e6936
Loading…
Cancel
Save