From 4ecf8c8b0e36243a448b6b10b4fe9348bc726401 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 12 Apr 2023 19:01:08 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 -- rust-shared_child.spec | 40 ++++++++----------- ...iff => shared_child-fix-metadata-auto.diff | 2 +- 3 files changed, 18 insertions(+), 27 deletions(-) delete mode 100644 README.md rename shared_child-fix-metadata.diff => shared_child-fix-metadata-auto.diff (83%) diff --git a/README.md b/README.md deleted file mode 100644 index 5f3236d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-shared_child - -The rust-shared_child package \ No newline at end of file diff --git a/rust-shared_child.spec b/rust-shared_child.spec index c8eea90..ce0ab6c 100644 --- a/rust-shared_child.spec +++ b/rust-shared_child.spec @@ -1,33 +1,27 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate shared_child -Name: rust-%{crate} +Name: rust-shared_child Version: 0.3.4 Release: %autorelease Summary: Library for using child processes from multiple threads -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/shared_child Source: %{crates_source} -# Initial patched metadata -# * No windows -Patch0: shared_child-fix-metadata.diff -# https://github.com/oconnor663/shared_child.rs/issues/16 -Patch0001: 0001-Avoid-using-python-in-the-tests.patch - -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif +# Automatically generated patch to strip foreign dependencies +Patch: shared_child-fix-metadata-auto.diff +# * replace usage of /usr/bin/python with simple /usr/bin/sleep: +# https://github.com/oconnor663/shared_child.rs/issues/16 +Patch: 0001-Avoid-using-python-in-the-tests.patch -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Library for using child processes from multiple threads.} +A library for using child processes from multiple threads.} %description %{_description} @@ -37,13 +31,13 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,11 +45,11 @@ 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. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/shared_child-fix-metadata.diff b/shared_child-fix-metadata-auto.diff similarity index 83% rename from shared_child-fix-metadata.diff rename to shared_child-fix-metadata-auto.diff index 3be6aea..2ceea12 100644 --- a/shared_child-fix-metadata.diff +++ b/shared_child-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- shared_child-0.3.4/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ shared_child-0.3.4/Cargo.toml 2019-09-08T13:57:19.508291+00:00 ++++ shared_child-0.3.4/Cargo.toml 2023-04-12T16:58:16.048194+00:00 @@ -22,6 +22,3 @@ repository = "https://github.com/oconnor663/shared_child.rs" [target."cfg(not(windows))".dependencies.libc]