Adapt to new packaging

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

@ -7,37 +7,55 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 1.5.1 Version: 1.5.1
Release: 5%{?dist} Release: 6%{?dist}
Summary: Bindless library for manipulating terminals Summary: Bindless library for manipulating terminals
License: MIT License: MIT
URL: https://crates.io/crates/termion URL: https://crates.io/crates/termion
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source: %{crates_source}
# Initial patched metadata # Initial patched metadata
# * No redox # * No redox
Patch0: termion-1.5.1-fix-metadata.diff Patch0: termion-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(libc/default) >= 0.2.8 with crate(libc/default) < 0.3.0)
BuildRequires: (crate(libc) >= 0.2.8 with crate(libc) < 0.3.0)
%description %global _description \
%{summary}. A bindless library for manipulating terminals.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
A bindless library for manipulating terminals.
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/logo.svg
%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 This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep %cargo_prep
%build %build
@ -51,12 +69,6 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/logo.svg
%changelog %changelog
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-5 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

@ -1,5 +1,5 @@
--- termion-1.5.1/Cargo.toml 2017-08-04T00:12:31+02:00 --- termion-1.5.1/Cargo.toml 2017-08-04T00:12:31+02:00
+++ termion-1.5.1/Cargo.toml 2017-11-19T10:22:50.337549+01:00 +++ termion-1.5.1/Cargo.toml 2019-03-09T15:32:09.243636+01:00
@@ -11,7 +11,3 @@ @@ -11,7 +11,3 @@
[target.'cfg(not(target_os = "redox"))'.dependencies] [target.'cfg(not(target_os = "redox"))'.dependencies]

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