From ce5f386993ea070fc604857f00fa96ad0271f353 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 18 May 2023 17:57:00 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 -- ...ata.diff => colored-fix-metadata-auto.diff | 2 +- rust-colored.spec | 47 +++++++++---------- 3 files changed, 22 insertions(+), 30 deletions(-) delete mode 100644 README.md rename colored-fix-metadata.diff => colored-fix-metadata-auto.diff (79%) diff --git a/README.md b/README.md deleted file mode 100644 index ef5ae38..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-colored - -The rust-colored package \ No newline at end of file diff --git a/colored-fix-metadata.diff b/colored-fix-metadata-auto.diff similarity index 79% rename from colored-fix-metadata.diff rename to colored-fix-metadata-auto.diff index cd78422..fd7390b 100644 --- a/colored-fix-metadata.diff +++ b/colored-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- colored-2.0.0/Cargo.toml 2020-07-14T06:26:13+00:00 -+++ colored-2.0.0/Cargo.toml 2020-11-30T20:53:37.205056+00:00 ++++ colored-2.0.0/Cargo.toml 2023-05-18T15:53:58.450468+00:00 @@ -33,7 +33,3 @@ [features] diff --git a/rust-colored.spec b/rust-colored.spec index cbf592f..0e9b2c0 100644 --- a/rust-colored.spec +++ b/rust-colored.spec @@ -1,32 +1,25 @@ -# Generated by rust2rpm 16 -# * rspec is not packaged +# Generated by rust2rpm 24 +# * tests are not compatible with a stable version of rspec %bcond_with check %global debug_package %{nil} %global crate colored -Name: rust-%{crate} +Name: rust-colored Version: 2.0.0 Release: %autorelease Summary: Most simple way to add colors in your terminal -# Upstream license specification: MPL-2.0 -License: MPLv2.0 +License: MPL-2.0 URL: https://crates.io/crates/colored Source: %{crates_source} -# Initial patched metadata -# * No windows -Patch0: colored-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: colored-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Most simple way to add colors in your terminal.} +The most simple way to add colors in your terminal.} %description %{_description} @@ -36,13 +29,14 @@ 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 CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,11 +44,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_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+no-color-devel Summary: %{summary} @@ -62,14 +56,15 @@ BuildArch: noarch %description -n %{name}+no-color-devel %{_description} -This package contains library source intended for building other packages -which use "no-color" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "no-color" feature of the "%{crate}" crate. %files -n %{name}+no-color-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 +# remove executable bit from source files find -type f -executable -exec chmod -v -x '{}' + %cargo_prep