commit 60134ddaae537f6ebb1dd1b7226ea48db7b11f7c Author: MSVSphere Packaging Team Date: Fri Dec 20 16:53:53 2024 +0300 import rust-regex-syntax0.6-0.6.29-4.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..37b4ff0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/regex-syntax-0.6.29.crate diff --git a/.rust-regex-syntax0.6.metadata b/.rust-regex-syntax0.6.metadata new file mode 100644 index 0000000..433c109 --- /dev/null +++ b/.rust-regex-syntax0.6.metadata @@ -0,0 +1 @@ +621a9e8879f90492458fc9ca00a7050cf28b85b6 SOURCES/regex-syntax-0.6.29.crate diff --git a/SOURCES/regex-syntax-fix-metadata.diff b/SOURCES/regex-syntax-fix-metadata.diff new file mode 100644 index 0000000..81027fc --- /dev/null +++ b/SOURCES/regex-syntax-fix-metadata.diff @@ -0,0 +1,11 @@ +--- regex-syntax-0.6.29/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ regex-syntax-0.6.29/Cargo.toml 2023-05-25T12:38:01.360730+00:00 +@@ -18,7 +18,7 @@ + homepage = "https://github.com/rust-lang/regex" + documentation = "https://docs.rs/regex-syntax" + readme = "README.md" +-license = "MIT OR Apache-2.0" ++license = "(MIT OR Apache-2.0) AND Unicode-DFS-2016" + repository = "https://github.com/rust-lang/regex" + + [features] diff --git a/SPECS/rust-regex-syntax0.6.spec b/SPECS/rust-regex-syntax0.6.spec new file mode 100644 index 0000000..53282ac --- /dev/null +++ b/SPECS/rust-regex-syntax0.6.spec @@ -0,0 +1,195 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 4; + 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate regex-syntax + +Name: rust-regex-syntax0.6 +Version: 0.6.29 +Release: %autorelease +Summary: Regular expression parser + +License: (MIT OR Apache-2.0) AND Unicode-DFS-2016 +URL: https://crates.io/crates/regex-syntax +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * add missing Unicode license terms to crate metadata: +# https://github.com/rust-lang/regex/discussions/933 +Patch: regex-syntax-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A regular expression 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 +%license %{crate_instdir}/src/unicode_tables/LICENSE-UNICODE +%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}+unicode-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-age-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-age-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-age" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-age-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-bool-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-bool-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-bool" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-bool-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-case-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-case-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-case" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-case-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-gencat-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-gencat-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-gencat" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-gencat-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-perl-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-perl-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-perl" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-perl-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-script-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-script-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-script" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-script-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-segment-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-segment-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-segment" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-segment-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -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.6.29-4 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.6.29-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.6.29-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.6.29-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon May 29 2023 Fabio Valentini - 0.6.29-1 +- Initial import (regex-syntax 0.6 compat package) +## END: Generated by rpmautospec