Davide Cavalca 4 years ago
parent 2c46b3dab4
commit 4b3de8d753

1
.gitignore vendored

@ -0,0 +1 @@
/xi-unicode-0.3.0.crate

@ -0,0 +1,73 @@
# Generated by rust2rpm 16
%bcond_without check
%global debug_package %{nil}
%global crate xi-unicode
Name: rust-%{crate}
Version: 0.3.0
Release: 1%{?dist}
Summary: Unicode utilities useful for text editing, including a line breaking iterator
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: https://crates.io/crates/xi-unicode
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Unicode utilities useful for text editing, including a line breaking iterator.}
%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
%{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 May 09 10:56:53 PDT 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.3.0-1
- Initial package

@ -0,0 +1 @@
SHA512 (xi-unicode-0.3.0.crate) = 39875839dcf90b391e76a6b2c2efb2e6f8bfdfdaa59c4815bab8f24412f840c6b01232b5bd79a8f8c6bf7733333e5915c2a7235d27f890b883d6658094bf6271
Loading…
Cancel
Save