diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..28f8e9d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/fancy-regex-0.7.1.crate diff --git a/fancy-regex-fix-metadata.diff b/fancy-regex-fix-metadata.diff new file mode 100644 index 0000000..c4676d1 --- /dev/null +++ b/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/rust-fancy-regex0.7.spec b/rust-fancy-regex0.7.spec new file mode 100644 index 0000000..4d3d58f --- /dev/null +++ b/rust-fancy-regex0.7.spec @@ -0,0 +1,89 @@ +# 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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..a898b9c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fancy-regex-0.7.1.crate) = 533cd4eb50a1a9665f42dfb0c6f4e8c7bbf4f45eb50abe023e44f0dee66a9e40ff82784b10dc9e1f4aebd652efebe3472fd3ba92996dec0932465cd2cfc932c5