From 15a5a2013d2d2bf05ba8dbdea325f0d08a917819 Mon Sep 17 00:00:00 2001 From: Aleksei Bavshin Date: Sun, 17 Dec 2023 15:19:16 -0800 Subject: [PATCH] Update to 0.31.0 (rhbz#2156606) --- .gitignore | 1 + rust-wayland-scanner.spec | 18 ++++++++++-------- rust2rpm.toml | 2 ++ sources | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 44f5cb1..d251578 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /wayland-scanner-0.28.6.crate /wayland-scanner-0.29.4.crate /wayland-scanner-0.29.5.crate +/wayland-scanner-0.31.0.crate diff --git a/rust-wayland-scanner.spec b/rust-wayland-scanner.spec index 0e14c6c..c4ddd58 100644 --- a/rust-wayland-scanner.spec +++ b/rust-wayland-scanner.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate wayland-scanner Name: rust-wayland-scanner -Version: 0.29.5 +Version: 0.31.0 Release: %autorelease Summary: Wayland Scanner for generating rust APIs from XML wayland protocol files @@ -13,13 +13,11 @@ License: MIT URL: https://crates.io/crates/wayland-scanner Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Wayland Scanner for generating rust APIs from XML wayland protocol files. -Intended for use with wayland-sys. You should only need this crate if you are -working on custom wayland protocol extensions. Look at the crate wayland-client -for usable bindings.} +Wayland Scanner for generating rust APIs from XML wayland protocol +files.} %description %{_description} @@ -34,6 +32,7 @@ use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE.txt +%doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ @@ -50,11 +49,14 @@ 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 %cargo_generate_buildrequires +%if %{with check} +echo 'rustfmt' +%endif %build %cargo_build diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..91cdb7f --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[requires] +test = ["rustfmt"] diff --git a/sources b/sources index 5a2aa1b..cb7ace9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wayland-scanner-0.29.5.crate) = 7c2ebee011db8714801a3b3af9552129a502f983fc1737a40a520d2a2de92cf003b9bef24f4b55e2e7ffa0c843fbb77096efeb20606b61e74c2c082fa55a2e6d +SHA512 (wayland-scanner-0.31.0.crate) = 132bd03a836aa4b8395c67eccbfee2019a0cd30b3e6b081618bf209fd60cc9a2e5bdd9b648e0ca09db7ba3b2aef29f2fc5b08353d0b1b60972d9949a63018001