On Thu, Aug 25, 2022 at 06:42:52PM +0200, Sandro Mani wrote: > > On 25.08.22 18:40, Michael Cronenworth wrote: > > On 8/25/22 1:33 AM, Marián Konček wrote: > > > I could however open a PR to add them to the native packages. Do we > > > have some libraries where this unification is already finished so > > > that I could take inspiration? > > > > FAudio > > vkd3d > > You might also want to add the mingw debuginfo packages to those. Also if the package is used in RHEL, it may be desirable to make the mingw sub-packages conditional, so that they don't get enabled when the Fedora spec is later rebuilt in a RHEL build root. I've got an example here which is fairly simple, for an app using meson: https://src.fedoraproject.org/rpms/libosinfo/c/c567145568cb401ce5143e5829f1d60ca45f77dc?branch=rawhide If the app uses autotools still it is a little more complex, as you'll need to make the native build use builddir != srcdir before adding the mingw bits. Unfortunately %configure doesn't do this by default, while meson does (and cmake does too iirc). To adapt autotools based app native build use something approximately like this: %define _configure ../configure mkdir build_native cd build_native %configure ...args... %make_build cd .. and similar during install phase cd build_native %make_install cd .. With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue