commit 9b3716ca55ac4cf644c7fcc4351cc215904e4ac3 Author: tigro Date: Mon Jan 15 21:12:09 2024 +0300 import rust-fancy-regex0.7-0.7.1-1.el9 diff --git a/.rust-fancy-regex0.7.metadata b/.rust-fancy-regex0.7.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/fancy-regex-0.7.1.crate b/SOURCES/fancy-regex-0.7.1.crate new file mode 100644 index 0000000..4d24e9f Binary files /dev/null and b/SOURCES/fancy-regex-0.7.1.crate differ diff --git a/SOURCES/fancy-regex-fix-metadata.diff b/SOURCES/fancy-regex-fix-metadata.diff new file mode 100644 index 0000000..c4676d1 --- /dev/null +++ b/SOURCES/fancy-regex-fix-metadata.diff @@ -0,0 +1,18 @@ +--- fancy-regex-0.7.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ fancy-regex-0.7.1/Cargo.toml 2023-01-22T19:35:07.042003+00:00 +@@ -30,14 +30,12 @@ + + [dependencies.regex] + version = "1.2" +-[dev-dependencies.criterion] +-version = "= 0.3.4" + + [dev-dependencies.matches] + version = "0.1.8" + + [dev-dependencies.quickcheck] +-version = "= 1.0.1" ++version = "1.0.1" + + [features] + track_caller = [] diff --git a/SPECS/rust-fancy-regex0.7.spec b/SPECS/rust-fancy-regex0.7.spec new file mode 100644 index 0000000..90b31b2 --- /dev/null +++ b/SPECS/rust-fancy-regex0.7.spec @@ -0,0 +1,103 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.1) +## 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 23 +%bcond_without check +%global debug_package %{nil} + +%global crate fancy-regex + +Name: rust-fancy-regex0.7 +Version: 0.7.1 +Release: %autorelease +Summary: Implementation of regexes, supporting a relatively rich set of features + +License: MIT +URL: https://crates.io/crates/fancy-regex +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * relax quickcheck dev-dependency from =1.0.1 to ^1.0.1 +Patch: fancy-regex-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Implementation of regexes, supporting a relatively rich set of features, +including backreferences and look-around.} + +%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 +%doc %{crate_instdir}/AUTHORS +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/CONTRIBUTING.md +%doc %{crate_instdir}/PERFORMANCE.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}+track_caller-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+track_caller-devel %{_description} + +This package contains library source intended for building other packages which +use the "track_caller" feature of the "%{crate}" crate. + +%files -n %{name}+track_caller-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.7.1-1 +- Rebuilt for MSVSphere 9.3 + +* Sun Jan 22 2023 Michel Alexandre Salim - 0.7.1-1 +- Initial Fedora package