Initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel10
Igor Gnatenko 6 years ago
parent 96ce5f00fd
commit 9ef6dd5430
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

1
.gitignore vendored

@ -0,0 +1 @@
/hex-literal-0.2.0.crate

@ -0,0 +1,71 @@
# Generated by rust2rpm
%bcond_with check
%global debug_package %{nil}
%global crate hex-literal
Name: rust-%{crate}
Version: 0.2.0
Release: 1%{?dist}
Summary: Procedural macro for converting hexadecimal string
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/hex-literal
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(hex-literal-impl/default) >= 0.2.0 with crate(hex-literal-impl/default) < 0.3.0)
BuildRequires: (crate(proc-macro-hack/default) >= 0.5.0 with crate(proc-macro-hack/default) < 0.6.0)
%global _description \
Procedural macro for converting hexadecimal string to byte array at compile\
time.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE-APACHE LICENSE-MIT
%{cargo_registry}/%{crate}-%{version}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages
which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Sat Apr 27 19:54:17 EEST 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.2.0-1
- Initial package

@ -0,0 +1 @@
SHA512 (hex-literal-0.2.0.crate) = 9450adbe5d46ed21a3d40107f87f2646ade97b3c8dafc9093e8c9133747f03b17fe6c37afa411e5f721e73df81912c1e2edd1dd3e1b61d505671cf372cda6e50

@ -0,0 +1,5 @@
---
standard-inventory-qcow2:
qemu:
# `cargo test` usually eats more than 1G.
m: 4G

@ -0,0 +1,13 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "https://src.fedoraproject.org/tests/rust.git"
dest: rust
tests:
- rust/cargo-test
environment:
pkg: rust-hex-literal
Loading…
Cancel
Save