2007-01-15 23:06:38 +00:00
|
|
|
#
|
2011-02-27 12:40:18 +00:00
|
|
|
# spec file for package ccache
|
2007-01-15 23:06:38 +00:00
|
|
|
#
|
2020-02-06 11:57:18 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-15 23:06:38 +00:00
|
|
|
#
|
2009-06-17 17:17:34 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-05-02 08:37:18 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:06:38 +00:00
|
|
|
#
|
|
|
|
|
2012-08-11 15:25:03 +00:00
|
|
|
|
2009-06-17 17:17:34 +00:00
|
|
|
Name: ccache
|
2020-04-03 07:50:59 +00:00
|
|
|
Version: 3.7.9
|
2012-01-09 07:32:42 +00:00
|
|
|
Release: 0
|
2011-02-24 19:41:55 +00:00
|
|
|
Summary: A Fast C/C++ Compiler Cache
|
2018-03-15 11:16:17 +00:00
|
|
|
License: GPL-3.0-or-later
|
2019-05-02 08:04:49 +00:00
|
|
|
URL: https://ccache.dev/
|
2019-05-02 08:37:18 +00:00
|
|
|
Source0: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz#/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz.asc#/%{name}-%{version}.tar.xz.asc
|
2015-02-26 10:54:03 +00:00
|
|
|
Source2: %{name}.keyring
|
2011-02-24 19:41:55 +00:00
|
|
|
BuildRequires: zlib-devel
|
2016-07-08 18:09:42 +00:00
|
|
|
Provides: distcc:%{_bindir}/ccache
|
2011-02-24 19:41:55 +00:00
|
|
|
|
2007-01-15 23:06:38 +00:00
|
|
|
%description
|
2016-09-11 08:01:53 +00:00
|
|
|
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++.
|
2007-01-15 23:06:38 +00:00
|
|
|
|
|
|
|
%prep
|
2018-10-22 06:59:31 +00:00
|
|
|
%setup -q
|
2007-01-15 23:06:38 +00:00
|
|
|
|
|
|
|
%build
|
2018-10-22 06:59:31 +00:00
|
|
|
%configure \
|
|
|
|
--without-bundled-zlib
|
2019-10-16 07:22:35 +00:00
|
|
|
%make_build
|
2007-01-15 23:06:38 +00:00
|
|
|
|
|
|
|
%install
|
2016-07-08 18:09:42 +00:00
|
|
|
%make_install
|
2011-02-24 19:41:55 +00:00
|
|
|
|
2015-05-26 08:09:52 +00:00
|
|
|
# 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++
|
2016-09-11 08:01:53 +00:00
|
|
|
ln -sf ../../bin/%{name} gcc-objc
|
2016-09-11 07:53:03 +00:00
|
|
|
ln -sf ../../bin/%{name} gfortran
|
2016-08-26 14:23:03 +00:00
|
|
|
# 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++
|
2015-05-26 08:09:52 +00:00
|
|
|
|
2019-08-26 09:02:33 +00:00
|
|
|
%ifnarch %{ix86}
|
2018-07-13 07:42:15 +00:00
|
|
|
# Testsuite fails on i586
|
2018-07-11 08:41:55 +00:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
2018-07-13 07:42:15 +00:00
|
|
|
%endif
|
2018-07-11 08:41:55 +00:00
|
|
|
|
2007-01-15 23:06:38 +00:00
|
|
|
%files
|
2018-03-15 11:16:17 +00:00
|
|
|
%license LICENSE.* GPL-3.0.txt
|
2018-04-17 13:49:43 +00:00
|
|
|
%doc doc/AUTHORS.* doc/MANUAL.* doc/NEWS.* README.*
|
2015-02-26 10:54:03 +00:00
|
|
|
%{_bindir}/%{name}
|
2015-05-26 08:09:52 +00:00
|
|
|
%{_libdir}/%{name}
|
2018-03-15 11:16:17 +00:00
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2007-01-15 23:06:38 +00:00
|
|
|
|
2009-06-17 17:17:34 +00:00
|
|
|
%changelog
|