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: 6.12.0.199
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: https://download.mono-project.com/sources/mono/mono-%{version}.tar.xz
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: libtool
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-filesystem >= 23
BuildRequires: unzip
BuildRequires: zip
Requires: mingw64-mono-lang
#!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.
%package devel
Summary: Mono for Windows
Requires: mingw64-mono = %{version}
%description devel
Mono is an open source implementation of Microsoft's dotNet.
This package contains the files required for development.
%lang_package
%_mingw64_debug_package
%prep
%autosetup -p1 -n mono-%{version}
%build
MINGW64_CFLAGS="%_mingw64_cflags -DGC_BUILTIN_ATOMIC"
MINGW64_CXXFLAGS="%_mingw64_cxxflags -DGC_BUILTIN_ATOMIC"
%_mingw64_configure
%_mingw64_make
%install
%_mingw64_make_install
rm %{buildroot}%{_mingw64_libdir}/*.la
# E: env-script-interpreter
sed -i 's,/usr/bin/env python3,/usr/bin/python3,g' %{buildroot}%{_mingw64_bindir}/%{_mingw64_target}-mono-heapviz
sed -i 's,/usr/bin/env bash,/usr/bin/bash,g' %{buildroot}%{_mingw64_bindir}/%{_mingw64_target}-mono-test-install
# E wrong-script-interpreter
sed -i 's,\\bin\\sh,/usr/bin/sh,g' %{buildroot}%{_mingw64_bindir}/%{_mingw64_target}-makecert.bat %{buildroot}%{_mingw64_bindir}/%{_mingw64_target}-sn.bat
%find_lang mcs
%files
%{_mingw64_bindir}/*.exe
%{_mingw64_bindir}/*.bat
%{_mingw64_bindir}/%{_mingw64_target}-csc
%{_mingw64_bindir}/%{_mingw64_target}-csi
%{_mingw64_bindir}/%{_mingw64_target}-mcs
%{_mingw64_bindir}/%{_mingw64_target}-mdassembler
%{_mingw64_bindir}/%{_mingw64_target}-mdoc-assemble
%{_mingw64_bindir}/%{_mingw64_target}-mdoc-export-html
%{_mingw64_bindir}/%{_mingw64_target}-mdoc-export-msxdoc
%{_mingw64_bindir}/%{_mingw64_target}-mdoc-update
%{_mingw64_bindir}/%{_mingw64_target}-mdoc-validate
%{_mingw64_bindir}/%{_mingw64_target}-mdvalidater
%{_mingw64_bindir}/%{_mingw64_target}-mono-find-provides
%{_mingw64_bindir}/%{_mingw64_target}-mono-find-requires
%{_mingw64_bindir}/%{_mingw64_target}-mono-heapviz
%{_mingw64_bindir}/%{_mingw64_target}-mono-package-runtime
%{_mingw64_bindir}/%{_mingw64_target}-mono-service
%{_mingw64_bindir}/%{_mingw64_target}-mono-service2
%{_mingw64_bindir}/%{_mingw64_target}-mono-test-install
%{_mingw64_bindir}/%{_mingw64_target}-monodocer
%{_mingw64_bindir}/%{_mingw64_target}-monodocs2html
%{_mingw64_bindir}/%{_mingw64_target}-monodocs2slashdoc
%{_mingw64_bindir}/%{_mingw64_target}-peverify
%{_mingw64_bindir}/%{_mingw64_target}-vbc
%{_mingw64_bindir}/lib*.dll
%{_mingw64_sysconfdir}
%{_mingw64_datadir}/man
%files devel
%{_mingw64_bindir}/*-gdb.py
%{_mingw64_datadir}/mono-2.0
%{_mingw64_includedir}
%{_mingw64_libdir}/*.a
%{_mingw64_libdir}/mono
%{_mingw64_libdir}/pkgconfig
%files lang -f mcs.lang
%changelog