Initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent 8bf5dc7781
commit 06271f61f6
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

1
.gitignore vendored

@ -0,0 +1 @@
/ron-0.5.1.crate

@ -0,0 +1,79 @@
# Generated by rust2rpm
%bcond_with check
%global debug_package %{nil}
%global crate ron
Name: rust-%{crate}
Version: 0.5.1
Release: 1%{?dist}
Summary: Rusty Object Notation
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/ron
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(base64/default) >= 0.10.0 with crate(base64/default) < 0.11.0)
BuildRequires: (crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0)
BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
BuildRequires: (crate(serde/serde_derive) >= 1.0.0 with crate(serde/serde_derive) < 2.0.0)
%if %{with check}
BuildRequires: (crate(serde_bytes/default) >= 0.10.0 with crate(serde_bytes/default) < 0.11.0)
BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
%endif
%global _description \
RON is a simple readable data serialization format that looks similar to Rust\
syntax. It's designed to support all of Serde's data model, so structs, enums,\
tuples, arrays, generic maps, and primitive values.
%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
%doc README.md
%{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 23:09:55 EEST 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.5.1-1
- Initial package

@ -0,0 +1 @@
SHA512 (ron-0.5.1.crate) = 63b0ad38121218ee382f2817a66c9d445449deeb263d4541689601aea45e8e4b2728011e8e33bff6792922860f728f99e2a36d6565dd0077a5cbdc29c5941c69

@ -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-ron
Loading…
Cancel
Save