Compare commits
No commits in common. "factory" and "factory" have entirely different histories.
@ -1,14 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu Oct 10 07:38:46 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
|
||||||
|
|
||||||
- Really run tests and Unit tests in %check
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Oct 9 07:02:39 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
|
||||||
|
|
||||||
- avoid optional dependency on doctest on SLE16 and older
|
|
||||||
- unbundle cpp-httplib for new enough distributions
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 12 14:07:19 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Thu Sep 12 14:07:19 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
24
ccache.spec
24
ccache.spec
@ -22,12 +22,6 @@
|
|||||||
%else
|
%else
|
||||||
%bcond_with hiredis
|
%bcond_with hiredis
|
||||||
%endif
|
%endif
|
||||||
# Run tests only on TW
|
|
||||||
%if %{?suse_version} > 1600
|
|
||||||
%bcond_without test
|
|
||||||
%else
|
|
||||||
%bcond_with test
|
|
||||||
%endif
|
|
||||||
Name: ccache
|
Name: ccache
|
||||||
Version: 4.10.2
|
Version: 4.10.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -38,12 +32,12 @@ Source0: https://github.com/ccache/ccache/releases/download/v%{version}/c
|
|||||||
Source1: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz.asc
|
Source1: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz.asc
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
|
BuildRequires: doctest-devel
|
||||||
BuildRequires: fmt-devel
|
BuildRequires: fmt-devel
|
||||||
%if %{?suse_version} > 1500
|
%if %{?suse_version} > 1500
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig(cpp-httplib)
|
# SLE requires gcc11 for std::filesystem
|
||||||
# SLE15 requires gcc11 for std::filesystem
|
|
||||||
%else
|
%else
|
||||||
BuildRequires: gcc11
|
BuildRequires: gcc11
|
||||||
BuildRequires: gcc11-c++
|
BuildRequires: gcc11-c++
|
||||||
@ -54,12 +48,11 @@ BuildRequires: xxhash-devel
|
|||||||
BuildRequires: pkgconfig(libzstd) >= 1.1.2
|
BuildRequires: pkgconfig(libzstd) >= 1.1.2
|
||||||
BuildRequires: rubygem(asciidoctor)
|
BuildRequires: rubygem(asciidoctor)
|
||||||
Provides: distcc:%{_bindir}/ccache
|
Provides: distcc:%{_bindir}/ccache
|
||||||
|
%ifnarch %{ix86} %{arm}
|
||||||
|
%endif
|
||||||
%if %{with hiredis}
|
%if %{with hiredis}
|
||||||
BuildRequires: pkgconfig(hiredis) >= 0.13.3
|
BuildRequires: pkgconfig(hiredis) >= 0.13.3
|
||||||
%endif
|
%endif
|
||||||
%if %{with test}
|
|
||||||
BuildRequires: doctest-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ccache is a compiler cache. It speeds up recompilation by caching the
|
ccache is a compiler cache. It speeds up recompilation by caching the
|
||||||
@ -76,9 +69,6 @@ export CC=gcc-11 CXX=g++-11
|
|||||||
%endif
|
%endif
|
||||||
%cmake \
|
%cmake \
|
||||||
-DFETCHCONTENT_FULLY_DISCONNECTED=ON \
|
-DFETCHCONTENT_FULLY_DISCONNECTED=ON \
|
||||||
%if %{without test}
|
|
||||||
-DENABLE_TESTING=OFF \
|
|
||||||
%endif
|
|
||||||
%if !%{with hiredis}
|
%if !%{with hiredis}
|
||||||
-DREDIS_STORAGE_BACKEND=OFF \
|
-DREDIS_STORAGE_BACKEND=OFF \
|
||||||
%endif
|
%endif
|
||||||
@ -106,14 +96,8 @@ ln -sf ../../bin/%{name} c++
|
|||||||
ln -sf ../../bin/%{name} nvcc
|
ln -sf ../../bin/%{name} nvcc
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
|
||||||
for dir in build/test build/unittest; do
|
|
||||||
pushd $dir
|
|
||||||
# running the test with multiple threads will make tests fail
|
# running the test with multiple threads will make tests fail
|
||||||
%{__ctest} --output-on-failure --force-new-ctest-process -j1
|
%{__ctest} --output-on-failure --force-new-ctest-process -j1
|
||||||
popd
|
|
||||||
done
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE.* GPL-3.0.txt
|
%license LICENSE.* GPL-3.0.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user