From 22e70bd926bba3ad208006ebfd886d92b4cb987b Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:34:39 +0300 Subject: [PATCH] import rust-pest-2.7.15-1.el10 --- .gitignore | 1 + .rust-pest.metadata | 1 + SOURCES/pest-fix-metadata.diff | 24 +++ SOURCES/rust2rpm.toml | 5 + SPECS/rust-pest.spec | 287 +++++++++++++++++++++++++++++++++ 5 files changed, 318 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-pest.metadata create mode 100644 SOURCES/pest-fix-metadata.diff create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-pest.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f14260b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pest-2.7.15.crate diff --git a/.rust-pest.metadata b/.rust-pest.metadata new file mode 100644 index 0000000..8a53d46 --- /dev/null +++ b/.rust-pest.metadata @@ -0,0 +1 @@ +ebaa8b26dcd1a6ffb3b94fa6634c78d031ee9b12 SOURCES/pest-2.7.15.crate diff --git a/SOURCES/pest-fix-metadata.diff b/SOURCES/pest-fix-metadata.diff new file mode 100644 index 0000000..8c40539 --- /dev/null +++ b/SOURCES/pest-fix-metadata.diff @@ -0,0 +1,24 @@ +--- pest-2.7.15/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pest-2.7.15/Cargo.toml 2024-12-16T14:32:47.866909+00:00 +@@ -29,10 +29,6 @@ + license = "MIT OR Apache-2.0" + repository = "https://github.com/pest-parser/pest" + +-[[bench]] +-name = "stack" +-harness = false +- + [dependencies.memchr] + version = "2" + optional = true +@@ -58,10 +54,6 @@ + version = "0.1.5" + default-features = false + +-[dev-dependencies.criterion] +-version = "0.5.1" +-features = ["html_reports"] +- + [dev-dependencies.miette] + version = "7.2.0" + features = ["fancy"] diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..2cd7101 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,5 @@ +[package] +cargo-toml-patch-comments = [ + "drop unused, benchmark-only criterion dev-dependency", +] + diff --git a/SPECS/rust-pest.spec b/SPECS/rust-pest.spec new file mode 100644 index 0000000..b48166f --- /dev/null +++ b/SPECS/rust-pest.spec @@ -0,0 +1,287 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## 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 27 +%bcond check 1 +%global debug_package %{nil} + +%global crate pest + +Name: rust-pest +Version: 2.7.15 +Release: %autorelease +Summary: Elegant Parser + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/pest +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +Patch: pest-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +The Elegant Parser.} + +%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}/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}+const_prec_climber-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+const_prec_climber-devel %{_description} + +This package contains library source intended for building other packages which +use the "const_prec_climber" feature of the "%{crate}" crate. + +%files -n %{name}+const_prec_climber-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+memchr-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+memchr-devel %{_description} + +This package contains library source intended for building other packages which +use the "memchr" feature of the "%{crate}" crate. + +%files -n %{name}+memchr-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+miette-error-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+miette-error-devel %{_description} + +This package contains library source intended for building other packages which +use the "miette-error" feature of the "%{crate}" crate. + +%files -n %{name}+miette-error-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+pretty-print-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pretty-print-devel %{_description} + +This package contains library source intended for building other packages which +use the "pretty-print" feature of the "%{crate}" crate. + +%files -n %{name}+pretty-print-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 - 2.7.15-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Mon Dec 16 2024 Fabio Valentini - 2.7.15-1 +- Update to version 2.7.15; Fixes RHBZ#2330944 + +* Wed Oct 23 2024 Fabio Valentini - 2.7.14-1 +- Update to version 2.7.14; Fixes RHBZ#2313571 + +* Wed Sep 18 2024 Fabio Valentini - 2.7.12-1 +- Update to version 2.7.12; Fixes RHBZ#2310439 + +* Sat Jul 20 2024 Fedora Release Engineering - 2.7.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Jul 07 2024 Fabio Valentini - 2.7.11-1 +- Update to version 2.7.11; Fixes RHBZ#2295544 + +* Tue Jun 25 2024 Fabio Valentini - 2.7.10-1 +- Update to version 2.7.10; Fixes RHBZ#2262742 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.7.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 13 2024 Fabio Valentini - 2.7.6-1 +- Update to version 2.7.6; Fixes RHBZ#2240741 + +* Tue Sep 19 2023 Fabio Valentini - 2.7.3-1 +- Update to version 2.7.3; Fixes RHBZ#2236144 + +* Sun Aug 27 2023 Fabio Valentini - 2.7.2-1 +- Update to version 2.7.2; Fixes RHBZ#2228090 + +* Fri Jul 21 2023 Fedora Release Engineering - 2.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 17 2023 Fabio Valentini - 2.7.1-1 +- Update to version 2.7.1; Fixes RHBZ#2215696 + +* Thu May 04 2023 Fabio Valentini - 2.6.0-1 +- Update to version 2.6.0; Fixes RHBZ#2189953 + +* Sun Apr 02 2023 Fabio Valentini - 2.5.7-1 +- Update to version 2.5.7; Fixes RHBZ#2183404 + +* Thu Mar 16 2023 Fabio Valentini - 2.5.6-1 +- Update to version 2.5.6; Fixes RHBZ#2175454 + +* Tue Feb 28 2023 Fabio Valentini - 2.5.5-1 +- Update to version 2.5.5; Fixes RHBZ#2168003 + +* Fri Feb 03 2023 Fabio Valentini - 2.5.4-1 +- Update to version 2.5.4; Fixes RHBZ#2140180 + +* Sat Jan 21 2023 Fedora Release Engineering - 2.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Oct 08 2022 Fabio Valentini - 2.4.0-1 +- Update to version 2.4.0; Fixes RHBZ#2125967 + +* Sun Aug 21 2022 Fabio Valentini - 2.3.0-1 +- Update to version 2.3.0; Fixes RHBZ#2112463 + +* Sat Jul 23 2022 Fedora Release Engineering - 2.1.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 2.1.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 2.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 2.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Feb 23 10:27:58 CET 2020 Igor Raits - 2.1.3-1 +- Update to 2.1.3 + +* Thu Jan 30 2020 Fedora Release Engineering - 2.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Sep 26 13:49:18 CEST 2019 Igor Gnatenko - 2.1.2-1 +- Update to 2.1.2 + +* Fri Jul 26 2019 Fedora Release Engineering - 2.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 20 11:06:04 CEST 2019 Igor Gnatenko - 2.1.1-2 +- Regenerate + +* Mon Apr 15 2019 Josh Stone - 2.1.1-1 +- Update to 2.1.1 + +* Sat Feb 02 2019 Fedora Release Engineering - 2.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 08 2019 Josh Stone - 2.1.0-1 +- Update to 2.1.0 + +* Sat Nov 10 2018 Robert-André Mauchin - 2.0.2-1 +- Update to 2.0.2 + +* Fri Nov 09 2018 Josh Stone - 1.0.6-4 +- Adapt to new packaging + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 23 2018 Igor Gnatenko - 1.0.6-2 +- Restore spec + +* Fri Feb 23 2018 Igor Gnatenko - 1.0.6-1 +- Update to 1.0.6 + +* Mon Feb 19 2018 Igor Gnatenko - 1.0.5-1 +- Update to 1.0.5 + +* Mon Feb 19 2018 Igor Gnatenko - 1.0.4-1 +- Update to 1.0.4 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 26 2018 Igor Gnatenko - 1.0.3-1 +- Update to 1.0.3 + +* Tue Jan 23 2018 Igor Gnatenko - 1.0.2-1 +- Update to 1.0.2 + +* Mon Jan 22 2018 Igor Gnatenko - 1.0.1-1 +- Update to 1.0.1 + +* Mon Jan 08 2018 Igor Gnatenko - 0.4.1-3 +- Rebuild for rust-packaging v5 + +* Sun Dec 03 2017 Igor Gnatenko - 0.4.1-2 +- Exclude unneeded files + +* Thu Jul 06 2017 Igor Gnatenko - 0.4.1-1 +- Initial package + +## END: Generated by rpmautospec