[packages/sccache] New, Version 0.2.13.

glen glen at pld-linux.org
Wed Mar 17 11:21:29 CET 2021


commit c609d31dde9f0076aee9bfbabfa18658f2cd4c83
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Fri Oct 16 16:01:10 2020 +0300

    New, Version 0.2.13.
    
    Created from:
    - https://build.opensuse.org/package/view_file/devel:tools:building/sccache/sccache.spec?rev=3778fa1fe008fed0bde772b0ab0fa534
    
    Refs:
    - https://build.opensuse.org/request/show/830788

 sccache.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
---
diff --git a/sccache.spec b/sccache.spec
new file mode 100644
index 0000000..038d37b
--- /dev/null
+++ b/sccache.spec
@@ -0,0 +1,56 @@
+Summary:	sccache is ccache with cloud storage
+Name:		sccache
+Version:	0.2.13
+Release:	0.1
+License:	Apache v2.0
+Group:		Development/Tools
+Source0:	https://github.com/mozilla/sccache/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	acc81e9b1c7097d4119ad31cd6a845a9
+#Source1:	vendor.tar.gz
+URL:		https://github.com/mozilla/sccache
+BuildRequires:	openssl-devel
+BuildRequires:	rust-packaging
+ExcludeArch:	s390 s390x ppc ppc64 ppc64le
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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
+
+install -d .cargo
+cat >.cargo/config <<EOF
+
+[source.crates-io]
+registry = 'https://github.com/rust-lang/crates.io-index'
+replace-with = 'vendored-sources'
+[source.vendored-sources]
+directory = './vendor'
+[install]
+root = '$RPM_BUILD_ROOT%{_prefix}'
+[term]
+verbose = true
+
+EOF
+
+%build
+%cargo_build
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%cargo_install
+
+find $RPM_BUILD_ROOT -name .crates2.json -delete
+rm -rf $RPM_BUILD_ROOT%{_datadir}/cargo/registry
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%attr(755,root,root) %{_bindir}/sccache
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sccache.git/commitdiff/c609d31dde9f0076aee9bfbabfa18658f2cd4c83



More information about the pld-cvs-commit mailing list