Accepting request 1110960 from home:firstyear:branches:devel:languages:rust
- Update to version 0.26.0+git0: * v0.26.0 * Update MSRV in Readme * Add support for out-of-line bitfields declarations * Update URLs * Bump clippy msrv to 1.64 * Handle bitflags bits method calls * CHANGES: Note #[deprecated] support. * utilities: annotation: Clean-up deprecated parsing and getter. * Add support for #[deprecated]. * Support "C-unwind" ABI OBS-URL: https://build.opensuse.org/request/show/1110960 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust-cbindgen?expand=0&rev=50
This commit is contained in:
parent
6fc71bfdfd
commit
bb37147492
2
_service
2
_service
@ -3,7 +3,7 @@
|
|||||||
<param name="url">https://github.com/eqrion/cbindgen.git</param>
|
<param name="url">https://github.com/eqrion/cbindgen.git</param>
|
||||||
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@</param>
|
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@</param>
|
||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
<param name="revision">v0.25.0</param>
|
<param name="revision">v0.26.0</param>
|
||||||
<param name="match-tag">*</param>
|
<param name="match-tag">*</param>
|
||||||
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
|
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
|
||||||
<param name="versionrewrite-replacement">\1</param>
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<servicedata>
|
||||||
|
<service name="tar_scm">
|
||||||
|
<param name="url">https://github.com/eqrion/cbindgen.git</param>
|
||||||
|
<param name="changesrevision">703b53c06f9fe2dbc0193d67626558cfa84a0f62</param></service></servicedata>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:651ba22ee1e0c61377056340963bd13d961b64a594877b7c45c88a3fe5485bc5
|
|
||||||
size 174882
|
|
BIN
cbindgen-0.26.0+git0.tar.zst
(Stored with Git LFS)
Normal file
BIN
cbindgen-0.26.0+git0.tar.zst
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 13 23:31:17 UTC 2023 - william.brown@suse.com
|
||||||
|
|
||||||
|
- Update to version 0.26.0+git0:
|
||||||
|
* v0.26.0
|
||||||
|
* Update MSRV in Readme
|
||||||
|
* Add support for out-of-line bitfields declarations
|
||||||
|
* Update URLs
|
||||||
|
* Bump clippy msrv to 1.64
|
||||||
|
* Handle bitflags bits method calls
|
||||||
|
* CHANGES: Note #[deprecated] support.
|
||||||
|
* utilities: annotation: Clean-up deprecated parsing and getter.
|
||||||
|
* Add support for #[deprecated].
|
||||||
|
* Support "C-unwind" ABI
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 04 23:21:09 UTC 2023 - william.brown@suse.com
|
Mon Sep 04 23:21:09 UTC 2023 - william.brown@suse.com
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
%global crate_name cbindgen
|
%global crate_name cbindgen
|
||||||
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now
|
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now
|
||||||
Name: rust-%{crate_name}
|
Name: rust-%{crate_name}
|
||||||
Version: 0.25.0+git0
|
Version: 0.26.0+git0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A tool for generating C bindings from Rust code
|
Summary: A tool for generating C bindings from Rust code
|
||||||
License: MPL-2.0
|
License: MPL-2.0
|
||||||
@ -40,32 +40,17 @@ A tool for generating C bindings from Rust code.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -T -b 0 -n %{crate_name}-%{version}
|
%setup -q -T -b 0 -n %{crate_name}-%{version}
|
||||||
%setup -q -D -T -a 1 -n %{crate_name}-%{version}
|
%setup -q -D -T -a 1 -n %{crate_name}-%{version}
|
||||||
mkdir cargo-home
|
install -D -m 644 %{SOURCE2} .cargo/config
|
||||||
cp %{SOURCE2} cargo-home/config
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# This should eventually migrate to distro policy
|
%{cargo_build}
|
||||||
# Enable optimization, debuginfo, and link hardening.
|
|
||||||
export RUSTFLAGS="%{rustflags}"
|
|
||||||
export CARGO_HOME=`pwd`/cargo-home/
|
|
||||||
|
|
||||||
cargo build --release
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# rustflags must be exported again at install as cargo build will
|
install -D -d -m 0755 %{buildroot}%{_bindir}
|
||||||
# rebuild the project if it detects flags have changed (to none or other)
|
install -m 0755 %{_builddir}/%{crate_name}-%{version}/target/release/%{crate_name} %{buildroot}%{_bindir}/%{crate_name}
|
||||||
export RUSTFLAGS="%{rustflags}"
|
|
||||||
# install stage also requires re-export of 'cargo-home' or cargo
|
|
||||||
# will try to download source deps and rebuild
|
|
||||||
export CARGO_HOME=`pwd`/cargo-home/
|
|
||||||
# cargo install appends /bin to the path
|
|
||||||
cargo install --root=%{buildroot}%{_prefix} --path .
|
|
||||||
# remove spurious files
|
|
||||||
rm -f %{buildroot}%{_prefix}/.crates.toml
|
|
||||||
rm -f %{buildroot}%{_prefix}/.crates2.json
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/cbindgen
|
%{_bindir}/%{crate_name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
BIN
vendor.tar.zst
(Stored with Git LFS)
BIN
vendor.tar.zst
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in New Issue
Block a user