From bfdcf48c2c5ed5a899e64d797b8f9babd1d31e4d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 28 Jul 2023 15:29:08 +0200 Subject: [PATCH] Update to version 0.11.2; Fixes RHBZ#2107769 --- .gitignore | 1 + README.md | 3 --- rust-phf.spec | 54 +++++++++++++++++++-------------------------------- sources | 2 +- 4 files changed, 22 insertions(+), 38 deletions(-) delete mode 100644 README.md diff --git a/.gitignore b/.gitignore index c70e790..9f30739 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /phf-0.7.24.crate /phf-0.8.0.crate /phf-0.10.1.crate +/phf-0.11.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index dc6eff4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-phf - -The rust-phf package \ No newline at end of file diff --git a/rust-phf.spec b/rust-phf.spec index 994067c..2252157 100644 --- a/rust-phf.spec +++ b/rust-phf.spec @@ -1,24 +1,19 @@ -# Generated by rust2rpm 20 -# * The tests use the nightly macros feature -%bcond_with check +# Generated by rust2rpm 24 +%bcond_without check %global debug_package %{nil} %global crate phf -Name: rust-%{crate} -Version: 0.10.1 +Name: rust-phf +Version: 0.11.2 Release: %autorelease Summary: Runtime support for perfect hash function data structures -# Upstream license specification: MIT -# https://github.com/sfackler/rust-phf/pull/118 License: MIT URL: https://crates.io/crates/phf Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Runtime support for perfect hash function data structures.} @@ -35,7 +30,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +45,7 @@ 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}+macros-devel Summary: %{summary} @@ -59,7 +57,7 @@ This package contains library source intended for building other packages which use the "macros" feature of the "%{crate}" crate. %files -n %{name}+macros-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+phf_macros-devel Summary: %{summary} @@ -71,19 +69,7 @@ This package contains library source intended for building other packages which use the "phf_macros" feature of the "%{crate}" crate. %files -n %{name}+phf_macros-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+proc-macro-hack-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+proc-macro-hack-devel %{_description} - -This package contains library source intended for building other packages which -use the "proc-macro-hack" feature of the "%{crate}" crate. - -%files -n %{name}+proc-macro-hack-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -95,7 +81,7 @@ This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -107,7 +93,7 @@ This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+uncased-devel Summary: %{summary} @@ -119,7 +105,7 @@ This package contains library source intended for building other packages which use the "uncased" feature of the "%{crate}" crate. %files -n %{name}+uncased-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unicase-devel Summary: %{summary} @@ -131,24 +117,24 @@ This package contains library source intended for building other packages which use the "unicase" feature of the "%{crate}" crate. %files -n %{name}+unicase-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires -%cargo_generate_buildrequires +%cargo_generate_buildrequires -a %build -%cargo_build +%cargo_build -a %install -%cargo_install +%cargo_install -a %if %{with check} %check -%cargo_test +%cargo_test -a %endif %changelog diff --git a/sources b/sources index 22fa0ab..88bb13d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (phf-0.10.1.crate) = 84568d6d1baa7c4e6faf5f3ee09133e736977286d7cb7630a59a53fc8ea15d0d41b9242f8929184667ce576cc9946da55d1e8bc06e98824f163c91c6aa05e073 +SHA512 (phf-0.11.2.crate) = 97752bfb44f3d1f9347b4ccfb6fa2fb80b3263d6f67aa703c52ae90d693c537a0db878acef828c79bd4c41e8f7ca0ea45588dee073d12c9bb0f2980c511b65b4