From 98d1abd949ecaeebe3dd233b63cf5423aa9cf29b Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 12 Apr 2023 20:52:05 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 --- rust-normalize-line-endings.spec | 34 +++++++++++++------------------- 2 files changed, 14 insertions(+), 23 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index fc00ede..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-normalize-line-endings - -The rust-normalize-line-endings package \ No newline at end of file diff --git a/rust-normalize-line-endings.spec b/rust-normalize-line-endings.spec index 929cb2c..0fbd611 100644 --- a/rust-normalize-line-endings.spec +++ b/rust-normalize-line-endings.spec @@ -1,29 +1,23 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate normalize-line-endings -Name: rust-%{crate} +Name: rust-normalize-line-endings Version: 0.3.0 Release: %autorelease Summary: Takes an iterator over chars and returns a new iterator with all line endings -# Upstream license specification: Apache-2.0 -License: ASL 2.0 +License: Apache-2.0 URL: https://crates.io/crates/normalize-line-endings Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Takes an iterator over chars and returns a new iterator with all line endings -(\r, \n, or \r\n) as \n.} +Takes an iterator over chars and returns a new iterator with all line +endings (\r, \n, or \r\n) as \n.} %description %{_description} @@ -33,13 +27,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} @@ -47,11 +41,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