Accepting request 1206454 from devel:tools:building
- avoid optional dependency on doctest on SLE16 and older - unbundle cpp-httplib for new enough distributions OBS-URL: https://build.opensuse.org/request/show/1206454 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ccache?expand=0&rev=81
This commit is contained in:
commit
b2cba7794a
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
10
ccache.spec
10
ccache.spec
@ -32,12 +32,15 @@ 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} > 1600
|
||||||
|
BuildRequires: doctest-devel
|
||||||
|
%endif
|
||||||
%if %{?suse_version} > 1500
|
%if %{?suse_version} > 1500
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
# SLE requires gcc11 for std::filesystem
|
BuildRequires: pkgconfig(cpp-httplib)
|
||||||
|
# SLE15 requires gcc11 for std::filesystem
|
||||||
%else
|
%else
|
||||||
BuildRequires: gcc11
|
BuildRequires: gcc11
|
||||||
BuildRequires: gcc11-c++
|
BuildRequires: gcc11-c++
|
||||||
@ -69,6 +72,9 @@ export CC=gcc-11 CXX=g++-11
|
|||||||
%endif
|
%endif
|
||||||
%cmake \
|
%cmake \
|
||||||
-DFETCHCONTENT_FULLY_DISCONNECTED=ON \
|
-DFETCHCONTENT_FULLY_DISCONNECTED=ON \
|
||||||
|
%if 0%{?suse_version} && 0%{?suse_version} < 1600
|
||||||
|
-DENABLE_TESTING=OFF \
|
||||||
|
%endif
|
||||||
%if !%{with hiredis}
|
%if !%{with hiredis}
|
||||||
-DREDIS_STORAGE_BACKEND=OFF \
|
-DREDIS_STORAGE_BACKEND=OFF \
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user