initial import

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

1
.gitignore vendored

@ -0,0 +1 @@
/rustc-test-0.2.0.crate

@ -0,0 +1,62 @@
# Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}
%global crate rustc-test
Name: rust-%{crate}
Version: 0.2.0
Release: 1%{?dist}
Summary: Fork of Rusts `test` crate that doesnt require unstable language features
# https://github.com/servo/rustc-test/issues/5
License: MIT or ASL 2.0
URL: https://crates.io/crates/rustc-test
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(getopts) >= 0.2.0 with crate(getopts) < 0.3.0)
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
BuildRequires: (crate(rustc-serialize) >= 0.3.0 with crate(rustc-serialize) < 0.4.0)
BuildRequires: (crate(term) >= 0.4.0 with crate(term) < 0.5.0)
BuildRequires: (crate(time) >= 0.1.0 with crate(time) < 0.2.0)
# [build-dependencies]
BuildRequires: (crate(rustc_version) >= 0.2.1 with crate(rustc_version) < 0.3.0)
%description
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
A fork of Rusts `test` crate that doesnt require unstable language features.
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
%cargo_test
%endif
%files devel
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Wed Jul 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.0-1
- Initial package

@ -0,0 +1 @@
SHA512 (rustc-test-0.2.0.crate) = 909b3432a739b8bcb36623445f88156d18c1c12905abec8a46e7c862aaff9e35b35d1422ca8bd0e6995b6bd00a52a6b0e02ab8babb0e6d936a43e7b7da95e357
Loading…
Cancel
Save