Dominique Leuenberger 2024-08-07 04:10:31 +00:00 committed by Git OBS Bridge
commit 372c990131
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 6 07:25:44 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Fix conditional build for leap
-------------------------------------------------------------------
Mon Jul 29 14:50:34 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>

View File

@ -29,8 +29,12 @@ Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: cmake
BuildRequires: desktop-file-utils
%if 0%{?suse_version} < 1600
BuildRequires: gcc%{?force_gcc_version}
BuildRequires: gcc%{?force_gcc_version}-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: gtk3-devel
BuildRequires: libheif-devel
BuildRequires: nasm
@ -45,8 +49,10 @@ tools.
%autosetup -a1 -p1
%build
%if 0%{?suse_version} < 1600
export CC="gcc-%{?force_gcc_version}"
export CXX="g++-%{?force_gcc_version}"
%endif
%{cargo_build} \
%if 0%{?suse_version} > 1600
--features 'heif' \
@ -60,8 +66,10 @@ install -Dpm644 res/%{name}.desktop -t %{buildroot}%{_datadir}/applications
%check
%if %{with test}
%if 0%{?suse_version} < 1600
export CC="gcc-%{?force_gcc_version}"
export CXX="g++-%{?force_gcc_version}"
%endif
%{cargo_test} -- --skip=tests::net --skip=bench
%endif