9fa00b5fa5
* Added support for `CCACHE_COMPILERCHECK=string:<value>`. This is a faster alternative to `CCACHE_COMPILERCHECK=<command>` if the command's output can be precalculated by the build system. * Add support for caching code coverage results (compiling for gcov). * Fixed bug which could result in false cache hits when source code contains `'"'` followed by `" /*"` or `" //"` (with variations). * Made hash of cached result created with and without `CCACHE_CPP2` different. This makes it possible to rebuild with `CCACHE_CPP2` set without having to clear the cache to get new results. * Don't try to reset a non-existing stats file. This avoids ``No such file or directory'' messages in the ccache log when the cache directory doesn't exist. * Fixed a bug where ccache deleted clang diagnostics after compiler failures. * Avoid performing an unnecessary copy of the object file on a cache miss. * Bail out on too hard compiler option `-fmodules`. * Bail out on too hard compiler option `-fplugin=libcc1plugin` (interaction with GDB). * Fixed build error when compiling ccache with recent clang versions. * Removed signal-unsafe code from signal handler. * Corrected logic for when to output cached stderr. * Wipe the whole cached result on failure retrieving a cached file. * Fixed build error when compiling ccache with recent clang OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=36
65 lines
2.0 KiB
RPMSpec
65 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package ccache
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ccache
|
|
Version: 3.2.2
|
|
Release: 0
|
|
Summary: A Fast C/C++ Compiler Cache
|
|
License: GPL-3.0+
|
|
Group: Development/Languages/C and C++
|
|
Url: http://ccache.samba.org/
|
|
Source0: http://samba.org/ftp/%{name}/%{name}-%{version}.tar.xz
|
|
Source1: http://samba.org/ftp/%{name}/%{name}-%{version}.tar.xz.asc
|
|
Source2: %{name}.keyring
|
|
BuildRequires: xz
|
|
BuildRequires: zlib-devel
|
|
Provides: distcc:/usr/bin/ccache
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
ccache is a compiler cache. It speeds up recompilation by caching the result of
|
|
previous compilations and detecting when the same compilation is being done
|
|
again. Supported languages are C, C++, Objective-C and Objective-C++.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot} %{?_smp_mflags}
|
|
|
|
%check
|
|
%ifarch i586
|
|
# On i586 use only quick minimal testsuite, full one fails
|
|
# (https://bugzilla.samba.org/show_bug.cgi?id=11109)
|
|
# We disable the full test-suite on x86-64 too because
|
|
# "readonly" testsuite takes forever on OBS.
|
|
make quicktest %{?_smp_mflags}
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS.* GPL-3.0.txt LICENSE.* MANUAL.* NEWS.* README.*
|
|
%doc %{_mandir}/man1/%{name}.1%{ext_man}
|
|
%{_bindir}/%{name}
|
|
|
|
%changelog
|