From 14dc4e86997988918209085f081fda7fab155631 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Wed, 20 Mar 2024 18:12:08 -0500 Subject: [PATCH] Initial package (rhbz#2270553) Signed-off-by: Michel Lind --- .gitignore | 1 + fancy-regex-fix-metadata.diff | 12 +++ rust-fancy-regex0.11.spec | 159 ++++++++++++++++++++++++++++++++++ rust2rpm.toml | 2 + sources | 1 + 5 files changed, 175 insertions(+) create mode 100644 .gitignore create mode 100644 fancy-regex-fix-metadata.diff create mode 100644 rust-fancy-regex0.11.spec create mode 100644 rust2rpm.toml create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..50bf5a1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/fancy-regex-0.11.0.crate diff --git a/fancy-regex-fix-metadata.diff b/fancy-regex-fix-metadata.diff new file mode 100644 index 0000000..7107e0c --- /dev/null +++ b/fancy-regex-fix-metadata.diff @@ -0,0 +1,12 @@ +--- fancy-regex-0.11.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fancy-regex-0.11.0/Cargo.toml 2024-03-20T22:52:05.523561+00:00 +@@ -40,9 +40,6 @@ + features = ["std"] + default-features = false + +-[dev-dependencies.criterion] +-version = "0.3.0" +- + [dev-dependencies.matches] + version = "0.1.8" + diff --git a/rust-fancy-regex0.11.spec b/rust-fancy-regex0.11.spec new file mode 100644 index 0000000..b4a97ee --- /dev/null +++ b/rust-fancy-regex0.11.spec @@ -0,0 +1,159 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate fancy-regex + +Name: rust-fancy-regex0.11 +Version: 0.11.0 +Release: %autorelease +Summary: An 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 +Patch: fancy-regex-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +An 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}+perf-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+perf-devel %{_description} + +This package contains library source intended for building other packages which +use the "perf" feature of the "%{crate}" crate. + +%files -n %{name}+perf-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+perf-cache-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+perf-cache-devel %{_description} + +This package contains library source intended for building other packages which +use the "perf-cache" feature of the "%{crate}" crate. + +%files -n %{name}+perf-cache-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+perf-dfa-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+perf-dfa-devel %{_description} + +This package contains library source intended for building other packages which +use the "perf-dfa" feature of the "%{crate}" crate. + +%files -n %{name}+perf-dfa-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+perf-inline-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+perf-inline-devel %{_description} + +This package contains library source intended for building other packages which +use the "perf-inline" feature of the "%{crate}" crate. + +%files -n %{name}+perf-inline-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+perf-literal-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+perf-literal-devel %{_description} + +This package contains library source intended for building other packages which +use the "perf-literal" feature of the "%{crate}" crate. + +%files -n %{name}+perf-literal-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 + +%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 + +%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 +%autochangelog diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..00410bf --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[package] +summary = "An implementation of regexes, supporting a relatively rich set of features" diff --git a/sources b/sources new file mode 100644 index 0000000..243df5a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fancy-regex-0.11.0.crate) = 7d35306e596543ac63a7b0fab145a401b8eceae08c6d7564dc46aa6f28269acabe59135b30dab20f3ffa6779f5a0d3fcd0264d8b5c19be56fd66dbf6e5c2092b