commit 168e0c0d72183631085fc4a2c6e79657c77a41ef Author: MSVSphere Packaging Team Date: Fri Dec 20 16:53:16 2024 +0300 import rust-regex-automata0.1-0.1.10-5.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1201f0f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/regex-automata-0.1.10.crate diff --git a/.rust-regex-automata0.1.metadata b/.rust-regex-automata0.1.metadata new file mode 100644 index 0000000..4ba3690 --- /dev/null +++ b/.rust-regex-automata0.1.metadata @@ -0,0 +1 @@ +d5c05861d016703c4df2d1e52b646adc8041a068 SOURCES/regex-automata-0.1.10.crate diff --git a/SOURCES/regex-automata-fix-metadata.diff b/SOURCES/regex-automata-fix-metadata.diff new file mode 100644 index 0000000..f43000f --- /dev/null +++ b/SOURCES/regex-automata-fix-metadata.diff @@ -0,0 +1,11 @@ +--- regex-automata-0.1.10/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ regex-automata-0.1.10/Cargo.toml 2024-09-29T15:44:05.964721+00:00 +@@ -14,7 +14,7 @@ + name = "regex-automata" + version = "0.1.10" + authors = ["Andrew Gallant "] +-exclude = ["/.travis.yml", "/appveyor.yml", "/ci/*", "/scripts/*", "/regex-automata-debug"] ++exclude = ["/.travis.yml", "/appveyor.yml", "/ci/*", "/scripts/*", "/regex-automata-debug", "/data/*"] + autoexamples = false + autotests = false + description = "Automata construction and matching using regular expressions." diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..aad61cb --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,10 @@ +[tests] +run = ["none"] +comments = ["outdated dev-dependencies: bstr ^0.2, toml ^0.4"] + +[features] +hide = [ + "fst", + "transducer", +] + diff --git a/SPECS/rust-regex-automata0.1.spec b/SPECS/rust-regex-automata0.1.spec new file mode 100644 index 0000000..5cbb299 --- /dev/null +++ b/SPECS/rust-regex-automata0.1.spec @@ -0,0 +1,128 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 5; + 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 +# * outdated dev-dependencies: bstr ^0.2, toml ^0.4 +%bcond_with check +%global debug_package %{nil} + +%global crate regex-automata + +Name: rust-regex-automata0.1 +Version: 0.1.10 +Release: %autorelease +Summary: Automata construction and matching using regular expressions + +# Upstream license specification: Unlicense/MIT +License: Unlicense OR MIT +URL: https://crates.io/crates/regex-automata +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * prevent test data from being installed +Patch: regex-automata-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Automata construction and matching using regular expressions.} + +%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}/COPYING +%license %{crate_instdir}/LICENSE-MIT +%license %{crate_instdir}/UNLICENSE +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/TODO +%{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}+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}+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.10-5 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sun Sep 29 2024 Fabio Valentini - 0.1.10-5 +- Disable tests to avoid pulling in old compat packages + +* Sat Jul 20 2024 Fedora Release Engineering - 0.1.10-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.1.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.1.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Fabio Valentini - 0.1.10-1 +- Initial import (regex-automata 0.1 compat package) +## END: Generated by rpmautospec