File mingw64-mono.spec of Package mingw64-mono
#
# spec file for package mingw64-mono
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%_mingw64_package_header_debug
Name: mingw64-mono
Version: 5.4.0.56
Release: 0
Summary: Mono for Windows
License: LGPL-2.1-only
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Development/Libraries
Url: http://www.mono-project.com
Source0: http://ftp.novell.com/pub/mono/sources/mono/mono-%{version}.tar.bz2
Source1000: mingw64-mono-rpmlintrc
Patch1: 0005-Do-not-define-GC_DLL-for-GNU-compiler.patch
Patch5: mono-5.4.0.56-hide-pointer.patch
Patch100: mono-5.4.0.56-gc.patch
Patch101: mono-5.4.0.56-build-mingw.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: mingw64-cross-cmake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: pkgconfig
BuildRequires: unzip
BuildRequires: zip
#!BuildIgnore: post-build-checks
BuildArch: noarch
%description
Mono is an open source implementation of Microsoft's dotNet.
This package lets you run Mono in Wine.
%lang_package
%_mingw64_debug_package
%prep
%setup -q -n mono-%{version}
%patch -P 1 -p1
%patch -P 5 -p1
%patch -P 100 -p1
%patch -P 101 -p1
%build
chmod +x build-mingw*.sh
./build-mingw.sh -d %{_mingw64_prefix} -m %{_mingw64_target}
%install
# These three .bat files are build incorrect, just mark them as not
# executable for now.
chmod -x mono-win32/mono-%{version}/bin/makecert.bat
chmod -x mono-win32/mono-%{version}/bin/sn.bat
chmod -x mono-win32/mono-%{version}/bin/mono-configuration-crypto.bat
mkdir -p %{buildroot}%{_mingw64_prefix}
cp -r mono-win32/mono-%{version}/* %{buildroot}%{_mingw64_prefix}
%find_lang mcs
# Remove following ELF binaries
rm -f %{buildroot}%{_mingw64_libdir}/mono/2.0/mscorlib.dll.so
rm -f %{buildroot}%{_mingw64_libdir}/mono/4.5/mcs.exe.so
rm -f %{buildroot}%{_mingw64_libdir}/mono/4.5/mscorlib.dll.so
%files
%{_mingw64_prefix}
%exclude %{_mingw64_datadir}/locale
%files lang -f mcs.lang
%changelog