From 10c4cdd13b86dc42fee2e6b6dbc98125f28eff5f Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 17:47:46 +0300 Subject: [PATCH] import rust-syntect-5.2.0-2.el10 --- .gitignore | 1 + .rust-syntect.metadata | 1 + SOURCES/rust2rpm.toml | 7 + SOURCES/syntect-fix-metadata.diff | 13 + SPECS/rust-syntect.spec | 452 ++++++++++++++++++++++++++++++ 5 files changed, 474 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-syntect.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SOURCES/syntect-fix-metadata.diff create mode 100644 SPECS/rust-syntect.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7eeaee0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/syntect-5.2.0.crate diff --git a/.rust-syntect.metadata b/.rust-syntect.metadata new file mode 100644 index 0000000..7b03ae9 --- /dev/null +++ b/.rust-syntect.metadata @@ -0,0 +1 @@ +1802192584e46f91a417bae3fc372aca91d0b676 SOURCES/syntect-5.2.0.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..cdd6e4c --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,7 @@ +[package] +summary = "High quality syntax highlighting and code intelligence" + +[tests] +run = ["none"] +comments = ["test data is not shipped with published crates"] + diff --git a/SOURCES/syntect-fix-metadata.diff b/SOURCES/syntect-fix-metadata.diff new file mode 100644 index 0000000..7f7bb6b --- /dev/null +++ b/SOURCES/syntect-fix-metadata.diff @@ -0,0 +1,13 @@ +--- syntect-5.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ syntect-5.2.0/Cargo.toml 2024-02-18T16:05:24.640728+00:00 +@@ -111,10 +111,6 @@ + version = "0.4.5" + optional = true + +-[dev-dependencies.criterion] +-version = "0.3" +-features = ["html_reports"] +- + [dev-dependencies.expect-test] + version = "1.4.1" + diff --git a/SPECS/rust-syntect.spec b/SPECS/rust-syntect.spec new file mode 100644 index 0000000..29d9454 --- /dev/null +++ b/SPECS/rust-syntect.spec @@ -0,0 +1,452 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 25 +# * test data is not shipped with published crates +%bcond_with check +%global debug_package %{nil} + +%global crate syntect + +Name: rust-syntect +Version: 5.2.0 +Release: %autorelease +Summary: High quality syntax highlighting and code intelligence + +License: MIT +URL: https://crates.io/crates/syntect +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +Patch: syntect-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Library for high quality syntax highlighting and code intelligence using +Sublime Text's grammars.} + +%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.txt +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/DESIGN.md +%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}+bincode-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bincode-devel %{_description} + +This package contains library source intended for building other packages which +use the "bincode" feature of the "%{crate}" crate. + +%files -n %{name}+bincode-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+default-fancy-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-fancy-devel %{_description} + +This package contains library source intended for building other packages which +use the "default-fancy" feature of the "%{crate}" crate. + +%files -n %{name}+default-fancy-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+default-onig-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-onig-devel %{_description} + +This package contains library source intended for building other packages which +use the "default-onig" feature of the "%{crate}" crate. + +%files -n %{name}+default-onig-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+default-syntaxes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-syntaxes-devel %{_description} + +This package contains library source intended for building other packages which +use the "default-syntaxes" feature of the "%{crate}" crate. + +%files -n %{name}+default-syntaxes-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+default-themes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-themes-devel %{_description} + +This package contains library source intended for building other packages which +use the "default-themes" feature of the "%{crate}" crate. + +%files -n %{name}+default-themes-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+dump-create-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+dump-create-devel %{_description} + +This package contains library source intended for building other packages which +use the "dump-create" feature of the "%{crate}" crate. + +%files -n %{name}+dump-create-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+dump-load-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+dump-load-devel %{_description} + +This package contains library source intended for building other packages which +use the "dump-load" feature of the "%{crate}" crate. + +%files -n %{name}+dump-load-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+fancy-regex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fancy-regex-devel %{_description} + +This package contains library source intended for building other packages which +use the "fancy-regex" feature of the "%{crate}" crate. + +%files -n %{name}+fancy-regex-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+flate2-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+flate2-devel %{_description} + +This package contains library source intended for building other packages which +use the "flate2" feature of the "%{crate}" crate. + +%files -n %{name}+flate2-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+fnv-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fnv-devel %{_description} + +This package contains library source intended for building other packages which +use the "fnv" feature of the "%{crate}" crate. + +%files -n %{name}+fnv-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+html-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+html-devel %{_description} + +This package contains library source intended for building other packages which +use the "html" feature of the "%{crate}" crate. + +%files -n %{name}+html-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+metadata-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+metadata-devel %{_description} + +This package contains library source intended for building other packages which +use the "metadata" feature of the "%{crate}" crate. + +%files -n %{name}+metadata-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+onig-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+onig-devel %{_description} + +This package contains library source intended for building other packages which +use the "onig" feature of the "%{crate}" crate. + +%files -n %{name}+onig-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+parsing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+parsing-devel %{_description} + +This package contains library source intended for building other packages which +use the "parsing" feature of the "%{crate}" crate. + +%files -n %{name}+parsing-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+plist-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+plist-devel %{_description} + +This package contains library source intended for building other packages which +use the "plist" feature of the "%{crate}" crate. + +%files -n %{name}+plist-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+plist-load-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+plist-load-devel %{_description} + +This package contains library source intended for building other packages which +use the "plist-load" feature of the "%{crate}" crate. + +%files -n %{name}+plist-load-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+regex-fancy-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+regex-fancy-devel %{_description} + +This package contains library source intended for building other packages which +use the "regex-fancy" feature of the "%{crate}" crate. + +%files -n %{name}+regex-fancy-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+regex-onig-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+regex-onig-devel %{_description} + +This package contains library source intended for building other packages which +use the "regex-onig" feature of the "%{crate}" crate. + +%files -n %{name}+regex-onig-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+regex-syntax-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+regex-syntax-devel %{_description} + +This package contains library source intended for building other packages which +use the "regex-syntax" feature of the "%{crate}" crate. + +%files -n %{name}+regex-syntax-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+yaml-load-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+yaml-load-devel %{_description} + +This package contains library source intended for building other packages which +use the "yaml-load" feature of the "%{crate}" crate. + +%files -n %{name}+yaml-load-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+yaml-rust-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+yaml-rust-devel %{_description} + +This package contains library source intended for building other packages which +use the "yaml-rust" feature of the "%{crate}" crate. + +%files -n %{name}+yaml-rust-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 - 5.2.0-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 5.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Feb 18 2024 Fabio Valentini - 5.2.0-1 +- Update to version 5.2.0; Fixes RHBZ#2263160 + +* Sat Jan 27 2024 Fedora Release Engineering - 5.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Aug 01 2023 Fabio Valentini - 5.1.0-1 +- Update to version 5.1.0; Fixes RHBZ#2227879 + +* Fri Jul 21 2023 Fedora Release Engineering - 5.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 5.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 5.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jul 21 2022 Fabio Valentini - 5.0.0-1 +- Update to version 5.0.0; Fixes RHBZ#2081584 + +* Fri Jan 21 2022 Fedora Release Engineering - 4.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Aug 01 2021 Fabio Valentini - 4.6.0-1 +- Update to version 4.6.0; Fixes RHBZ#1988858 + +* Sat Jul 24 2021 Igor Raits - 4.5.0-5 +- Bump syntect dependency to 0.7 + +* Fri Jul 23 2021 Fedora Release Engineering - 4.5.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Jul 18 2021 Igor Raits - 4.5.0-3 +- Include fancy-regex features (required by gitui) + +* Wed Jan 27 2021 Fedora Release Engineering - 4.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Dec 10 2020 Fabio Valentini - 4.5.0-1 +- update to version 4.5.0 + +* Sat Nov 28 2020 Fabio Valentini - 4.4.0-2 +- remove features with missing dependencies (fancy-regex) + +* Wed Aug 26 2020 Josh Stone - 4.4.0-1 +- Update to 4.4.0 + +* Sat Aug 01 2020 Fedora Release Engineering - 4.2.0-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 4.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Igor Raits - 4.2.0-1 +- Update to 4.2.0 + +* Sun May 17 2020 Igor Raits - 4.1.1-2 +- Update plist to 1 + +* Thu Apr 23 2020 Josh Stone - 4.1.1-1 +- Update to 4.1.1 + +* Wed Feb 12 2020 Igor Raits - 3.3.0-4 +- Drop tests + +* Thu Jan 30 2020 Fedora Release Engineering - 3.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jan 16 2020 Josh Stone - 3.3.0-2 +- Upgrade to criterion 0.3 and plist 0.5 + +* Thu Sep 26 2019 Igor Gnatenko - 3.3.0-1 +- Update to 3.3.0 + +* Fri Jul 26 2019 Fedora Release Engineering - 3.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 22 2019 Igor Gnatenko - 3.2.0-3 +- Disable tests + +* Sat Jun 22 2019 Igor Gnatenko - 3.2.0-2 +- Regenerate + +* Sun Mar 10 2019 Igor Gnatenko - 3.2.0-1 +- Update to 3.2.0 + +* Sun Feb 24 2019 Igor Gnatenko - 3.1.0-1 +- Update to 3.1.0 + +* Sun Feb 10 2019 Igor Gnatenko - 3.0.2-3 +- Bump plist to 0.4 + +* Sat Feb 02 2019 Fedora Release Engineering - 3.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Nov 13 2018 Josh Stone - 3.0.2-1 +- Update to 3.0.2 + +* Sun Nov 04 2018 Igor Gnatenko - 3.0.1-2 +- upload sources + +* Sun Nov 04 2018 Igor Gnatenko - 3.0.1-1 +- Update to 3.0.1 + +* Mon Sep 03 2018 Igor Gnatenko - 2.1.0-1 +- initial import +## END: Generated by rpmautospec