Accepting request 897041 from home:firstyear:branches:devel:languages:rust
- Update to to build from _service with cargo-audit integration OBS-URL: https://build.opensuse.org/request/show/897041 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust-cbindgen?expand=0&rev=31
This commit is contained in:
parent
20ff43ddfa
commit
8d8240db03
11
UPDATING.md
Normal file
11
UPDATING.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
## Updating with OBS Services
|
||||||
|
|
||||||
|
To do an update:
|
||||||
|
|
||||||
|
* Edit \_service and change `<param name="revision">v0.19.0</param>` to match the release tag version from upstream
|
||||||
|
* Optional: Change `<param name="changesauthor"></param>` to your email address
|
||||||
|
* Run `osc service ra` - this will download the git sources, tar it, and vendor the dependencies.
|
||||||
|
* osc rm the "old" source tar
|
||||||
|
* osc add the "new" source tar
|
||||||
|
* test build with osc build
|
||||||
|
* osc ci / osc sr as normal.
|
26
_service
Normal file
26
_service
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<services>
|
||||||
|
<service mode="disabled" name="obs_scm">
|
||||||
|
<param name="url">https://github.com/eqrion/cbindgen.git</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="revision">v0.19.0</param>
|
||||||
|
<param name="match-tag">*</param>
|
||||||
|
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
|
||||||
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
<param name="changesauthor">william.brown@suse.com</param>
|
||||||
|
</service>
|
||||||
|
<service mode="disabled" name="tar" />
|
||||||
|
<service mode="disabled" name="recompress">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service mode="disabled" name="set_version"/>
|
||||||
|
<service name="cargo_vendor" mode="disabled">
|
||||||
|
<param name="srcdir">cbindgen</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="cargo_audit" mode="disabled">
|
||||||
|
<param name="srcdir">cbindgen</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
5
cargo_config
Normal file
5
cargo_config
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[source.crates-io]
|
||||||
|
replace-with = "vendored-sources"
|
||||||
|
|
||||||
|
[source.vendored-sources]
|
||||||
|
directory = "vendor"
|
3
cbindgen-0.19.0+git0.tar.xz
Normal file
3
cbindgen-0.19.0+git0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:669975a294a725727f4b4dc90825f1a10513c3db8dad2d64bef0990192bb5a50
|
||||||
|
size 5922036
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5a068b3d4cd0319b12844c83816d63e2e9ce8176bd2d78ca0ac03d4833bcbab7
|
|
||||||
size 192820
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 02 05:23:06 UTC 2021 - william.brown@suse.com
|
||||||
|
|
||||||
|
- Update to to build from _service with cargo-audit integration
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 19 12:16:37 UTC 2021 - Martin Sirringhaus <martin.sirringhaus@suse.com>
|
Mon Apr 19 12:16:37 UTC 2021 - Martin Sirringhaus <martin.sirringhaus@suse.com>
|
||||||
|
|
||||||
|
@ -20,14 +20,15 @@
|
|||||||
%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.19.0
|
Version: 0.19.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
|
||||||
Group: Development/Languages/Rust
|
Group: Development/Languages/Rust
|
||||||
URL: https://crates.io/crates/cbindgen
|
URL: https://crates.io/crates/cbindgen
|
||||||
Source0: https://github.com/eqrion/cbindgen/archive/v%{version}.tar.gz#/%{crate_name}-%{version}.tar.gz
|
Source0: %{crate_name}-%{version}.tar.xz
|
||||||
Source1: vendor.tar.xz
|
Source1: vendor.tar.xz
|
||||||
|
Source2: cargo_config
|
||||||
BuildRequires: cargo >= 1.30.0
|
BuildRequires: cargo >= 1.30.0
|
||||||
BuildRequires: rust >= 1.30.0
|
BuildRequires: rust >= 1.30.0
|
||||||
BuildRequires: rust-std-static >= 1.30.0
|
BuildRequires: rust-std-static >= 1.30.0
|
||||||
@ -39,13 +40,7 @@ A tool for generating C bindings from Rust code.
|
|||||||
%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
|
mkdir cargo-home
|
||||||
cat >cargo-home/config <<EOF
|
cp %{SOURCE2} cargo-home/config
|
||||||
[source.crates-io]
|
|
||||||
registry = 'https://github.com/rust-lang/crates.io-index'
|
|
||||||
replace-with = 'vendored-sources'
|
|
||||||
[source.vendored-sources]
|
|
||||||
directory = './vendor'
|
|
||||||
EOF
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# This should eventually migrate to distro policy
|
# This should eventually migrate to distro policy
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:4e88b4c8614acd7df7e2e02dcdf075a7df4093b8fe7a35b73b612f10ba8c1607
|
oid sha256:269c2c21338c88ca98977013ad1b5330024468eb30440ffd0bdc1a4dd4425640
|
||||||
size 5732872
|
size 5695064
|
||||||
|
Loading…
Reference in New Issue
Block a user