Adapt to new packaging

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

@ -1,12 +1,13 @@
--- iso8601-0.2.0/Cargo.toml 1970-01-01T01:00:00+01:00 --- iso8601-0.2.0/Cargo.toml 1970-01-01T01:00:00+01:00
+++ iso8601-0.2.0/Cargo.toml 2017-11-20T16:18:15.776636+01:00 +++ iso8601-0.2.0/Cargo.toml 2018-11-14T11:45:22.909557+01:00
@@ -20,9 +20,6 @@ @@ -20,10 +20,6 @@
readme = "README.md" readme = "README.md"
license = "MIT" license = "MIT"
repository = "https://github.com/badboy/iso8601" repository = "https://github.com/badboy/iso8601"
-[dependencies.clippy] -[dependencies.clippy]
-version = ">0.0.0" -version = ">0.0.0"
-optional = true -optional = true
-
[dependencies.nom] [dependencies.nom]
version = "3.2" version = "3.2"

@ -1,12 +1,13 @@
# Generated by rust2rpm # Generated by rust2rpm
%bcond_without check # * Tests are run in infrastructure
%bcond_with check
%global debug_package %{nil} %global debug_package %{nil}
%global crate iso8601 %global crate iso8601
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.2.0 Version: 0.2.0
Release: 6%{?dist} Release: 7%{?dist}
Summary: Parsing ISO8601 dates using nom Summary: Parsing ISO8601 dates using nom
License: MIT License: MIT
@ -14,26 +15,43 @@ URL: https://crates.io/crates/iso8601
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata # Initial patched metadata
# * No clippy # * No clippy
Patch0: iso8601-0.2.0-fix-metadata.diff Patch0: iso8601-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(nom/default) >= 3.2.0 with crate(nom/default) < 4.0.0)
BuildRequires: (crate(nom) >= 3.2.0 with crate(nom) < 4.0.0)
%description %global _description \
%{summary}. Parsing ISO8601 dates using nom.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Parsing ISO8601 dates using nom.
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 "%{crate}" crate.
%files devel
%license LICENSE
%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 %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -50,13 +68,10 @@ 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}/Makefile
%changelog %changelog
* Wed Nov 14 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.0-7
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-6 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - 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-iso8601
Loading…
Cancel
Save