sccache/sccache.spec

120 lines
4.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package sccache
#
Accepting request 1140754 from home:firstyear:branches:devel:languages:rust - Update to version 0.7.5~9: * Add experimental concurrent cache support * feat(cache/oss): add support for oss (#2046) * Improve of the description * fix(src/compiler/c): take common_args into account during preprocessor hashing (#2039) * Add support for symlinks in toolchains. (#2030) * Fix docs on integrating sccache with MSVC when cmake >= 3.25 (#2031) * refactor: Remove all dependences on ring 0.16 (#2036) * feat(redis): add support for ttl, fix #1666 (#2027) * Prepare version 0.7.5 * fix(src/compiler/msvc): add a new encode/decode test ... * fix(src/compiler/msvc): use pre-encoded UTF-16 data ... * chore(src/compiler/msvc): replace rust-encoding with encoding-rs ... * build(deps): bump serde from 1.0.194 to 1.0.195 (#2017) * build(deps): bump libc from 0.2.151 to 0.2.152 (#2019) * build(deps): bump base64 from 0.21.5 to 0.21.6 (#2016) * build(deps): bump opendal from 0.44.0 to 0.44.1 (#2014) * feat(snap): add sccache-dist binary to the Snap * chore(snap): adapt the configurations to Snapcraft 8.0 * build(deps): bump actions/github-script from 6 to 7 * build(deps): bump actions/download-artifact from 3 to 4 * build(deps): bump actions/upload-artifact from 3 to 4 * chore(cargo): update dependencies to compatible versions (#2009) * build(deps): bump tar from 0.4.38 to 0.4.40 * build(deps): bump test-case from 3.2.1 to 3.3.1 * Clone repo in ci * Fix typo * Add ci feature check * Expand cfg for operator storage impl * Add i686 and fix armv7 OBS-URL: https://build.opensuse.org/request/show/1140754 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/sccache?expand=0&rev=58
2024-02-07 06:07:46 +00:00
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define configdir %{_sysconfdir}/%{name}
Name: sccache
Accepting request 1177825 from home:firstyear:branches:devel:languages:rust - Update to version 0.8.1~2: * Add experimental concurrent cache support * deps: bump libc from 0.2.153 to 0.2.155 (#2188) * sccache: prepare new release (#2179) * build(deps): bump bytes from 1.5.0 to 1.6.0 (#2176) * build(deps): bump encoding_rs from 0.8.33 to 0.8.34 (#2178) * build(deps): bump semver from 1.0.22 to 1.0.23 (#2177) * build(deps): bump tempfile from 3.9.0 to 3.10.1 (#2175) * build(deps): bump time from 0.3.31 to 0.3.36 (#2184) * Make preprocessor cache methods async (#2182) * Make recent versions of clippy happy (#2181) * Allow SCCACHE_CACHE_SIZE values without a unit (#2183) * Disable preprocessor cache when doing distributed compilation (#2173) * build(deps): bump jobserver from 0.1.28 to 0.1.31 (#2166) * build(deps): bump tokio from 1.35.1 to 1.37.0 (#2165) * build(deps): bump http-body-util from 0.1.0 to 0.1.1 (#2167) * build(deps): bump serde from 1.0.199 to 1.0.201 (#2171) * build(deps): bump serde from 1.0.195 to 1.0.199 (#2162) * build(deps): bump semver from 1.0.21 to 1.0.22 (#2109) * build(deps): bump nix from 0.27.1 to 0.28.0 (#2108) * build(deps): bump mio from 0.8.10 to 0.8.11 (#2128) * build(deps): bump h2 from 0.3.24 to 0.3.26 (#2144) * msvc: passthrough argument -Qpar- (#1834) * build(deps): bump rustls from 0.21.10 to 0.21.11 (#2151) * build(deps): bump serial_test from 2.0.0 to 3.1.0 (#2158) * Add required winapi features (#2160) OBS-URL: https://build.opensuse.org/request/show/1177825 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/sccache?expand=0&rev=62
2024-05-31 03:50:55 +00:00
Version: 0.8.1~2
Release: 0
Summary: A compiler caching tool for Rust, C and C++ with optional cloud storage
License: (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR CC0-1.0) AND ((Apache-2.0 AND BSD-2-Clause) OR MIT) AND (Apache-2.0 OR MIT OR BSD-2-Clause) AND (Apache-2.0 OR MIT OR Zlib) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR Unlicense) AND (Apache-2.0 OR Zlib OR MIT) AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT
Group: Development/Languages/Rust
URL: https://github.com/mozilla/%{name}
Accepting request 1064753 from home:firstyear:branches:devel:languages:rust - Update to version 0.4.0-pre.7 * Force concurrent disk cache by default * Add experimental concurrent cache support * Ignore RPM env vars by default * deps: Cleanup superfluous dependency (#1602) * build(deps): bump cc from 1.0.78 to 1.0.79 (#1583) * build(deps): bump futures from 0.3.25 to 0.3.26 (#1587) * prepare version 0.4.0-pre.7 * feat: Bump OpenDAL and remove hyperx (#1591) * feat: Print sccache version for Server stats (#1580) * Support nvcc's `--threads` flag (#1571) * fix rustfmt * fix: clippy warnings * Support mvsvc flag external:anglebrackets * fix: Sccache dist tests broken after bump to tokio 1.21 and later * build(deps): bump which from 4.3.0 to 4.4.0 * build(deps): bump toml from 0.5.10 to 0.5.11 * build(deps): bump async-trait from 0.1.61 to 0.1.63 * preserve the backtrace in case of crashes * build(deps): bump nix from 0.26.1 to 0.26.2 * build(deps): bump serial_test from 0.10.0 to 1.0.0 * build(deps): bump assert_cmd from 2.0.7 to 2.0.8 * build(deps): bump wiremock from 0.5.16 to 0.5.17 * build(deps): bump zstd from 0.12.1+zstd.1.5.2 to 0.12.2+zstd.1.5.2 * add a profile section * refactor: Migrate memcached to opendal based * prepare version 0.4.0-pre.6 * Remove the author flag Many thanks to Ted and Alex for starting this project Now, many more people are authors too and the ownership can be seen in github already. * build(deps): bump regex from 1.7.0 to 1.7.1 * Use eprintln instead of warn to avoid missing deprecated message OBS-URL: https://build.opensuse.org/request/show/1064753 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/sccache?expand=0&rev=31
2023-02-14 01:31:53 +00:00
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
Source10: sccache-dist-builder.service
Source11: sccache-dist-scheduler.service
Source12: builder.conf
Source13: scheduler.conf
Source14: client.example
BuildRequires: cargo-packaging
BuildRequires: pkgconfig(openssl) >= 3
Requires: bubblewrap
%description
Sccache is a ccache-like tool. It is used as a compiler wrapper and
avoids compilation when possible, storing a cache in a remote storage
using the Amazon Simple Cloud Storage Service (S3) API, Redis or
the Google Cloud Storage (GCS) API.
%prep
%setup -q
%setup -qa1
# Remove exec bits to prevent an issue in fedora shebang checking
find vendor -type f -name \*.rs -exec chmod -x '{}' \;
%build
%ifarch x86_64
# 'dist-server' available only on x86_64 so far - https://github.com/mozilla/sccache/issues/656
features="azure,s3,redis,dist-server,dist-client,concurrent-cache"
%else
%ifarch aarch64
features="azure,s3,redis,concurrent-cache"
%else
# Most other arches have issues (especially with ring). Use FS cache only
features="concurrent-cache"
%endif
%endif
%{cargo_build} --no-default-features --features=$features
%install
install -D -d -m 0755 %{buildroot}%{_bindir}
install -D -d -m 0755 %{buildroot}%{_unitdir}
install -D -d -m 0755 %{buildroot}%{configdir}
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/sccache %{buildroot}%{_bindir}/sccache
%ifarch x86_64
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/sccache-dist %{buildroot}%{_bindir}/sccache-dist
%endif
%ifarch x86_64
install -m 0644 %{SOURCE10} %{buildroot}%{_unitdir}/sccache-dist-builder.service
install -m 0644 %{SOURCE11} %{buildroot}%{_unitdir}/sccache-dist-scheduler.service
%endif
install -m 0644 %{SOURCE12} %{buildroot}%{configdir}/builder.conf
install -m 0644 %{SOURCE13} %{buildroot}%{configdir}/scheduler.conf
install -m 0644 %{SOURCE14} %{buildroot}%{configdir}/client.example
%ifarch x86_64
%pre
%service_add_pre sccache-dist-builder.service
%service_add_pre sccache-dist-scheduler.service
%post
%service_add_post sccache-dist-builder.service
%service_add_post sccache-dist-scheduler.service
%preun
%service_del_preun sccache-dist-builder.service
%service_del_preun sccache-dist-scheduler.service
%postun
%service_del_postun sccache-dist-builder.service
%service_del_postun sccache-dist-scheduler.service
%endif
%files
%license LICENSE
%doc README.md
%{_bindir}/sccache
%ifarch x86_64
%{_bindir}/sccache-dist
%{_unitdir}/sccache-dist-builder.service
%{_unitdir}/sccache-dist-scheduler.service
%endif
%dir %{configdir}
%config(noreplace) %{configdir}/scheduler.conf
%config(noreplace) %{configdir}/builder.conf
%config(noreplace) %{configdir}/client.example
%changelog