Initial package (rhbz#2243298)

epel9 imports/e9/rust-unic-ucd-normal-0.9.0-1.el9
blinxen 1 year ago
parent 6332684efa
commit 422e5fc497

3
.gitignore vendored

@ -0,0 +1,3 @@
/LICENSE-APACHE
/LICENSE-MIT
/unic-ucd-normal-0.9.0.crate

@ -1,3 +0,0 @@
# rust-unic-ucd-normal
The rust-unic-ucd-normal package

@ -0,0 +1,87 @@
# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate unic-ucd-normal
Name: rust-unic-ucd-normal
Version: 0.9.0
Release: %autorelease
Summary: UNIC — Unicode Character Database — Normalization Properties
# Upstream license specification: MIT/Apache-2.0
License: MIT OR Apache-2.0
URL: https://crates.io/crates/unic-ucd-normal
Source: %{crates_source}
# See https://github.com/open-i18n/rust-unic/pull/285
Source1: https://raw.githubusercontent.com/open-i18n/rust-unic/v%{version}/LICENSE-MIT
Source2: https://raw.githubusercontent.com/open-i18n/rust-unic/v%{version}/LICENSE-APACHE
BuildRequires: rust-packaging >= 21
%global _description %{expand:
UNIC — Unicode Character Database — Normalization Properties.}
%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-MIT
%license %{crate_instdir}/LICENSE-APACHE
%{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
%package -n %{name}+unic-ucd-category-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+unic-ucd-category-devel %{_description}
This package contains library source intended for building other packages which
use the "unic-ucd-category" feature of the "%{crate}" crate.
%files -n %{name}+unic-ucd-category-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
# Add license Files
cp %{SOURCE1} .
cp %{SOURCE2} .
%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,3 @@
SHA512 (LICENSE-APACHE) = 175a88be0fdec82e81809921d4e03113c369534f7c1de0594438af5b0c596f26cb713ae0de52de682dbbf725a88340d051631577e10b0092c17b9b04465de3c8
SHA512 (LICENSE-MIT) = e8ce24eee18dd6bd08299c59c1026a537feac332c3de1bba196739864d5a8f616e22fe4fc23688fb105eb702825e538cba5ac705e5e8f5a41fe1657f05277d07
SHA512 (unic-ucd-normal-0.9.0.crate) = 95a2c374867f4b2fc431e6bf14410875b055bdedfafd5d15bb9c1243e1fa6734c7dc94658f44ed34e048dcd55c46d295fde8216189051dcb6e41e9f2cb7fd540
Loading…
Cancel
Save