Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37569555
en ru br
Репозитории ALT

Группа :: Development/Tools
Пакет: sccache

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 


%define _unpackaged_files_terminate_build 1
%define _customdocdir %_docdir/%name

%ifarch x86_64 aarch64 %ix86
%def_with gcs
%def_with s3
%else
# gcs feature depends on ring crate, which is not very portable
%def_without gcs
%def_without s3
%endif

Name:    sccache
Version: 0.3.3
Release: alt1

Summary: sccache is ccache with cloud storage
License: Apache-2.0
Group:   Development/Tools
Url:     https://github.com/mozilla/sccache


Source:   %name-%version.tar

# cargo-vendor-filterer --all-features false --offline \

#  --platform x86_64-unknown-linux-gnu --exclude-crate-path zstd-sys#zstd
Source1:  vendor.tar

Patch: %name-%version-%release.patch

BuildRequires(pre): rpm-build-rust
BuildRequires: /proc

BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(openssl)

%description
sccache is a ccache-like compiler caching tool. It is used as a
compiler wrapper and avoids compilation when possible, storing
cached results either on local disk or in one of several cloud
storage backends.

sccache includes support for caching the compilation of C/C++
code, Rust, as well as NVIDIA's CUDA using nvcc.

%prep
%setup
%patch -p1

tar -xf %SOURCE1

mkdir -p .cargo
cat >> .cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
features=dist-client,redis,memcached,azure
%if_with gcs
features="$features",gcs
%endif
%if_with s3
features="$features",s3
%endif
%rust_build --no-default-features --features="$features"

%install
%rust_install

%files
%_bindir/*
%doc README.md docs

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin