Skip to content

Commit

Permalink
[ccache] Update to version 4.9.1. JB#47542
Browse files Browse the repository at this point in the history
Move to using submodule. Cleanup spec.
  • Loading branch information
mlehtima committed May 27, 2024
1 parent ef85c5b commit 182eeee
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 53 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ccache"]
path = ccache
url = https://github.com/sailfishos-mirror/ccache.git
1 change: 1 addition & 0 deletions ccache
Submodule ccache added at ec510e
Binary file removed ccache-3.1.9.tar.gz
Binary file not shown.
42 changes: 0 additions & 42 deletions ccache.spec

This file was deleted.

11 changes: 0 additions & 11 deletions maxsize.patch

This file was deleted.

File renamed without changes.
34 changes: 34 additions & 0 deletions rpm/ccache.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Name: ccache
Summary: C/C++ compiler cache
Version: 4.9.1
Release: 1
License: GPLv3+
URL: https://github.com/sailfishos/ccache
Source: %{name}-%{version}.tar.xz
Provides: distcc:/usr/bin/ccache
BuildRequires: cmake
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(zlib)

%description
ccache is a compiler cache. It speeds up recompilation of C/C++ code
by caching previous compiles and detecting when the same compile is
being done again. The main focus is to handle the GNU C/C++ compiler
(GCC), but it may also work with compilers that mimic GCC good enough.

%prep
%autosetup -n %{name}-%{version}/%{name}

%build
%cmake \
-DENABLE_DOCUMENTATION=OFF \
-DOFFLINE=1 \
-DREDIS_STORAGE_BACKEND=OFF
%cmake_build

%install
%cmake_install

%files
%license GPL-3.0.txt
%{_bindir}/ccache

0 comments on commit 182eeee

Please sign in to comment.