Accepting request 965111 from home:firstyear:branches:devel:languages:rust
- Ungate sccache from other arches OBS-URL: https://build.opensuse.org/request/show/965111 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/sccache?expand=0&rev=13
This commit is contained in:
18
sccache.spec
18
sccache.spec
@@ -36,7 +36,6 @@ Source14: client.example
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
Requires: bubblewrap
|
||||
ExclusiveArch: x86_64 i586 i686 %{arm} aarch64 s390x
|
||||
|
||||
%description
|
||||
Sccache is a ccache-like tool. It is used as a compiler wrapper and
|
||||
@@ -53,18 +52,19 @@ cp %{SOURCE2} .cargo/config
|
||||
find vendor -type f -name \*.rs -exec chmod -x '{}' \;
|
||||
|
||||
%build
|
||||
# 'dist-server' available only on x86_64 so far - https://github.com/mozilla/sccache/issues/656
|
||||
features="azure,s3,memcached,redis"
|
||||
|
||||
%ifarch x86_64
|
||||
features="$features,dist-server,dist-client"
|
||||
%endif
|
||||
# s390x can NOT build gcs support, ring fails. Use FS only
|
||||
%ifarch s390x
|
||||
# 'dist-server' available only on x86_64 so far - https://github.com/mozilla/sccache/issues/656
|
||||
features="azure,s3,redis,dist-server,dist-client"
|
||||
%else
|
||||
%ifarch aarch64
|
||||
features="azure,s3,redis"
|
||||
%else
|
||||
# Most other arches have issues (especially with ring). Use FS cache only
|
||||
features=""
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%{cargo_build} --features=$features
|
||||
%{cargo_build} --no-default-features --features=$features
|
||||
|
||||
%install
|
||||
install -D -d -m 0755 %{buildroot}%{_bindir}
|
||||
|
Reference in New Issue
Block a user