Initial package

epel9
blinxen 2 years ago
parent a5aa82b8a7
commit 217fd00ddc

1
.gitignore vendored

@ -0,0 +1 @@
/unicode-bom-2.0.2.crate

@ -0,0 +1,70 @@
# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate unicode-bom
Name: rust-unicode-bom
Version: 2.0.2
Release: %autorelease
Summary: Unicode byte-order mark detection for files and byte arrays
License: Apache-2.0
URL: https://crates.io/crates/unicode-bom
Source: %{crates_source}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Unicode byte-order mark detection for files and byte arrays.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/CONTRIBUTING.md
%doc %{crate_instdir}/HISTORY.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/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
%autochangelog

@ -0,0 +1 @@
SHA512 (unicode-bom-2.0.2.crate) = 3ba6ac52d2fd356134f0c3be2b29098b189a791b2256d62100687fae07ef9b104be8e7dbc1a496d3f18b3e7349081ca3609d6c1d481dcc2bebd5a4bd52b1197b
Loading…
Cancel
Save