From c1cb3106d0b03816cc13ccae473a46cac7e7f57a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 11 Jul 2023 20:46:18 +0200 Subject: [PATCH] Initial import (#2221224) --- .gitignore | 1 + README.md | 3 -- rust-regex-test.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-regex-test.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d9e111 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/regex-test-0.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index a283a65..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-regex-test - -The rust-regex-test package diff --git a/rust-regex-test.spec b/rust-regex-test.spec new file mode 100644 index 0000000..fc7f9a1 --- /dev/null +++ b/rust-regex-test.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate regex-test + +Name: rust-regex-test +Version: 0.1.0 +Release: %autorelease +Summary: Infrastructure for testing regexes + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/regex-test +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Infrastructure for testing regexes. You probably don't want to use this +crate unless you're working on a regex implementation.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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 + +%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..05608f6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (regex-test-0.1.0.crate) = 9a2b1026ab39492ef1285b6a4ae525c61faf16e2296b815f2fad5184a94fd1ee2e0cd9af35cb1ac3706346da724cb0f77b7954abcb50519e5fe61b2af03cd7d9