ccache/ccache.spec
Danilo Spinella 88d6d09d52 Accepting request 1005766 from home:dirkmueller:Factory
- update to 4.6.3:
  * Fixed detection of PCH header for concatenated `-include` option (e.g.,
   `-includepch.h` instead of `-include pch.h`).
  * Fixed build with musl when using GCC 12.
  * Disabled the `"Failure to write output file"` when running on a filesystem
   that doesn't support read-only directories.
  * Fixed a race condition that could lead to a crash if a file in the cache is
    removed with unlucky timing, e.g. by another ccache process doing cache
    cleanup.
  * Dependency file rewriting will now always be performed if
    `base_dir`/`CCACHE_BASEDIR` is active. This fixes a problem with the
    dependency file content when Clang is used with `-fsanitize=address`.
  * Fixed handling of error condition for `--hash-file`/`--checksum-file`.
  * Made sure to enable the inode cache only if subsecond `stat` timestamps are
    available.
  * Added a work-around for a Clang bug when writing to a full NFS file system.
  * Made failure writing to the output file increment the "`bad output file`"
    counter instead of "`cache miss`".
  * Fixed false positive cache hits for code constructions similar to
    `__asm__(".incbin" " \"file\"")`.
  * Fixed false success for `-fcolor-diagnostics` probe with GCC. A side effect of
    this is that a compiler type that ccache can't identify from the compiler name
    (such as `/usr/bin/cc` where `cc` is not a symlink) from now on won't produce
    color diagnostics when used via ccache even if the compiler actually is GCC or
    Clang.
  * More cases of invalid secondary storage URLs are now handled gracefully.
  * Fixed the display of maximum cache size in `ccache -s` if it's 0 (=
    unlimited).
  * Removed AsciiDoc markup from help text of `--trim-dir`.
  * The temporary directory is now cleaned up properly even if it's left

OBS-URL: https://build.opensuse.org/request/show/1005766
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=125
2022-09-26 08:02:35 +00:00

82 lines
2.3 KiB
RPMSpec

#
# spec file for package ccache
#
# Copyright (c) 2022 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/
#
Name: ccache
Version: 4.6.3
Release: 0
Summary: A Fast C/C++ Compiler Cache
License: GPL-3.0-or-later
URL: https://ccache.dev/
Source0: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz
Source1: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz.asc
Source2: %{name}.keyring
%ifnarch %ix86 %arm
Patch0: fix2038.patch
%endif
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libzstd-devel >= 1.1.2
BuildRequires: rubygem(asciidoctor)
Provides: distcc:%{_bindir}/ccache
%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
%autosetup -p1
%build
%cmake \
-DREDIS_STORAGE_BACKEND=OFF
%cmake_build
%make_build doc
%install
%cmake_install
# create the compat symlinks into /usr/libdir/ccache
mkdir -p %{buildroot}/%{_libdir}/%{name}
cd %{buildroot}/%{_libdir}/%{name}
ln -sf ../../bin/%{name} gcc
ln -sf ../../bin/%{name} g++
ln -sf ../../bin/%{name} gcc-objc
ln -sf ../../bin/%{name} gfortran
# do the same for clang
ln -sf ../../bin/%{name} clang
ln -sf ../../bin/%{name} clang++
# and regular cc
ln -sf ../../bin/%{name} cc
ln -sf ../../bin/%{name} c++
# and for nvidia cuda
ln -sf ../../bin/%{name} nvcc
%check
%ctest
%files
%license LICENSE.* GPL-3.0.txt
%doc doc/AUTHORS.* doc/MANUAL.* doc/NEWS.* README.*
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog