From 14a391ae341ba6c3c105d21116caefae7f7f6306 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 23 Jun 2023 21:21:20 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 --- rust-autocfg.spec | 20 +++++++++----------- 2 files changed, 9 insertions(+), 14 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 6616b81..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-autocfg - -The rust-autocfg package \ No newline at end of file diff --git a/rust-autocfg.spec b/rust-autocfg.spec index 2a08b2e..6238846 100644 --- a/rust-autocfg.spec +++ b/rust-autocfg.spec @@ -1,22 +1,19 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate autocfg -Name: rust-%{crate} +Name: rust-autocfg Version: 1.1.0 Release: %autorelease Summary: Automatic cfg for Rust compiler features -# Upstream license specification: Apache-2.0 OR MIT -License: ASL 2.0 or MIT +License: Apache-2.0 OR MIT URL: https://crates.io/crates/autocfg Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Automatic cfg for Rust compiler features.} @@ -33,9 +30,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +45,7 @@ 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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1