Accepting request 922080 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/922080 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sccache?expand=0&rev=6
This commit is contained in:
parent
3c9206d6b1
commit
fe000d8c2b
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 28 00:57:24 UTC 2021 - William Brown <william.brown@suse.com>
|
||||||
|
|
||||||
|
- Change from rust-packaging to cargo-packaging
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 5 05:15:58 UTC 2021 - William Brown <william.brown@suse.com>
|
Mon Jul 5 05:15:58 UTC 2021 - William Brown <william.brown@suse.com>
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2
|
|
||||||
%define configdir %{_sysconfdir}/%{name}
|
%define configdir %{_sysconfdir}/%{name}
|
||||||
|
|
||||||
Name: sccache
|
Name: sccache
|
||||||
@ -34,7 +33,7 @@ Source11: sccache-dist-scheduler.service
|
|||||||
Source12: builder.conf
|
Source12: builder.conf
|
||||||
Source13: scheduler.conf
|
Source13: scheduler.conf
|
||||||
Source14: client.example
|
Source14: client.example
|
||||||
BuildRequires: rust-packaging
|
BuildRequires: cargo-packaging
|
||||||
BuildRequires: pkgconfig(openssl)
|
BuildRequires: pkgconfig(openssl)
|
||||||
Requires: bubblewrap
|
Requires: bubblewrap
|
||||||
ExcludeArch: s390 ppc ppc64
|
ExcludeArch: s390 ppc ppc64
|
||||||
@ -54,13 +53,12 @@ cp %{SOURCE2} .cargo/config
|
|||||||
find vendor -type f -name \*.rs -exec chmod -x '{}' \;
|
find vendor -type f -name \*.rs -exec chmod -x '{}' \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export RUSTFLAGS="%{rustflags}"
|
|
||||||
# 'dist-server' available only on x86_64 so far - https://github.com/mozilla/sccache/issues/656
|
# 'dist-server' available only on x86_64 so far - https://github.com/mozilla/sccache/issues/656
|
||||||
features="all,dist-client"
|
features="all,dist-client"
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
features="$features,dist-server"
|
features="$features,dist-server"
|
||||||
%endif
|
%endif
|
||||||
cargo build --offline --release --features=$features
|
%{cargo_build} --features=$features
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -D -d -m 0755 %{buildroot}%{_bindir}
|
install -D -d -m 0755 %{buildroot}%{_bindir}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user