diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c90a13 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/raw-window-handle-0.5.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index a088010..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-raw-window-handle0.5 - -The rust-raw-window-handle0.5 package diff --git a/rust-raw-window-handle0.5.spec b/rust-raw-window-handle0.5.spec new file mode 100644 index 0000000..7e9af8d --- /dev/null +++ b/rust-raw-window-handle0.5.spec @@ -0,0 +1,95 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate raw-window-handle + +Name: rust-raw-window-handle0.5 +Version: 0.5.2 +Release: %autorelease +Summary: Interoperability library for Rust Windowing applications + +License: MIT OR Apache-2.0 OR Zlib +URL: https://crates.io/crates/raw-window-handle +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Interoperability library for Rust Windowing applications.} + +%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-APACHE.md +%license %{crate_instdir}/LICENSE-MIT.md +%license %{crate_instdir}/LICENSE-ZLIB.md +%doc %{crate_instdir}/CHANGELOG.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 + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..4abf24c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (raw-window-handle-0.5.2.crate) = 51d93a4609533742178ab15d4454ffca1668e2a03c2a6e742ee2a61554564c74307311a50e3992919451f4f4d30ac112284413fb4310abbf06c0fa24d85d5971