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/c567145568cb401ce5143e5829...
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 :|