From 9b0b8ff04547c58d61f26fbc70d9e40b4833d238 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Fri, 23 Feb 2024 22:10:04 -0600 Subject: [PATCH] Update to 1.2.0 (rhbz#2262586) Signed-off-by: Michel Lind --- .gitignore | 1 + rust-is_ci.spec | 26 +++++++++++++++++++++----- sources | 2 +- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 8838851..ee623f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /is_ci-1.1.1.crate +/is_ci-1.2.0.crate diff --git a/rust-is_ci.spec b/rust-is_ci.spec index 58d2d68..ace07d2 100644 --- a/rust-is_ci.spec +++ b/rust-is_ci.spec @@ -1,11 +1,10 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check -%global debug_package %{nil} %global crate is_ci Name: rust-is_ci -Version: 1.1.1 +Version: 1.2.0 Release: %autorelease Summary: Super lightweight CI environment checker @@ -13,7 +12,7 @@ License: ISC URL: https://crates.io/crates/is_ci Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Super lightweight CI environment checker. Just tells you if you're in CI @@ -21,6 +20,21 @@ or not without much fuss.} %description %{_description} +%package -n %{crate} +Summary: %{summary} +# FIXME: paste output of %%cargo_license_summary here +License: # FIXME +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc CHANGELOG.md +%doc README.md +%{_bindir}/is_ci + %package devel Summary: %{summary} BuildArch: noarch @@ -49,7 +63,7 @@ use the "default" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires @@ -57,6 +71,8 @@ use the "default" feature of the "%{crate}" crate. %build %cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies %install %cargo_install diff --git a/sources b/sources index 9255a66..6d69f3b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (is_ci-1.1.1.crate) = 89341da9fe86cf4aa5a107f8dfab21020c581e661ea551e4f2e33e39efa21dc0c2e46b2fef08fbe75d16fb1028118971561b1a4e0c351ab7de6125b7102372b6 +SHA512 (is_ci-1.2.0.crate) = 0479117be842723810ae7f641e5e4b5daaa5543655de50c8e465ee600803be78901f0c0893a4953b5ff0b438216aecb479b9e40aa2c78da0655249f127edf2eb