From 3a1cd1893ef1f965c9eb50bfb93f0534c3102513 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 18 Oct 2023 21:37:31 +0200 Subject: [PATCH] Update to version 3.2.1; Fixes RHBZ#2242770 --- .gitignore | 1 + LICENSE | 21 --------------------- rust-test-case-macros.spec | 11 ++++------- rust2rpm.toml | 2 ++ sources | 2 +- 5 files changed, 8 insertions(+), 29 deletions(-) delete mode 100644 LICENSE create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 2dc3d77..59b90b1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /test-case-macros-2.2.2.crate +/test-case-macros-3.2.1.crate diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 0be739b..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Marcin Sas-SzymaƄski - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/rust-test-case-macros.spec b/rust-test-case-macros.spec index 34197e9..cde7397 100644 --- a/rust-test-case-macros.spec +++ b/rust-test-case-macros.spec @@ -1,21 +1,19 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate test-case-macros Name: rust-test-case-macros -Version: 2.2.2 +Version: 3.2.1 Release: %autorelease Summary: Procedural macro attribute for generating parametrized test cases License: MIT URL: https://crates.io/crates/test-case-macros Source: %{crates_source} -# https://github.com/frondeus/test-case/issues/117 -Source: https://github.com/frondeus/test-case/raw/v%{version}/LICENSE -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Provides #[test_case(...)] procedural macro attribute for generating @@ -62,9 +60,8 @@ use the "with-regex" 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 -cp -pav %{SOURCE1} . %generate_buildrequires %cargo_generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..a687c24 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[package] +summary = "Procedural macro attribute for generating parametrized test cases" diff --git a/sources b/sources index 3f70937..e27178a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (test-case-macros-2.2.2.crate) = 3133c53043834a007d1d60ba2593a4e5b1311a86986010d0144380f970c1ec62389313107822a018e86172a3eec48f2022314cb1489a06a913aaad3cd7723203 +SHA512 (test-case-macros-3.2.1.crate) = 21ad4f69caf795575e4bf04e4ce438d6d47f5878abd4ab0094c53cf56cef262ba01951e9acaf4bf3ddf23a502378d5af971e54d71019faa1cc3df99bcbf11abe