From ad241f3724d2aea3ccd5f28f6019f36865fdb1c4 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 18:01:27 +0300 Subject: [PATCH] import rust-unicode-normalization-0.1.24-1.el10 --- .gitignore | 1 + .rust-unicode-normalization.metadata | 1 + SOURCES/rust2rpm.toml | 6 + .../unicode-normalization-fix-metadata.diff | 11 + SPECS/rust-unicode-normalization.spec | 219 ++++++++++++++++++ 5 files changed, 238 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-unicode-normalization.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SOURCES/unicode-normalization-fix-metadata.diff create mode 100644 SPECS/rust-unicode-normalization.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57d3879 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/unicode-normalization-0.1.24.crate diff --git a/.rust-unicode-normalization.metadata b/.rust-unicode-normalization.metadata new file mode 100644 index 0000000..ca34acc --- /dev/null +++ b/.rust-unicode-normalization.metadata @@ -0,0 +1 @@ +dc837376970386fb923d76b64b174f8d8f6678a2 SOURCES/unicode-normalization-0.1.24.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..5277bac --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,6 @@ +[package] +summary = "Functions for normalization of Unicode strings" +cargo-toml-patch-comments = [ + "Exclude unneeded scripts: https://github.com/unicode-rs/unicode-normalization/pull/30", +] + diff --git a/SOURCES/unicode-normalization-fix-metadata.diff b/SOURCES/unicode-normalization-fix-metadata.diff new file mode 100644 index 0000000..cf12cf7 --- /dev/null +++ b/SOURCES/unicode-normalization-fix-metadata.diff @@ -0,0 +1,11 @@ +--- unicode-normalization-0.1.24/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ unicode-normalization-0.1.24/Cargo.toml 2024-09-17T19:28:16.615271+00:00 +@@ -22,7 +22,7 @@ + exclude = [ + "target/*", + "Cargo.lock", +- "scripts/tmp", ++ "scripts/*", + "*.txt", + "tests/*", + ] diff --git a/SPECS/rust-unicode-normalization.spec b/SPECS/rust-unicode-normalization.spec new file mode 100644 index 0000000..10445e7 --- /dev/null +++ b/SPECS/rust-unicode-normalization.spec @@ -0,0 +1,219 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate unicode-normalization + +Name: rust-unicode-normalization +Version: 0.1.24 +Release: %autorelease +Summary: Functions for normalization of Unicode strings + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/unicode-normalization +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * Exclude unneeded scripts: +# https://github.com/unicode-rs/unicode-normalization/pull/30 +Patch: unicode-normalization-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +This crate provides functions for normalization of Unicode strings, +including Canonical and Compatible Decomposition and Recomposition, as +described in Unicode Standard Annex #15.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.1.24-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Sep 17 2024 Fabio Valentini - 0.1.24-1 +- Update to version 0.1.24; Fixes RHBZ#2312876 + +* Sat Jul 20 2024 Fedora Release Engineering - 0.1.23-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Apr 13 2024 Fabio Valentini - 0.1.23-1 +- Update to version 0.1.23; Fixes RHBZ#2265143 + +* Sat Jan 27 2024 Fedora Release Engineering - 0.1.22-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 0.1.22-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 0.1.22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Oct 05 2022 Fabio Valentini - 0.1.22-1 +- Update to version 0.1.22; Fixes RHBZ#2127519 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.21-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jul 08 2022 Fabio Valentini - 0.1.21-1 +- Update to version 0.1.21; Fixes RHBZ#2100885 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.1.19-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jun 22 2021 Fabio Valentini - 0.1.19-1 +- Update to version 0.1.19. +- Fixes RHBZ#1967229 + +* Sun May 30 2021 Fabio Valentini - 0.1.18-1 +- Update to version 0.1.18. +- Fixes RHBZ#1965669 + +* Mon Feb 15 2021 Fabio Valentini - 0.1.17-1 +- Update to version 0.1.17. +- Fixes RHBZ#1926534 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.16-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 19 2020 Fabio Valentini - 0.1.16-1 +- Update to version 0.1.16. +- Fixes RHBZ#1898793 + +* Wed Nov 11 2020 Fabio Valentini - 0.1.14-1 +- Update to version 0.1.14. +- Fixes RHBZ#1896863 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Jun 21 09:04:20 CEST 2020 Igor Raits - 0.1.13-1 +- Update to 0.1.13 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.1.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Jan 27 2020 Josh Stone - 0.1.12-1 +- Update to 0.1.12 + +* Fri Nov 22 2019 Josh Stone - 0.1.11-1 +- Update to 0.1.11 + +* Tue Nov 19 2019 Josh Stone - 0.1.9-1 +- Update to 0.1.9 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.1.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 20 11:26:29 CEST 2019 Igor Gnatenko - 0.1.8-3 +- Regenerate + +* Sat Feb 02 2019 Fedora Release Engineering - 0.1.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 22 2019 Josh Stone - 0.1.8-1 +- Update to 0.1.8 + +* Sat Nov 03 2018 Igor Gnatenko - 0.1.7-3 +- Adapt to new packaging + +* Sat Jul 14 2018 Fedora Release Engineering - 0.1.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu May 10 2018 Igor Gnatenko - 0.1.7-1 +- Update to 0.1.7 + +* Thu May 03 2018 Josh Stone - 0.1.6-1 +- Update to 0.1.6 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.1.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 0.1.5-3 +- Rebuild for rust-packaging v5 + +* Sun Nov 05 2017 Igor Gnatenko - 0.1.5-2 +- Exclude unneeded files + +* Thu Jun 15 2017 Igor Gnatenko - 0.1.5-1 +- Update to 0.1.5 + +* Wed Jun 14 2017 Igor Gnatenko - 0.1.4-2 +- Port to use rust-packaging + +* Sat Feb 18 2017 Igor Gnatenko - 0.1.4-1 +- Initial package + +## END: Generated by rpmautospec