diff --git a/.gitignore b/.gitignore index ce7a36d..1df8fb9 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ /cbindgen-0.15.0.crate /cbindgen-0.17.0.crate /cbindgen-0.20.0.crate +/cbindgen-0.24.3.crate diff --git a/LICENSE.dependencies b/LICENSE.dependencies new file mode 100644 index 0000000..6338d60 --- /dev/null +++ b/LICENSE.dependencies @@ -0,0 +1,27 @@ +(MIT OR Apache-2.0) AND Unicode-DFS-2016: unicode-ident v1.0.3 +Apache-2.0 OR BSL-1.0: ryu v1.0.11 +Apache-2.0 OR MIT: fastrand v1.8.0 +Apache-2.0 OR MIT: indexmap v1.9.1 +MIT OR Apache-2.0: bitflags v1.3.2 +MIT OR Apache-2.0: cfg-if v1.0.0 +MIT OR Apache-2.0: clap v3.2.17 +MIT OR Apache-2.0: clap_lex v0.2.4 +MIT OR Apache-2.0: hashbrown v0.12.3 +MIT OR Apache-2.0: heck v0.4.0 +MIT OR Apache-2.0: itoa v1.0.3 +MIT OR Apache-2.0: libc v0.2.131 +MIT OR Apache-2.0: log v0.4.17 +MIT OR Apache-2.0: os_str_bytes v6.3.0 +MIT OR Apache-2.0: proc-macro2 v1.0.43 +MIT OR Apache-2.0: quote v1.0.21 +MIT OR Apache-2.0: remove_dir_all v0.7.0 +MIT OR Apache-2.0: serde v1.0.144 +MIT OR Apache-2.0: serde_json v1.0.85 +MIT OR Apache-2.0: syn v1.0.99 +MIT OR Apache-2.0: tempfile v3.3.0 +MIT OR Apache-2.0: toml v0.5.9 +MIT: atty v0.2.14 +MIT: strsim v0.10.0 +MIT: textwrap v0.15.0 +MPL-2.0: cbindgen v0.24.3 +Unlicense OR MIT: termcolor v1.1.3 diff --git a/rust-cbindgen.spec b/rust-cbindgen.spec index ec8232c..33d74b4 100644 --- a/rust-cbindgen.spec +++ b/rust-cbindgen.spec @@ -1,47 +1,49 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 22 %bcond_without check %global crate cbindgen -Name: rust-%{crate} -Version: 0.20.0 +Name: rust-cbindgen +Version: 0.24.3 Release: %autorelease Summary: Tool for generating C bindings to Rust code -# Upstream license specification: MPL-2.0 -License: MPLv2.0 +License: MPL-2.0 URL: https://crates.io/crates/cbindgen -Source: %{crates_source} +Source0: %{crates_source} +Source1: LICENSE.dependencies ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Tool for generating C bindings to Rust code.} %description %{_description} -%if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} -# ASL 2.0 or Boost -# ASL 2.0 or MIT +# (MIT OR Apache-2.0) AND Unicode-DFS-2016 +# Apache-2.0 OR BSL-1.0 +# Apache-2.0 OR MIT # MIT -# MIT or ASL 2.0 -# MPLv2.0 -License: MPLv2.0 and MIT and (ASL 2.0 or Boost) +# MIT OR Apache-2.0 +# MPL-2.0 +# Unlicense OR MIT +License: MPL-2.0 AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) +# LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE +%license LICENSE.dependencies %doc README.md +%doc contributing.md +%doc docs.md +%doc internals.md %{_bindir}/cbindgen -%endif %package devel Summary: %{summary} @@ -49,13 +51,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 -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/contributing.md +%doc %{crate_instdir}/docs.md +%doc %{crate_instdir}/internals.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -63,11 +68,11 @@ 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}+clap-devel Summary: %{summary} @@ -75,14 +80,15 @@ BuildArch: noarch %description -n %{name}+clap-devel %{_description} -This package contains library source intended for building other packages -which use "clap" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "clap" feature of the "%{crate}" crate. %files -n %{name}+clap-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 +cp -pav %{SOURCE1} . %cargo_prep %generate_buildrequires diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf diff --git a/sources b/sources index e6744cb..5021207 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cbindgen-0.20.0.crate) = 83c2b0da580f0a2fc9a74922f3c44d0e73ce0d1de8b5a3f5819c7fcf1c481df1ff0346e84c5b4c199a9364542c85fb81ece4e1deca3a6f12231a4478f76a7c02 +SHA512 (cbindgen-0.24.3.crate) = 3a39be67a87aa7a4dd9baaf6b803215f4587bd7925c4315c5ec93954e021471919fa977ad2084f099c606daa392350de3557bba56cef77806def99c40318ef05