commit 7280c5d223d7d42394fad76c53a6e0c82a843ee2 Author: tigro Date: Mon Jan 15 19:21:53 2024 +0300 import rust-regex-automata0.1-0.1.10-1.el9 diff --git a/.rust-regex-automata0.1.metadata b/.rust-regex-automata0.1.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/regex-automata-0.1.10.crate b/SOURCES/regex-automata-0.1.10.crate new file mode 100644 index 0000000..2d1b4b7 Binary files /dev/null and b/SOURCES/regex-automata-0.1.10.crate differ diff --git a/SOURCES/regex-automata-fix-metadata.diff b/SOURCES/regex-automata-fix-metadata.diff new file mode 100644 index 0000000..bb40de6 --- /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 2023-07-07T18:27:26.582864+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/SPECS/rust-regex-automata0.1.spec b/SPECS/rust-regex-automata0.1.spec new file mode 100644 index 0000000..168faec --- /dev/null +++ b/SPECS/rust-regex-automata0.1.spec @@ -0,0 +1,113 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## 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 24 +%bcond_without 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: rust-packaging >= 21 + +%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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.1.10-1 +- Rebuilt for MSVSphere 9.3 + +* Wed Jul 12 2023 Fabio Valentini - 0.1.10-1 +- Initial import (regex-automata 0.1 compat package)