Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent a91f8f3c11
commit 06b1d73fed
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 pad
Name: rust-%{crate}
Version: 0.1.5
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Library for padding strings at runtime
License: MIT
@ -16,21 +17,38 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(unicode-width) >= 0.1.1 with crate(unicode-width) < 0.2.0)
BuildRequires: (crate(unicode-width/default) >= 0.1.1 with crate(unicode-width/default) < 0.2.0)
%description
%{summary}.
%global _description \
Library for padding strings at runtime.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Library for padding strings at runtime.
%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 LICENCE
%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
@ -47,12 +65,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license LICENCE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Wed Nov 14 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.5-3
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

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