Adapt to new packaging

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

@ -1,12 +1,13 @@
# Generated by rust2rpm
%bcond_without check
# * Tests are run in infrastructure
%bcond_with check
%global debug_package %{nil}
%global crate serde_cbor
Name: rust-%{crate}
Version: 0.9.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: CBOR support for serde
# Upstream license specification: MIT/Apache-2.0
@ -17,28 +18,44 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0)
BuildRequires: (crate(half) >= 1.1.2 with crate(half) < 2.0.0)
BuildRequires: (crate(serde) >= 1.0.14 with crate(serde) < 2.0.0)
BuildRequires: (crate(byteorder/default) >= 1.0.0 with crate(byteorder/default) < 2.0.0)
BuildRequires: (crate(half/default) >= 1.1.2 with crate(half/default) < 2.0.0)
BuildRequires: (crate(serde/default) >= 1.0.14 with crate(serde/default) < 2.0.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(serde_bytes) >= 0.10.0 with crate(serde_bytes) < 0.11.0)
BuildRequires: (crate(serde_derive) >= 1.0.14 with crate(serde_derive) < 2.0.0)
BuildRequires: (crate(serde_bytes/default) >= 0.10.0 with crate(serde_bytes/default) < 0.11.0)
BuildRequires: (crate(serde_derive/default) >= 1.0.14 with crate(serde_derive/default) < 2.0.0)
%endif
%description
%{summary}.
%global _description \
CBOR support for serde.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
CBOR support for serde.
%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-MIT LICENSE-APACHE
%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} -p1
@ -55,12 +72,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Sat Nov 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.0-2
- Adapt to new packaging
* Sat Sep 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.0-1
- Update to 0.9.0

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