diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dce0392 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/regex-automata-0.1.10.crate diff --git a/README.md b/README.md deleted file mode 100644 index ec3eb9e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-regex-automata0.1 - -The rust-regex-automata0.1 package diff --git a/regex-automata-fix-metadata.diff b/regex-automata-fix-metadata.diff new file mode 100644 index 0000000..bb40de6 --- /dev/null +++ b/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/rust-regex-automata0.1.spec b/rust-regex-automata0.1.spec new file mode 100644 index 0000000..0bc30cd --- /dev/null +++ b/rust-regex-automata0.1.spec @@ -0,0 +1,99 @@ +# 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 +%autochangelog diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..629ace8 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,4 @@ +[DEFAULT] +unwanted-features = + fst + transducer diff --git a/sources b/sources new file mode 100644 index 0000000..55a1931 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (regex-automata-0.1.10.crate) = 56d64da361afce82c6cb49e70b99ce1fca3e1969c54bba5f9971db135f8544c65f49feb8827789947b3d1dcefc9c49a7a434a7ffe0d09c5900345a1733723c5f