English Portuguese (Brazil)
Executables which are required for proper functionality of the libraries must be packaged in the matching mingw32/mingw64 subpackage. All other executables are discouraged, but may be packaged in optional (dependent) subpackages at a packager's discretion.
Files which are already part of native packages
There are various types of files which are simply duplicates of equivalent files found in Fedora native packages. These files should not be packaged in the MinGW package. The following files don't need to be packaged in the MinGW package when their native counterpart already contains them:
Man pages (`+%{mingw32_mandir}+` / `+%{mingw64_mandir}+`)
Info files (`+%{mingw32_infodir}+` / `+%{mingw64_infodir}+`)
Generic documentation (`+%{mingw32_docdir}+` / `+%{mingw64_docdir}+`)
Autoconf files (`+%{mingw32_datadir}/aclocal+` / `+%{mingw64_datadir}/aclocal+`)
gtk-doc files (`+%{mingw32_datadir}/gtk-doc+` / `+%{mingw64_datadir}/gtk-doc+`)
Example Specfile
Name: mingw-example
Version: 1.0.0
Release: 1%{?dist}
Summary: MinGW compiled example library
License: LGPLv2+
URL: https://fedoraproject.org
Source0: https://fedoraproject.org/example-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 113
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
BuildRequires: mingw32-gettext
BuildRequires: mingw32-win-iconv
BuildRequires: mingw32-zlib
BuildRequires: mingw64-filesystem >= 113
BuildRequires: mingw64-gcc
BuildRequires: mingw64-binutils
BuildRequires: mingw64-gettext
BuildRequires: mingw64-win-iconv
BuildRequires: mingw64-zlib
MinGW compiled example library.
# If a package maintainer wishes to bundle static libraries then they
# can be placed in -static subpackages. Otherwise, the -static subpackages
# can be dropped
# Win32
%package -n mingw32-example
Summary: MinGW compiled example library for the Win32 target
%description -n mingw32-example
MinGW compiled example library for the Win32 target.
%package -n mingw32-example-static
Summary: Static version of the MinGW Win32 compiled example library
Requires: mingw32-example = %{version}-%{release}