projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[tools] Fix mono-cil-strip to return non-zero on failure [#28617]
[mono.git]
/
mono-core.spec.in
diff --git
a/mono-core.spec.in
b/mono-core.spec.in
index 0b7337d05d58d864bab0ac2234c817e2d461988f..04c4e326ebf2fc21dbe9ec5c9b4f2d1e8d994c22 100644
(file)
--- a/
mono-core.spec.in
+++ b/
mono-core.spec.in
@@
-4,6
+4,9
@@
%ifnarch %ix86 x86_64
%define llvm no
%ifnarch %ix86 x86_64
%define llvm no
+%endif
+
+%ifnarch %ix86 x86_64 s390x
%define sgen no
%endif
%define sgen no
%endif
@@
-16,10
+19,14
@@
Version: @VERSION@
Release: 0
Source0: mono-%{version}.tar.bz2
BuildRequires: bison
Release: 0
Source0: mono-%{version}.tar.bz2
BuildRequires: bison
+%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: fdupes
+BuildRequires: xorg-x11-libX11-devel
+%else
+BuildRequires: libX11-devel
+%endif
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: gcc-c++
BuildRequires: pkgconfig
-BuildRequires: xorg-x11-libX11-devel
BuildRequires: zlib-devel
%ifnarch ia64
BuildRequires: valgrind-devel
BuildRequires: zlib-devel
%ifnarch ia64
BuildRequires: valgrind-devel
@@
-48,7
+55,9
@@
Conflicts: banshee < 1.0
Conflicts: f-spot < 0.4
Conflicts: helix-banshee < 1.0
Conflicts: mono-addins < 0.3.1
Conflicts: f-spot < 0.4
Conflicts: helix-banshee < 1.0
Conflicts: mono-addins < 0.3.1
+%if 0%{?suse_version}
Recommends: libgdiplus0 >= 2.6
Recommends: libgdiplus0 >= 2.6
+%endif
%if %llvm == yes
Recommends: libmono-llvm0 = %{version}-%{release}
%endif
%if %llvm == yes
Recommends: libmono-llvm0 = %{version}-%{release}
%endif
@@
-92,6
+101,7
@@
export CFLAGS=" $RPM_OPT_FLAGS -fno-strict-aliasing"
export PATH=/opt/novell/llvm-mono/bin:$PATH
%endif
%configure \
export PATH=/opt/novell/llvm-mono/bin:$PATH
%endif
%configure \
+ --target=%{_host} \
--with-sgen=%{sgen} \
%if %llvm == yes
--enable-loadedllvm \
--with-sgen=%{sgen} \
%if %llvm == yes
--enable-loadedllvm \
@@
-104,6
+114,7
@@
export PATH=/opt/novell/llvm-mono/bin:$PATH
--with-moonlight=no
#make # We are not -jN safe! %{?jobs:-j%jobs}
# We are now !
--with-moonlight=no
#make # We are not -jN safe! %{?jobs:-j%jobs}
# We are now !
+make get-monolite-latest
make %{?_smp_mflags}
%install
make %{?_smp_mflags}
%install
@@
-130,7
+141,9
@@
rm -f %buildroot%_prefix/lib/mono/2.0/cilc.exe*
ln -s . %buildroot%_prefix%_prefix
RPM_BUILD_ROOT=%buildroot%_prefix /usr/lib/rpm/brp-compress
rm %buildroot%_prefix%_prefix
ln -s . %buildroot%_prefix%_prefix
RPM_BUILD_ROOT=%buildroot%_prefix /usr/lib/rpm/brp-compress
rm %buildroot%_prefix%_prefix
+%if 0%{?suse_version}
%fdupes %buildroot%_prefix
%fdupes %buildroot%_prefix
+%endif
%find_lang mcs
%clean
%find_lang mcs
%clean
@@
-166,7
+179,6
@@
rm -rf %buildroot
%_bindir/dmcs
%_bindir/gacutil
%_bindir/gacutil2
%_bindir/dmcs
%_bindir/gacutil
%_bindir/gacutil2
-%_bindir/gmcs
%_bindir/ikdasm
%_bindir/mcs
%_bindir/mono
%_bindir/ikdasm
%_bindir/mcs
%_bindir/mono