Re: mingw packaging: equivalent of %cmake_build, %cmake_install macros?

2024-01-30 Thread Eric Smith
In the fmt.spec you posted, I see > > %mingw_cmake -G Ninja [...] > > this means that you are generating ninja build scripts, not Makefiles. If > you want to use ninja, you should call > > %mingw_ninja > > after %mingw_cmake -G Ninja. > Thanks! That appears to be the right thing for the %build

Re: mingw packaging: equivalent of %cmake_build, %cmake_install macros?

2024-01-30 Thread Sandro Mani
On 29.01.24 10:38 PM, Eric Smith wrote: On Mon, Jan 29, 2024, 02:32 Sandro Mani wrote: For mingw, the most common approach is %build %mingw_cmake %mingw_make_build %install %mingw_make_install # Don't forget this one |%mingw_debug_install_post| Thank you,

Re: mingw packaging: equivalent of %cmake_build, %cmake_install macros?

2024-01-29 Thread Sandro Mani
For mingw the more recent "%cmake_build" and "%cmake_install" have never been implemented (one could add them [1]). For mingw, the most common approach is %build %mingw_cmake %mingw_make_build %install %mingw_make_install # Don't forget this one |%mingw_debug_install_post| See also [1] for

mingw packaging: equivalent of %cmake_build, %cmake_install macros?

2024-01-29 Thread Eric Smith
I'm trying to add mingw build support to the fmt package spec. I've done this previously with the pugixml and zipios packages, and submitted the spec diffs to the package maintainer of those.. Both packages use cmake. Both in the %build section use %cmake then %cmake_build, and in the %install