Initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-12-20 12:12:06 +01:00
parent d78dcf430f
commit 4c2f38d145
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
6 changed files with 107 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/jql-2.4.7.crate

86
rust-jql.spec Normal file
View File

@ -0,0 +1,86 @@
# Generated by rust2rpm 12
%bcond_without check
%global crate jql
Name: rust-%{crate}
Version: 2.4.7
Release: 1%{?dist}
Summary: JSON query language CLI tool
# Upstream license specification: None
License: MIT
URL: https://crates.io/crates/jql
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
JSON query language CLI tool.}
%description %{_description}
%if ! %{__cargo_skip_build}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE-MIT
%doc README.md
%{_bindir}/jql
%endif
%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-MIT
%doc README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Fri Dec 20 11:43:01 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.4.7-1
- Initial package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (jql-2.4.7.crate) = b53e6e5183ce74cd6b85ce267c056575008de002da38198a554ecd289f3b07a600aedeba1c62df6dab8fb372fe23e8f676ff36e4bab70a42446429f076ce1c40

1
tests/.fmf/version Normal file
View File

@ -0,0 +1 @@
1

5
tests/provision.fmf Normal file
View File

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

13
tests/tests.yml Normal file
View File

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