Initial import

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
epel9
Igor Raits 5 years ago
parent 22444ee122
commit 2c85c67062
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

1
.gitignore vendored

@ -0,0 +1 @@
/piper-0.1.2.crate

@ -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 <i.gnatenko.brain@gmail.com> - 0.1.2-1
- Initial package

@ -0,0 +1 @@
SHA512 (piper-0.1.2.crate) = 63546936df0456d3ebe50759f4577eeb0e0b5b2afdd4b4fe91acad70352dede729f26b038aa5828643eb897d0dff9fabab197de0c9670a118375697217e5d553
Loading…
Cancel
Save