The package rpms/rust-imgui-sys.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/rust-imgui-sys.git/commit/?id=26b549....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit 26b54929f8a70dc0b693f1c3a7ee21d4334af210 Author: Rémi Lauzier remilauzier@protonmail.com Date: Fri Jun 11 13:27:33 2021 -0400
Initial import
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..49156aa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/imgui-sys-0.7.0.crate diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..1b7a8a2 --- /dev/null +++ b/README.markdown @@ -0,0 +1,10 @@ +# imgui-sys: Low level bindings + +This crate contains the raw FFI bindings to the Dear ImGui C++ +library, by using the [cimgui](https://github.com/cimgui/cimgui) (a C +API wrapper project for Dear ImGui), then creating Rust bindings using +[bindgen](https://github.com/rust-lang/rust-bindgen). + +These low level, mostly `unsafe` bindings are then used by `imgui-rs` +which wraps them in a nice to use, mostly safe API. Therefore most +users should not need to interact with this crate directly. diff --git a/rust-imgui-sys.spec b/rust-imgui-sys.spec new file mode 100644 index 0000000..478788e --- /dev/null +++ b/rust-imgui-sys.spec @@ -0,0 +1,91 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate imgui-sys + +Name: rust-%{crate} +Version: 0.7.0 +Release: 1%{?dist} +Summary: Raw FFI bindings to dear imgui + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/imgui-sys +Source: %{crates_source} +Source1: https://raw.githubusercontent.com/imgui-rs/imgui-rs/master/imgui-sys/README.... + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging +BuildRequires: gcc-c++ + +%global _description %{expand: +Raw FFI bindings to dear imgui.} + +%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.markdown +%license LICENSE.txt +%{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 + +%package -n %{name}+wasm-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+wasm-devel %{_description} + +This package contains library source intended for building other packages +which use "wasm" feature of "%{crate}" crate. + +%files -n %{name}+wasm-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep +cp %{SOURCE1} README.markdown +cp third-party/imgui/LICENSE.txt LICENSE.txt + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jun 07 02:20:53 EDT 2021 Rémi Lauzier remilauzier@protonmail.com - 0.7.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..600ad2b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (imgui-sys-0.7.0.crate) = 3583ac5b55bec7b2ac31e3fc420e84fcec5b693fbbab436d59fa7ea61487f03e4dc614c2f2ada284ca50d5330e00882418f8215e5e9beb533d7886155e757169