From 760a458d127e95c22ce23d40b5fd4269168e3bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 25 Feb 2022 15:24:21 +0100 Subject: [PATCH] Version 0.4.2 (rhbz#2023470) --- .gitignore | 1 + rust-raw-window-handle.spec | 44 ++++++++++++++++++------------------- sources | 2 +- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index dfc4495..72d3931 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /raw-window-handle-0.3.3.crate +/raw-window-handle-0.4.2.crate diff --git a/rust-raw-window-handle.spec b/rust-raw-window-handle.spec index 09d8c43..7e03ce9 100644 --- a/rust-raw-window-handle.spec +++ b/rust-raw-window-handle.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate raw-window-handle Name: rust-%{crate} -Version: 0.3.3 +Version: 0.4.2 Release: %autorelease Summary: Interoperability library for Rust Windowing applications -# Upstream license specification: MIT -License: MIT +# Upstream license specification: MIT OR Apache-2.0 OR Zlib +License: MIT or ASL 2.0 or zlib URL: https://crates.io/crates/raw-window-handle Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Interoperability library for Rust Windowing applications.} @@ -32,13 +29,16 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%doc README.md CHANGELOG.md -%license LICENSE -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%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} @@ -46,23 +46,23 @@ 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. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+nightly-docs-devel +%package -n %{name}+alloc-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+nightly-docs-devel %{_description} +%description -n %{name}+alloc-devel %{_description} -This package contains library source intended for building other packages -which use "nightly-docs" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. -%files -n %{name}+nightly-docs-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index ad9a15d..959f719 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (raw-window-handle-0.3.3.crate) = 1939150cbf471a33654aeb953bf2dfe48e2fa7789d4a7a43fe449585737741cf03c4f13b2d3d3855f110f2cb8b91c15cca17e7f8ce1f6b63fc8d2e32ed3fefb4 +SHA512 (raw-window-handle-0.4.2.crate) = 71f5c91102aea0f1299cad3877ebe28b662874089ebcd5270efac5dc07fe870449f3d813ff190789b4dac475d0ceacd089653925637948b8d34042d7a67dc29b