Strip :1 from macros

OBS-URL: https://build.opensuse.org/package/show/games/emptyepsilon?expand=0&rev=20
This commit is contained in:
Dominik Heidler 2024-02-22 16:42:09 +00:00 committed by Git OBS Bridge
parent 6a3e26418d
commit 26284fc9c4

View File

@ -73,7 +73,7 @@ ln -s ../externals
popd popd
%build %build
%if 0%{?sle_version:1} %if 0%{?sle_version}
# if sle_version is defined, this is not tumbleweed # if sle_version is defined, this is not tumbleweed
export CC=gcc-10 export CC=gcc-10
export CXX=g++-10 export CXX=g++-10
@ -83,7 +83,7 @@ export CXX=g++-10
-DCPACK_PACKAGE_VERSION_MAJOR="$(echo %{version} | cut -d. -f1)" \ -DCPACK_PACKAGE_VERSION_MAJOR="$(echo %{version} | cut -d. -f1)" \
-DCPACK_PACKAGE_VERSION_MINOR="$(echo %{version} | cut -d. -f2)" \ -DCPACK_PACKAGE_VERSION_MINOR="$(echo %{version} | cut -d. -f2)" \
-DCPACK_PACKAGE_VERSION_PATCH="$(echo %{version} | cut -d. -f3)" \ -DCPACK_PACKAGE_VERSION_PATCH="$(echo %{version} | cut -d. -f3)" \
%if 0%{?sle_version:1} %if 0%{?sle_version}
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \ -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \
%endif %endif
-DOpenGL_GL_PREFERENCE=GLVND -DOpenGL_GL_PREFERENCE=GLVND