From e938a3db020384ed8d82e733e565fc74b893d805 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Jun 08 2021 16:01:45 +0000 Subject: import #1967348 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b98d964 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pom-3.2.0.crate diff --git a/rust-pom.spec b/rust-pom.spec new file mode 100644 index 0000000..6df4ba5 --- /dev/null +++ b/rust-pom.spec @@ -0,0 +1,78 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate pom + +Name: rust-%{crate} +Version: 3.2.0 +Release: 2%{?dist} +Summary: PEG parser combinators using operator overloading without macros + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/pom +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +PEG parser combinators using operator overloading without macros.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Sun Jun 06 2021 Davide Cavalca - 3.2.0-2 +- Install license files + +* Wed Jun 02 2021 Davide Cavalca - 3.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..9464f55 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pom-3.2.0.crate) = 0fac8e7f3b2d39fc047f60aace06d8a809fd0c5e017c7994dea2eec625fcac9ab5c5f65e508a67e489ec577192de227f09323aa55f5f0ef937dcec0f0a13bc1a