Davide Cavalca 4 years ago
parent 5bb8ceb930
commit 8cdf8c02fa

1
.gitignore vendored

@ -0,0 +1 @@
/cursive_buffered_backend-0.5.0.crate

@ -0,0 +1,78 @@
# Generated by rust2rpm 17
%bcond_without check
%global debug_package %{nil}
%global crate cursive_buffered_backend
Name: rust-%{crate}
Version: 0.5.0
Release: 1%{?dist}
Summary: Buffering backend for any Cursive backend
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/cursive_buffered_backend
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
BuildRequires: sed
%global _description %{expand:
Buffering backend for any Cursive backend.}
%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
# Fix end of line encoding
sed -i 's/\r$//' README.md
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Wed Jun 16 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.5.0-1
- Initial package

@ -0,0 +1 @@
SHA512 (cursive_buffered_backend-0.5.0.crate) = 5128c6cc87aacbfe72cc3bf68b02e7b970367f10b3f2609523d1fea5012f9bc06e639ef9d7c9381b3f26ee254295042b0a5cad858461524502ece962490827d6
Loading…
Cancel
Save