Notification time stamped 2021-11-29 08:01:49 UTC
From 93ba2ff8a8ae9ba1eb63718a283f9b2ff9ecc7a0 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Nov 02 2018 18:02:24 +0000
Subject: Adapt to new packaging
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
---
diff --git a/rust-glob.spec b/rust-glob.spec
index 3da81f3..361b985 100644
--- a/rust-glob.spec
+++ b/rust-glob.spec
@@ -1,14 +1,16 @@
# Generated by rust2rpm
-%bcond_without check
+# * Tests are run in infrastructure
+%bcond_with check
%global debug_package %{nil}
%global crate glob
Name: rust-%{crate}
Version: 0.2.11
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Support for matching file paths against Unix shell style patterns
+# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL:
https://crates.io/crates/glob
Source0:
https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{...
@@ -17,22 +19,39 @@ ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%if %{with check}
-# [dev-dependencies]
-BuildRequires: (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0)
+BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) <
0.4.0)
%endif
-%description
-%{summary}.
+%global _description \
+Support for matching file paths against Unix shell style patterns.
+
+%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
-%description devel
-Support for matching file paths against Unix shell style patterns.
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%license LICENSE-MIT LICENSE-APACHE
+%doc CHANGELOG.md CONTRIBUTING.md 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 %{crate} from crates.io.
+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
@@ -49,12 +68,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
+* Fri Nov 02 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.2.11-8
+- Adapt to new packaging
+
* Sat Jul 14 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.2.11-7
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
@@ -75,4 +92,3 @@ which use %{crate} from crates.io.
* Sun Feb 12 2017 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.2.11-1
- Initial package
-
diff --git a/tests/.fmf/version b/tests/.fmf/version
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/.fmf/version
@@ -0,0 +1 @@
+1
diff --git a/tests/provision.fmf b/tests/provision.fmf
new file mode 100644
index 0000000..503a97c
--- /dev/null
+++ b/tests/provision.fmf
@@ -0,0 +1,5 @@
+---
+standard-inventory-qcow2:
+ qemu:
+ # `cargo test` usually eats more than 1G.
+ m: 4G
diff --git a/tests/tests.yml b/tests/tests.yml
new file mode 100644
index 0000000..9ab6207
--- /dev/null
+++ b/tests/tests.yml
@@ -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-glob
https://src.fedoraproject.org/rpms/rust-glob/c/93ba2ff8a8ae9ba1eb63718a28...