Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
to use quotes anymore when using arguments. Thanks to Kalev Lember
for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
with QT_BINARY_DIR which is a more proper method to make CMake
aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
mingw64_cmake_kde4
- Added three new environment variables which can be set to
influence the behaviour of the cmake macros:
MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
Packagers can use this macro instead of the original boilerplate
code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
%%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
depend
on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
mingw{32,64}-filesystem
packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
Levente
Farkas, Marc-Andre Lureau.
2012-02-25 23:17:24 +00:00
|
|
|
# RPM macros for the Fedora MinGW Cross Compiler collection
|
|
|
|
|
2022-02-22 11:39:23 +00:00
|
|
|
%mingw_build_targets mingw32 mingw64 ucrt64
|
2012-03-17 14:25:42 +00:00
|
|
|
%mingw_build_win32 1
|
|
|
|
%mingw_build_win64 1
|
2022-02-22 11:39:23 +00:00
|
|
|
%mingw_build_ucrt64 0
|
Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
to use quotes anymore when using arguments. Thanks to Kalev Lember
for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
with QT_BINARY_DIR which is a more proper method to make CMake
aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
mingw64_cmake_kde4
- Added three new environment variables which can be set to
influence the behaviour of the cmake macros:
MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
Packagers can use this macro instead of the original boilerplate
code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
%%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
depend
on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
mingw{32,64}-filesystem
packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
Levente
Farkas, Marc-Andre Lureau.
2012-02-25 23:17:24 +00:00
|
|
|
|
|
|
|
%mingw_strip mingw-strip
|
|
|
|
%mingw_objdump mingw-objdump
|
|
|
|
%mingw_objcopy mingw-objcopy
|
2017-09-10 11:51:18 +00:00
|
|
|
%mingw_nm mingw-nm
|
Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
to use quotes anymore when using arguments. Thanks to Kalev Lember
for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
with QT_BINARY_DIR which is a more proper method to make CMake
aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
mingw64_cmake_kde4
- Added three new environment variables which can be set to
influence the behaviour of the cmake macros:
MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
Packagers can use this macro instead of the original boilerplate
code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
%%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
depend
on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
mingw{32,64}-filesystem
packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
Levente
Farkas, Marc-Andre Lureau.
2012-02-25 23:17:24 +00:00
|
|
|
|
|
|
|
%mingw_finddebuginfo %{_rpmconfigdir}/mingw-find-debuginfo.sh
|
|
|
|
|
|
|
|
%mingw_find_lang %{_rpmconfigdir}/mingw-find-lang.sh %{buildroot}
|
|
|
|
|
|
|
|
%mingw_debug_install_post %{mingw_finddebuginfo} %{_builddir}/%{?buildsubdir} %{mingw_build_targets}
|
|
|
|
|
2012-03-17 14:25:42 +00:00
|
|
|
%mingw_debug_package \
|
|
|
|
%if 0%{?mingw_build_win32} == 1 \
|
|
|
|
%{?mingw32_debug_package} \
|
|
|
|
%endif \
|
|
|
|
%if 0%{?mingw_build_win64} == 1 \
|
|
|
|
%{?mingw64_debug_package} \
|
|
|
|
%endif \
|
2022-02-22 11:39:23 +00:00
|
|
|
%if 0%{?mingw_build_ucrt64} == 1 \
|
|
|
|
%{?ucrt64_debug_package} \
|
|
|
|
%endif \
|
Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
to use quotes anymore when using arguments. Thanks to Kalev Lember
for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
with QT_BINARY_DIR which is a more proper method to make CMake
aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
mingw64_cmake_kde4
- Added three new environment variables which can be set to
influence the behaviour of the cmake macros:
MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
Packagers can use this macro instead of the original boilerplate
code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
%%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
depend
on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
mingw{32,64}-filesystem
packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
Levente
Farkas, Marc-Andre Lureau.
2012-02-25 23:17:24 +00:00
|
|
|
%{nil}
|
|
|
|
|
|
|
|
%mingw_package_header \
|
|
|
|
%global __strip %{mingw_strip} \
|
|
|
|
%global __objdump %{mingw_objdump} \
|
|
|
|
%global __debug_install_post %%{mingw_debug_install_post} \
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
%mingw_configure \
|
|
|
|
run_mingw_configure() \
|
|
|
|
{ \
|
2016-05-08 10:58:13 +00:00
|
|
|
[ "%_configure_gnuconfig_hack" = 1 ] && for i in $(find . -name config.guess -o -name config.sub) ; do \
|
|
|
|
[ -f /usr/lib/rpm/redhat/$(basename $i) ] && %{__rm} -f $i && %{__cp} -fv /usr/lib/rpm/redhat/$(basename $i) $i ; \
|
|
|
|
done ; \
|
2012-03-17 14:25:42 +00:00
|
|
|
%if 0%{?mingw_build_win32} == 1 \
|
2022-02-22 09:34:23 +00:00
|
|
|
mkdir -p build_win32$MINGW_BUILDDIR_SUFFIX \
|
Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
to use quotes anymore when using arguments. Thanks to Kalev Lember
for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
with QT_BINARY_DIR which is a more proper method to make CMake
aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
mingw64_cmake_kde4
- Added three new environment variables which can be set to
influence the behaviour of the cmake macros:
MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
Packagers can use this macro instead of the original boilerplate
code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
%%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
depend
on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
mingw{32,64}-filesystem
packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
Levente
Farkas, Marc-Andre Lureau.
2012-02-25 23:17:24 +00:00
|
|
|
pushd build_win32$MINGW_BUILDDIR_SUFFIX \
|
2012-04-19 15:55:04 +00:00
|
|
|
%{?mingw32_configure} "$@" \
|
2012-03-17 14:25:42 +00:00
|
|
|
popd \
|
|
|
|
%endif \
|
|
|
|
%if 0%{?mingw_build_win64} == 1 \
|
2022-02-22 09:34:23 +00:00
|
|
|
mkdir -p build_win64$MINGW_BUILDDIR_SUFFIX \
|
Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
to use quotes anymore when using arguments. Thanks to Kalev Lember
for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
with QT_BINARY_DIR which is a more proper method to make CMake
aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
mingw64_cmake_kde4
- Added three new environment variables which can be set to
influence the behaviour of the cmake macros:
MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
Packagers can use this macro instead of the original boilerplate
code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
%%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
depend
on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
mingw{32,64}-filesystem
packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
Levente
Farkas, Marc-Andre Lureau.
2012-02-25 23:17:24 +00:00
|
|
|
pushd build_win64$MINGW_BUILDDIR_SUFFIX \
|
2012-04-19 15:55:04 +00:00
|
|
|
%{?mingw64_configure} "$@" \
|
2012-03-17 14:25:42 +00:00
|
|
|
popd \
|
|
|
|
%endif \
|
2022-02-22 11:39:23 +00:00
|
|
|
%if 0%{?mingw_build_ucrt64} == 1 \
|
|
|
|
mkdir -p build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
pushd build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
%{?ucrt64_configure} "$@" \
|
|
|
|
popd \
|
|
|
|
%endif \
|
Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
to use quotes anymore when using arguments. Thanks to Kalev Lember
for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
with QT_BINARY_DIR which is a more proper method to make CMake
aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
mingw64_cmake_kde4
- Added three new environment variables which can be set to
influence the behaviour of the cmake macros:
MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
Packagers can use this macro instead of the original boilerplate
code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
%%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
depend
on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
mingw{32,64}-filesystem
packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
Levente
Farkas, Marc-Andre Lureau.
2012-02-25 23:17:24 +00:00
|
|
|
} \
|
|
|
|
run_mingw_configure
|
|
|
|
|
2012-12-16 22:56:55 +00:00
|
|
|
%mingw_make \
|
|
|
|
run_mingw_make() \
|
|
|
|
{ \
|
|
|
|
%if 0%{?mingw_build_win32} == 1 \
|
2023-04-07 10:01:24 +00:00
|
|
|
%{mingw32_env} \
|
2020-05-23 12:00:10 +00:00
|
|
|
%{__make} -C build_win32$MINGW_BUILDDIR_SUFFIX "$@" $MINGW32_MAKE_ARGS \
|
2012-12-16 22:56:55 +00:00
|
|
|
%endif \
|
|
|
|
%if 0%{?mingw_build_win64} == 1 \
|
2023-04-07 10:01:24 +00:00
|
|
|
%{mingw64_env} \
|
2020-05-23 12:00:10 +00:00
|
|
|
%{__make} -C build_win64$MINGW_BUILDDIR_SUFFIX "$@" $MINGW64_MAKE_ARGS \
|
2012-12-16 22:56:55 +00:00
|
|
|
%endif \
|
2022-02-22 11:39:23 +00:00
|
|
|
%if 0%{?mingw_build_ucrt64} == 1 \
|
2023-04-07 10:01:24 +00:00
|
|
|
%{ucrt64_env} \
|
2022-02-22 11:39:23 +00:00
|
|
|
%{__make} -C build_ucrt64$MINGW_BUILDDIR_SUFFIX "$@" $UCRT64_MAKE_ARGS \
|
|
|
|
%endif \
|
2012-12-16 22:56:55 +00:00
|
|
|
} \
|
Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
to use quotes anymore when using arguments. Thanks to Kalev Lember
for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
with QT_BINARY_DIR which is a more proper method to make CMake
aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
mingw64_cmake_kde4
- Added three new environment variables which can be set to
influence the behaviour of the cmake macros:
MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
Packagers can use this macro instead of the original boilerplate
code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
%%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
depend
on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
mingw{32,64}-filesystem
packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
Levente
Farkas, Marc-Andre Lureau.
2012-02-25 23:17:24 +00:00
|
|
|
run_mingw_make
|
|
|
|
|
2012-08-13 13:17:25 +00:00
|
|
|
%mingw_cmake \
|
|
|
|
run_mingw_cmake() \
|
|
|
|
{ \
|
|
|
|
%if 0%{?mingw_build_win32} == 1 \
|
2022-02-22 09:34:23 +00:00
|
|
|
mkdir -p build_win32$MINGW_BUILDDIR_SUFFIX \
|
2012-08-13 13:17:25 +00:00
|
|
|
pushd build_win32$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
%{?mingw32_cmake "$@"} \
|
|
|
|
popd \
|
|
|
|
%endif \
|
|
|
|
%if 0%{?mingw_build_win64} == 1 \
|
2022-02-22 09:34:23 +00:00
|
|
|
mkdir -p build_win64$MINGW_BUILDDIR_SUFFIX \
|
2012-08-13 13:17:25 +00:00
|
|
|
pushd build_win64$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
%{?mingw64_cmake "$@"} \
|
|
|
|
popd \
|
|
|
|
%endif \
|
2022-02-22 11:39:23 +00:00
|
|
|
%if 0%{?mingw_build_ucrt64} == 1 \
|
|
|
|
mkdir -p build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
pushd build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
%{?ucrt64_cmake "$@"} \
|
|
|
|
popd \
|
|
|
|
%endif \
|
2012-08-13 13:17:25 +00:00
|
|
|
} \
|
Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
to use quotes anymore when using arguments. Thanks to Kalev Lember
for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
with QT_BINARY_DIR which is a more proper method to make CMake
aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
mingw64_cmake_kde4
- Added three new environment variables which can be set to
influence the behaviour of the cmake macros:
MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
Packagers can use this macro instead of the original boilerplate
code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
%%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
depend
on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
mingw{32,64}-filesystem
packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
Levente
Farkas, Marc-Andre Lureau.
2012-02-25 23:17:24 +00:00
|
|
|
run_mingw_cmake
|
|
|
|
|
2022-12-28 18:27:22 +00:00
|
|
|
|
|
|
|
%mingw_qmake_qt5 \
|
|
|
|
run_mingw_qmake_qt5() \
|
2012-08-13 13:17:25 +00:00
|
|
|
{ \
|
|
|
|
%if 0%{?mingw_build_win32} == 1 \
|
2022-02-22 09:34:23 +00:00
|
|
|
mkdir -p build_win32$MINGW_BUILDDIR_SUFFIX \
|
2012-08-13 13:17:25 +00:00
|
|
|
pushd build_win32$MINGW_BUILDDIR_SUFFIX \
|
2022-12-28 18:27:22 +00:00
|
|
|
%{?mingw32_qmake_qt5} "$@" \
|
2012-08-13 13:17:25 +00:00
|
|
|
popd \
|
|
|
|
%endif \
|
|
|
|
%if 0%{?mingw_build_win64} == 1 \
|
2022-02-22 09:34:23 +00:00
|
|
|
mkdir -p build_win64$MINGW_BUILDDIR_SUFFIX \
|
2012-08-13 13:17:25 +00:00
|
|
|
pushd build_win64$MINGW_BUILDDIR_SUFFIX \
|
2022-12-28 18:27:22 +00:00
|
|
|
%{?mingw64_qmake_qt5} "$@" \
|
2012-08-13 13:17:25 +00:00
|
|
|
popd \
|
|
|
|
%endif \
|
2022-02-22 11:39:23 +00:00
|
|
|
%if 0%{?mingw_build_ucrt64} == 1 \
|
|
|
|
mkdir -p build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
pushd build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
2022-12-28 18:27:22 +00:00
|
|
|
%{?ucrt64_qmake_qt5} "$@" \
|
2022-02-22 11:39:23 +00:00
|
|
|
popd \
|
|
|
|
%endif \
|
2012-08-13 13:17:25 +00:00
|
|
|
} \
|
2022-12-28 18:27:22 +00:00
|
|
|
run_mingw_qmake_qt5
|
Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
to use quotes anymore when using arguments. Thanks to Kalev Lember
for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
with QT_BINARY_DIR which is a more proper method to make CMake
aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
mingw64_cmake_kde4
- Added three new environment variables which can be set to
influence the behaviour of the cmake macros:
MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
Packagers can use this macro instead of the original boilerplate
code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
%%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
depend
on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
mingw{32,64}-filesystem
packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
Levente
Farkas, Marc-Andre Lureau.
2012-02-25 23:17:24 +00:00
|
|
|
|
2022-12-28 18:27:22 +00:00
|
|
|
|
|
|
|
%mingw_qmake_qt6 \
|
|
|
|
run_mingw_qmake_qt6() \
|
2012-09-17 22:10:08 +00:00
|
|
|
{ \
|
|
|
|
%if 0%{?mingw_build_win32} == 1 \
|
2022-02-22 09:34:23 +00:00
|
|
|
mkdir -p build_win32$MINGW_BUILDDIR_SUFFIX \
|
2012-09-17 22:10:08 +00:00
|
|
|
pushd build_win32$MINGW_BUILDDIR_SUFFIX \
|
2022-12-28 18:27:22 +00:00
|
|
|
%{?mingw32_qmake_qt6} "$@" \
|
2012-09-17 22:10:08 +00:00
|
|
|
popd \
|
|
|
|
%endif \
|
|
|
|
%if 0%{?mingw_build_win64} == 1 \
|
2022-02-22 09:34:23 +00:00
|
|
|
mkdir -p build_win64$MINGW_BUILDDIR_SUFFIX \
|
2012-09-17 22:10:08 +00:00
|
|
|
pushd build_win64$MINGW_BUILDDIR_SUFFIX \
|
2022-12-28 18:27:22 +00:00
|
|
|
%{?mingw64_qmake_qt6} "$@" \
|
2012-09-17 22:10:08 +00:00
|
|
|
popd \
|
|
|
|
%endif \
|
2022-02-22 11:39:23 +00:00
|
|
|
%if 0%{?mingw_build_ucrt64} == 1 \
|
|
|
|
mkdir -p build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
pushd build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
2022-12-28 18:27:22 +00:00
|
|
|
%{?ucrt64_qmake_qt6} "$@" \
|
2022-02-22 11:39:23 +00:00
|
|
|
popd \
|
|
|
|
%endif \
|
2012-09-17 22:10:08 +00:00
|
|
|
} \
|
2022-12-28 18:27:22 +00:00
|
|
|
run_mingw_qmake_qt6
|
|
|
|
|
2012-09-17 22:10:08 +00:00
|
|
|
|
2018-04-20 07:37:41 +00:00
|
|
|
%mingw_meson \
|
|
|
|
run_mingw_meson() \
|
|
|
|
{ \
|
|
|
|
%if 0%{?mingw_build_win32} == 1 \
|
2022-02-22 09:34:23 +00:00
|
|
|
mkdir -p build_win32$MINGW_BUILDDIR_SUFFIX \
|
2018-04-20 07:37:41 +00:00
|
|
|
pushd build_win32$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
%{?mingw32_meson "$@"} \
|
|
|
|
popd \
|
|
|
|
%endif \
|
|
|
|
%if 0%{?mingw_build_win64} == 1 \
|
2022-02-22 09:34:23 +00:00
|
|
|
mkdir -p build_win64$MINGW_BUILDDIR_SUFFIX \
|
2018-04-20 07:37:41 +00:00
|
|
|
pushd build_win64$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
%{?mingw64_meson "$@"} \
|
|
|
|
popd \
|
|
|
|
%endif \
|
2022-02-22 11:39:23 +00:00
|
|
|
%if 0%{?mingw_build_ucrt64} == 1 \
|
|
|
|
mkdir -p build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
pushd build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
|
|
|
%{?ucrt64_meson "$@"} \
|
|
|
|
popd \
|
|
|
|
%endif \
|
2018-04-20 07:37:41 +00:00
|
|
|
} \
|
|
|
|
run_mingw_meson
|
|
|
|
|
|
|
|
%mingw_ninja \
|
|
|
|
run_mingw_ninja() \
|
|
|
|
{ \
|
|
|
|
%if 0%{?mingw_build_win32} == 1 \
|
|
|
|
ninja -C build_win32$MINGW_BUILDDIR_SUFFIX "$@" $MINGW32_NINJA_ARGS \
|
|
|
|
%endif \
|
|
|
|
%if 0%{?mingw_build_win64} == 1 \
|
|
|
|
ninja -C build_win64$MINGW_BUILDDIR_SUFFIX "$@" $MINGW64_NINJA_ARGS \
|
|
|
|
%endif \
|
2022-02-22 11:39:23 +00:00
|
|
|
%if 0%{?mingw_build_ucrt64} == 1 \
|
|
|
|
ninja -C build_ucrt64$MINGW_BUILDDIR_SUFFIX "$@" $UCRT64_NINJA_ARGS \
|
|
|
|
%endif \
|
2018-04-20 07:37:41 +00:00
|
|
|
} \
|
|
|
|
run_mingw_ninja
|
|
|
|
|
2019-06-19 12:08:39 +00:00
|
|
|
%mingw_ninja_install \
|
|
|
|
run_mingw_ninja_install() \
|
|
|
|
{ \
|
|
|
|
%if 0%{?mingw_build_win32} == 1 \
|
|
|
|
DESTDIR=%{buildroot} ninja -C build_win32$MINGW_BUILDDIR_SUFFIX install \
|
|
|
|
%endif \
|
|
|
|
%if 0%{?mingw_build_win64} == 1 \
|
|
|
|
DESTDIR=%{buildroot} ninja -C build_win64$MINGW_BUILDDIR_SUFFIX install \
|
|
|
|
%endif \
|
2022-02-22 11:39:23 +00:00
|
|
|
%if 0%{?mingw_build_ucrt64} == 1 \
|
|
|
|
DESTDIR=%{buildroot} ninja -C build_ucrt64$MINGW_BUILDDIR_SUFFIX install \
|
|
|
|
%endif \
|
2019-06-19 12:08:39 +00:00
|
|
|
} \
|
|
|
|
run_mingw_ninja_install
|
|
|
|
|
2020-05-23 12:00:10 +00:00
|
|
|
|
|
|
|
%mingw_make_build %mingw_make %{_make_output_sync} %{?_smp_mflags} %{_make_verbose}
|
|
|
|
%mingw_make_install %mingw_make install DESTDIR=%{?buildroot} INSTALL="%{__install} -p"
|