diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a719f4a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/matchers-0.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 9f0c432..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-matchers - -The rust-matchers package diff --git a/rust-matchers.spec b/rust-matchers.spec new file mode 100644 index 0000000..91a0ddc --- /dev/null +++ b/rust-matchers.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate matchers + +Name: rust-matchers +Version: 0.1.0 +Release: %autorelease +Summary: Regex matching on character and byte streams + +License: MIT +URL: https://crates.io/crates/matchers +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Regex matching on character and byte streams.} + +%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}/CHANGELOG.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 + +%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..2c52c0d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (matchers-0.1.0.crate) = 84214c1a84952d85631aa1ab5115df7cda223ac64e2acf055b6129ba1aa26ddc87615a8b51ca890ce3fee0419053fa7fe1599ae128f1d211b58c07b0c4af3b19