From 19335001d743173445f852f871665a27d02455b5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 14 Oct 2023 22:52:00 +0200 Subject: [PATCH] Update to version 3.0.2; Fixes RHBZ#2016784 --- .gitignore | 1 + rust-configparser.spec | 32 ++++++++++++++++++++++++++++---- rust2rpm.toml | 2 ++ sources | 2 +- 4 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 2817fa2..c8eecf1 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /configparser-2.0.1.crate /configparser-2.1.0.crate +/configparser-3.0.2.crate diff --git a/rust-configparser.spec b/rust-configparser.spec index d79bc41..4248ce4 100644 --- a/rust-configparser.spec +++ b/rust-configparser.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate configparser Name: rust-configparser -Version: 2.1.0 +Version: 3.0.2 Release: %autorelease Summary: Simple configuration parsing utility with no dependencies @@ -13,7 +13,7 @@ License: MIT OR LGPL-3.0-or-later URL: https://crates.io/crates/configparser Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A simple configuration parsing utility with no dependencies that allows @@ -51,8 +51,32 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+async-std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+async-std-devel %{_description} + +This package contains library source intended for building other packages which +use the "async-std" feature of the "%{crate}" crate. + +%files -n %{name}+async-std-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+indexmap-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+indexmap-devel %{_description} + +This package contains library source intended for building other packages which +use the "indexmap" feature of the "%{crate}" crate. + +%files -n %{name}+indexmap-devel +%ghost %{crate_instdir}/Cargo.toml + %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 # remove executable bits from files chmod -x README.md CHANGELOG.md Cargo.toml.orig src/*.rs tests/*.rs %cargo_prep diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..790c7b9 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[package] +summary = "Simple configuration parsing utility with no dependencies" diff --git a/sources b/sources index 04b4d2a..a189e4b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (configparser-2.1.0.crate) = af459b2a3c228ebff981b1b6a158ab84af44a2037b499abc45c43234ba1014c826407a6212a9c36fc6a7acb6bf6407cfcbf52b72a35176cf7dfec94d0515fd6a +SHA512 (configparser-3.0.2.crate) = ffa9055a736a93dd062b92ab1345a29565804021268787ab6dd314c00ccec4d2dd94562b1576ac356692011ae67ddc86ae8965e217b1607b680f0669eb4ea9ec