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 section use %cmake_install. As expert neither on cmake nor on mingw, I'm somewhat baffled as to why there are %cmake_build and %cmake_install macros, but no corresponding %mingw_cmake_build and %mingw_cmake_install macros. Is there some equivalent that just happens to not be obvious to me? What I found worked for both pugixml and zipios was:
original: %cmake; %cmake_build original install: %cmake_install added for mingw build: %mingw_cmake (and did not add anything equivalent to %cmake_build) added for mingw install: %mingw_make_install; %{?mingw_debug_install_post) Unfortunately this simple attempt failed for fmt. The %mingw_cmake doesn't cause an error, but also doesn't build fmt. The attempted %mingw_make_install results in: "make: *** No rule to make target 'install'. Stop." Perhaps this has to do with the fmt build also using Ninja, which pugixml and zipios do not. If anyone can offer advice, it would be much appreciated. I started from the specs from the packages: pugixml-1.13-4 zipios-2.2.5.0-7 fmt-10.0.0-3 My modified spec files are at: http://www.brouhaha.com/~eric/fedora-packaging-test/ Best regards, Eric @brouhaha
-- _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue