From fc5dc2d7a97c41d9dc42514a56e437e5d0cc19b9 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 23 Aug 2024 01:39:24 -0400 Subject: [PATCH] Update to 1.4.0 (initial package after unretirement; close RHBZ#2307083) --- .gitignore | 1 + rust-tabwriter.rpmlintrc | 4 +++ rust-tabwriter.spec | 68 ++++++++++++---------------------------- sources | 2 +- 4 files changed, 26 insertions(+), 49 deletions(-) create mode 100644 rust-tabwriter.rpmlintrc diff --git a/.gitignore b/.gitignore index 7e9bc3d..8084224 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /tabwriter-1.0.4.crate /tabwriter-1.1.0.crate /tabwriter-1.2.1.crate +/tabwriter-1.4.0.crate diff --git a/rust-tabwriter.rpmlintrc b/rust-tabwriter.rpmlintrc new file mode 100644 index 0000000..866b508 --- /dev/null +++ b/rust-tabwriter.rpmlintrc @@ -0,0 +1,4 @@ +# Feature metapackages are not supposed to have documentation! +addFilter(r"\+[-_\w]+-devel.noarch: W: no-documentation") +# Not a real spelling error +addFilter(r"spelling-error \('[Tt]abstops?',") diff --git a/rust-tabwriter.spec b/rust-tabwriter.spec index 9851453..de2a5b6 100644 --- a/rust-tabwriter.spec +++ b/rust-tabwriter.spec @@ -1,25 +1,20 @@ -# Generated by rust2rpm 13 -%bcond_with check +# Generated by rust2rpm 26 +%bcond_without check %global debug_package %{nil} %global crate tabwriter -Name: rust-%{crate} -Version: 1.2.1 +Name: rust-tabwriter +Version: 1.4.0 Release: %autorelease Summary: Elastic tabstops # Upstream license specification: Unlicense/MIT -License: Unlicense or MIT +License: Unlicense OR MIT URL: https://crates.io/crates/tabwriter Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Elastic tabstops.} @@ -32,14 +27,15 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license COPYING LICENSE-MIT UNLICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ -%exclude %{cargo_registry}/%{crate}-%{version}/{Makefile,session.vim} +%license %{crate_instdir}/COPYING +%license %{crate_instdir}/LICENSE-MIT +%license %{crate_instdir}/UNLICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,11 +43,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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 %package -n %{name}+ansi_formatting-devel Summary: %{summary} @@ -59,38 +55,14 @@ BuildArch: noarch %description -n %{name}+ansi_formatting-devel %{_description} -This package contains library source intended for building other packages -which use "ansi_formatting" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "ansi_formatting" feature of the "%{crate}" crate. %files -n %{name}+ansi_formatting-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+lazy_static-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+lazy_static-devel %{_description} - -This package contains library source intended for building other packages -which use "lazy_static" feature of "%{crate}" crate. - -%files -n %{name}+lazy_static-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+regex-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+regex-devel %{_description} - -This package contains library source intended for building other packages -which use "regex" feature of "%{crate}" crate. - -%files -n %{name}+regex-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index b6426e8..e3b855e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tabwriter-1.2.1.crate) = f5b909440aff00e09e2ddddc7b34556a38ad93b24ed249aa2e9405a9d02ff4d00324b353099ef17394ffa6c20b2c43131ecedf52079ab9dc0559db4d13ac68a5 +SHA512 (tabwriter-1.4.0.crate) = 066846124e3beee816f76ed3a59fb224593537ce5807aa472fbcd0cb98f638dba6801d171b6d1026e56b6eaae6f2e873d64c190c97bbd8d6ffeffc82f3b4d52f