File mingw-w64-tools.spec of Package mingw-w64-tools
#
# spec file for package mingw-w64-tools
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define realname mingw-w64
Name: %{realname}-tools
Version: 11.0.1
Release: wiz%{?extraver:0.}1%{?dist}
Summary: Development tools for 32- and 64-bit Windows
License: GPL-3.0-only AND LGPL-2.1-or-later
Group: Development/Languages/C and C++
URL: https://mingw-w64.org/
Source: https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/%{realname}-v%{version}.tar.bz2
%description
MinGW-w64 provides a development and runtime environment for 32- and
64-bit (x86 and x64) Windows applications using the Windows API and the
GNU Compiler Collection (gcc).
This package contains:
* gendef - Generate list of exported symbols from a Portable Executable
* genidl - Generate interface listing from a Portable Executable
* genlib - Generate a COFF lib from a list of exported symbols
* genpeimg - Modify Portable Executable flags and properties
%prep
%setup -q -n %{realname}-v%{version}
%build
_CFLAGS='%{optflags} %{?gcc_lto}'
_LDFLAGS='-Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined -Wl,-z,now -Wl,-z,relro %{?gcc_lto}'
for subdir in gendef genidl genlib genpeimg; do
(
cd mingw-w64-tools/$subdir
%configure \
CFLAGS="$_CFLAGS" \
LDFLAGS="$_LDFLAGS"
%make_build
)
done
%install
for subdir in gendef genidl genlib genpeimg; do
(
cd mingw-w64-tools/$subdir
%make_install
)
done
%files
%{_bindir}/*
%changelog