From 2c85c67062b27638aad9bb7f77f66de96ad914ed Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Tue, 26 May 2020 07:44:46 +0200 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + rust-piper.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 80 insertions(+) create mode 100644 .gitignore create mode 100644 rust-piper.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e062dd4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/piper-0.1.2.crate diff --git a/rust-piper.spec b/rust-piper.spec new file mode 100644 index 0000000..b7f053b --- /dev/null +++ b/rust-piper.spec @@ -0,0 +1,78 @@ +# Generated by rust2rpm 15 +# * The tests are broken, https://github.com/stjepang/piper/issues/23 +%bcond_with check +%global debug_package %{nil} + +%global crate piper + +Name: rust-%{crate} +Version: 0.1.2 +Release: 1%{?dist} +Summary: Async pipes, channels, mutexes, and more + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/piper +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Async pipes, channels, mutexes, and more.} + +%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-MIT LICENSE-APACHE +%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 +# Depends on smol, but without a dependency +rm -v examples/foo.rs +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sun May 24 08:03:54 CEST 2020 Igor Raits - 0.1.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..3875819 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (piper-0.1.2.crate) = 63546936df0456d3ebe50759f4577eeb0e0b5b2afdd4b4fe91acad70352dede729f26b038aa5828643eb897d0dff9fabab197de0c9670a118375697217e5d553