You've already forked linux-packaging-mono
Modernize llvm packaging rules (but don't enable, yet)
(cherry picked from commit df57d4121f
)
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: llvm-mono-devel
|
BuildRequires: mono-llvm-devel
|
||||||
%endif
|
%endif
|
||||||
Provides: mono = %{version}
|
Provides: mono = %{version}
|
||||||
Provides: mono-cairo = %{version}
|
Provides: mono-cairo = %{version}
|
||||||
@ -74,13 +74,6 @@ 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
|
||||||
@ -154,14 +147,10 @@ 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
|
||||||
--enable-loadedllvm \
|
--with-llvm=/usr/lib/mono/llvm/ \
|
||||||
--disable-system-aot \
|
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
--with-sigaltstack=no \
|
--with-sigaltstack=no \
|
||||||
@ -568,30 +557,6 @@ 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
|
||||||
@ -1432,9 +1397,6 @@ 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