File mingw64-cross-meson.spec of Package mingw64-cross-meson
#
# spec file for package mingw64-cross-meson
#
# Copyright (c) 2022 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: mingw64-cross-meson
Version: 1.2.2
Release: 0
Summary: Python-based build system
License: Apache-2.0
Group: Development/Tools/Building
URL: https://mesonbuild.com/
BuildRequires: mingw64-filesystem
Requires: meson
%if %suse_version < 1699 || "%{_host_cpu}" == "x86_64"
Requires: mingw64-cross-wine
%endif
Requires: mingw64-filesystem
Source1: macros.mingw64-meson
Source2: meson-mingw64-cross-file.txt
Source3: meson-mingw64-cross-file-no-exe-wrapper.txt
Source4: mingw64-cross-meson-rpmlintrc
BuildArch: noarch
%_mingw64_package_header
%description
Meson is a build system designed to optimise programmer productivity.
This package provides support to cross compile package with meson.
%prep
%build
%install
mkdir -p %{buildroot}%{_rpmmacrodir}
cp %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.mingw64-meson
cp %{SOURCE2} %{buildroot}%{_rpmmacrodir}/meson-mingw64-cross-file.txt
cp %{SOURCE3} %{buildroot}%{_rpmmacrodir}/meson-mingw64-cross-file-no-exe-wrapper.txt
# create shell wrapper
%_mingw64_create_macro_links mingw64-meson
%files
%defattr(-,root,root)
%{_rpmmacrodir}
%{_bindir}/mingw64-meson
%changelog