From d5d4db7a96bf88df0f24f97c8e5df50c1948087d Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Mar 20 2019 02:11:02 +0000 Subject: Initial import (#1689536) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.gitignore diff --git a/rust-stb_truetype.spec b/rust-stb_truetype.spec new file mode 100644 index 0000000..ff1f53f --- /dev/null +++ b/rust-stb_truetype.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm +# Upstream doesn't provide the necessary fonts in the crate for the test +# https://gitlab.redox-os.org/redox-os/stb_truetype-rs/issues/22 +%bcond_with check +%global debug_package %{nil} + +%global crate stb_truetype + +Name: rust-%{crate} +Version: 0.2.6 +Release: 1%{?dist} +Summary: Straight translation of the font loading code in stb_truetype.h from C to Rust + +# Upstream license specification: MIT / Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/stb_truetype +Source: %{crates_source} +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +BuildRequires: (crate(byteorder/default) >= 1.1.0 with crate(byteorder/default) < 2.0.0) +%if %{with check} +BuildRequires: (crate(approx) >= 0.3.0 with crate(approx) < 0.4.0) +%endif + +%global _description \ +Straight translation of the font loading code in stb_truetype.h from C to\ +Rust. + +%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 +%doc README.md CHANGELOG.md +%license LICENSE-APACHE LICENSE-MIT +%{cargo_registry}/%{crate}-%{version}/ + +%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}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sat Mar 16 2019 Robert-André Mauchin - 0.2.6-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sources diff --git a/stb_truetype-0.2.6.crate b/stb_truetype-0.2.6.crate new file mode 100644 index 0000000..3f89073 Binary files /dev/null and b/stb_truetype-0.2.6.crate differ