diff --git a/allegro.spec b/allegro.spec index 8005301..f77cc18 100644 --- a/allegro.spec +++ b/allegro.spec @@ -1,6 +1,9 @@ +# Force out of source build +%undefine __cmake_in_source_build + Name: allegro Version: 4.4.3.1 -Release: 19%{?dist} +Release: 15%{?dist} Summary: A game programming library Summary(es): Una libreria de programacion de juegos @@ -35,7 +38,7 @@ Patch14: allegro-4.4.3-dat2c-buffer-overflow.patch BuildRequires: gcc BuildRequires: gcc-c++ -BuildRequires: texinfo cmake +BuildRequires: texinfo cmake3 BuildRequires: xorg-x11-proto-devel libX11-devel libXpm-devel libXcursor-devel BuildRequires: libXxf86vm-devel libXxf86dga-devel libGL-devel libGLU-devel BuildRequires: alsa-lib-devel jack-audio-connection-kit-devel @@ -229,14 +232,9 @@ developing applications that use logg. %autosetup -p1 %build -export CMAKE_POLICY_VERSION_MINIMUM=3.5 -%cmake \ -%if "%{?_lib}" == "lib64" - %{?_cmake_lib_suffix64} \ -%endif - -DOpenGL_GL_PREFERENCE:STRING=LEGACY -DCMAKE_SKIP_RPATH:BOOL=YES -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \ +%cmake3 -DOpenGL_GL_PREFERENCE:STRING=LEGACY -DCMAKE_SKIP_RPATH:BOOL=YES -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \ -DDOCDIR:STRING=%{_pkgdocdir} -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE -%cmake_build +%cmake3_build pushd %{_vpath_builddir} # Converting text documentation to UTF-8 encoding. @@ -250,7 +248,7 @@ done popd %install -%cmake_install +%cmake3_install pushd %{_vpath_builddir} # installation of these is broken, because they use a cmake GLOB, but @@ -390,18 +388,6 @@ install -pm 644 addons/jpgalleg/readme.txt \ %changelog -* Fri Jan 16 2026 Fedora Release Engineering - 4.4.3.1-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Wed Jul 23 2025 Fedora Release Engineering - 4.4.3.1-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Thu Jul 17 2025 Cristian Le - 4.4.3.1-17 -- Add LIB_SUFFIX flag explicitly (rhbz#2381173) - -* Fri May 30 2025 Cristian Le - 4.4.3.1-16 -- Allow to build with CMake 4.0 - * Thu Jan 16 2025 Fedora Release Engineering - 4.4.3.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild