You've already forked linux-packaging-mono
Revert "Modernize llvm packaging rules (but don't enable, yet)"
This reverts commit 9badc2958a
.
This commit is contained in:
@ -64,7 +64,7 @@ BuildRequires: zlib-devel
|
|||||||
BuildRequires: valgrind-devel
|
BuildRequires: valgrind-devel
|
||||||
%endif
|
%endif
|
||||||
%if %llvm == yes
|
%if %llvm == yes
|
||||||
BuildRequires: mono-llvm-devel
|
BuildRequires: llvm-mono-devel
|
||||||
%endif
|
%endif
|
||||||
Provides: mono = %{version}
|
Provides: mono = %{version}
|
||||||
Provides: mono-cairo = %{version}
|
Provides: mono-cairo = %{version}
|
||||||
@ -74,6 +74,13 @@ Provides: mono-posix = %{version}
|
|||||||
Provides: mono-xml-relaxng = %{version}
|
Provides: mono-xml-relaxng = %{version}
|
||||||
Provides: mono-ziplib = %{version}
|
Provides: mono-ziplib = %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%if %llvm == yes
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?centos}
|
||||||
|
Requires: libmono-llvm0 = %{version}
|
||||||
|
%else
|
||||||
|
Recommends: libmono-llvm0 = %{version}
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
%if 0%{?fedora} || 0%{?rhel} || 0%{?centos}
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?centos}
|
||||||
Requires: libgdiplus0
|
Requires: libgdiplus0
|
||||||
%else
|
%else
|
||||||
@ -147,10 +154,14 @@ export MONO_CPU_ARCH="armv7l-thumb"
|
|||||||
export MONO_CPU_ARCH="armv5el"
|
export MONO_CPU_ARCH="armv5el"
|
||||||
%endif
|
%endif
|
||||||
# distro specific configure options
|
# distro specific configure options
|
||||||
|
%if %llvm == yes
|
||||||
|
export PATH=/opt/novell/llvm-mono/bin:$PATH
|
||||||
|
%endif
|
||||||
%configure \
|
%configure \
|
||||||
--with-sgen=%{sgen} \
|
--with-sgen=%{sgen} \
|
||||||
%if %llvm == yes
|
%if %llvm == yes
|
||||||
--with-llvm=/usr/lib/mono/llvm/ \
|
--enable-loadedllvm \
|
||||||
|
--disable-system-aot \
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
--with-sigaltstack=no \
|
--with-sigaltstack=no \
|
||||||
@ -557,6 +568,30 @@ Development files for libmonosgen.
|
|||||||
%{_libdir}/pkgconfig/monosgen-2.pc
|
%{_libdir}/pkgconfig/monosgen-2.pc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %llvm == yes
|
||||||
|
%package -n libmono-llvm0
|
||||||
|
Summary: Loadable LLVM libary for mono
|
||||||
|
License: LGPL-2.1
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
|
%description -n libmono-llvm0
|
||||||
|
The Mono Project is an open development initiative that is working to
|
||||||
|
develop an open source, Unix version of the .NET development platform.
|
||||||
|
Its objective is to enable Unix developers to build and deploy
|
||||||
|
cross-platform .NET applications. The project will implement various
|
||||||
|
technologies that have been submitted to the ECMA for standardization.
|
||||||
|
|
||||||
|
Loadable LLVM libary for mono.
|
||||||
|
|
||||||
|
%files -n libmono-llvm0
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_libdir}/libmono-llvm.so*
|
||||||
|
|
||||||
|
%post -n libmono-llvm0 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libmono-llvm0 -p /sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
%package -n mono-locale-extras
|
%package -n mono-locale-extras
|
||||||
Summary: Extra locale information
|
Summary: Extra locale information
|
||||||
License: LGPL-2.1
|
License: LGPL-2.1
|
||||||
@ -1397,6 +1432,9 @@ Requires: ibm-data-db2 = %{version}
|
|||||||
Requires: libmono-2_0-1 = %{version}
|
Requires: libmono-2_0-1 = %{version}
|
||||||
Requires: libmono-2_0-devel = %{version}
|
Requires: libmono-2_0-devel = %{version}
|
||||||
Requires: mono-core = %{version}
|
Requires: mono-core = %{version}
|
||||||
|
%if %llvm == yes
|
||||||
|
Requires: libmono-llvm0 = %{version}
|
||||||
|
%endif
|
||||||
%if %sgen == yes
|
%if %sgen == yes
|
||||||
Requires: libmonosgen-2_0-1 = %{version}
|
Requires: libmonosgen-2_0-1 = %{version}
|
||||||
Requires: libmonosgen-2_0-devel = %{version}
|
Requires: libmonosgen-2_0-devel = %{version}
|
||||||
|
Reference in New Issue
Block a user