Adapt to new packaging

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

@ -1,11 +1,12 @@
# Generated by rust2rpm
%bcond_without check
# * Tests are run in infrastructure
%bcond_with check
%global crate peg
Name: rust-%{crate}
Version: 0.5.7
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Simple Parsing Expression Grammar (PEG) parser generator
License: MIT
@ -15,21 +16,62 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(quote) >= 0.3.0 with crate(quote) < 0.4.0)
BuildRequires: (crate(quote/default) >= 0.3.0 with crate(quote/default) < 0.4.0)
%description
%global _description \
A simple Parsing Expression Grammar (PEG) parser generator.
%description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate}
%{summary}.
%files -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/rust-peg
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
A simple Parsing Expression Grammar (PEG) parser generator.
%description devel %{_description}
This package contains library source intended for building other packages
which use %{crate} from crates.io.
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/bootstrap.sh
%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
%package -n %{name}+trace-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+trace-devel %{_description}
This package contains library source intended for building other packages
which use "trace" feature of "%{crate}" crate.
%files -n %{name}+trace-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
@ -46,18 +88,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files
%license LICENSE
%doc README.md
%{_bindir}/rust-peg
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/bootstrap.sh
%changelog
* Sat Nov 17 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.7-2
- Adapt to new packaging
* Sun Oct 07 2018 Josh Stone <jistone@redhat.com> - 0.5.7-1
- Update to 0.5.7

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