From 94e0806bda88ed23860b0f9d95fab741fa70536f Mon Sep 17 00:00:00 2001 From: Artem Polishchuk Date: Sat, 2 Nov 2019 22:17:37 +0200 Subject: [PATCH] Initial import (#1767475). --- .gitignore | 1 + rust-predicates-tree.spec | 75 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 rust-predicates-tree.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..015c0a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/predicates-tree-1.0.0.crate diff --git a/rust-predicates-tree.spec b/rust-predicates-tree.spec new file mode 100644 index 0000000..0afdf24 --- /dev/null +++ b/rust-predicates-tree.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 10 +%bcond_without check +%global debug_package %{nil} + +%global crate predicates-tree + +Name: rust-%{crate} +Version: 1.0.0 +Release: 1%{?dist} +Summary: Render boolean-valued predicate functions results as a tree + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/predicates-tree +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Render boolean-valued predicate functions results as a tree.} + +%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-APACHE LICENSE-MIT +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version}/ + +%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}/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 +* Thu Oct 31 16:11:54 EET 2019 Artem Polishchuk - 1.0.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..041437a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (predicates-tree-1.0.0.crate) = 29e1818b7cbcb7195dedc78e6a1436e8e8c88b61d43469952c4bba5bef7dbfd5b7f0dfbd9fd31f71e71cefe7c7b8c44ef361bff1a86f40c945caf48cbd87cf05