# # NOTE: Makefiles are broken, build could stop long time after first fatal error # TODO: # /usr/lib/mono-source-libs/Options.cs # /usr/lib/mono-source-libs/getline.cs # /usr/lib64/pkgconfig/mono-lineeditor.pc # /usr/lib64/pkgconfig/mono-options.pc # /usr/lib64/pkgconfig/mono.web.pc # /usr/lib64/pkgconfig/system.web.extensions.design_1.0.pc # /usr/lib64/pkgconfig/system.web.extensions_1.0.pc # /usr/lib64/pkgconfig/wcf.pc # - x86_64 searches .dll from %{_libdir}, not %{_prefix}/lib: # The assembly mscorlib.dll was not found or could not be loaded. # It should have been installed in the `/usr/lib64/mono/2.0/mscorlib.dll' directory. # # Conditional build: %bcond_without tls # don't use TLS (which requires recent 2.4.x or 2.6 kernel) %bcond_without static_libs # don't build static libraries %bcond_with bootstrap # don't require mono-devel to find req/prov %bcond_with mint # build mint instead of mono VM (JIT) [broken] # %ifnarch %{ix86} %{x8664} alpha arm ia64 ppc s390 s390x sparc sparcv9 sparc64 # JIT not supported on hppa %define with_mint 1 %endif %define glib_ver 1:2.4 # Summary: Common Language Infrastructure implementation Summary(pl.UTF-8): Implementacja Common Language Infrastructure Name: mono Version: 2.4.2.3 Release: 0.4 License: LGPL (VM), GPL (C# compilers), MIT X11 with GPL additions (classes, tools) Group: Development/Languages # latest downloads summary at http://ftp.novell.com/pub/mono/sources-stable/ Source0: http://ftp.novell.com/pub/mono/sources/mono/%{name}-%{version}.tar.bz2 # Source0-md5: 696f25afc8453cd0d1c78de6e905dcf2 Patch0: %{name}-alpha-float.patch Patch1: %{name}-mint.patch Patch2: %{name}-sonames.patch Patch3: %{name}-awk.patch Patch4: %{name}-console-no-utf8-bom.patch Patch5: %{name}-pc.patch Patch6: %{name}-ARG_MAX.patch Patch7: %{name}-metadata-makefile.patch URL: http://www.mono-project.com/ %if %(test -r /dev/random; echo $?) BuildRequires: ACCESSIBLE_/dev/random %endif BuildRequires: autoconf BuildRequires: automake BuildRequires: bison BuildRequires: gettext-devel BuildRequires: glib2-devel >= %{glib_ver} BuildRequires: libtool %{!?with_bootstrap:BuildRequires: mono-devel >= 1.1.8.3-2} BuildRequires: pkgconfig BuildRequires: rpmbuild(macros) >= 1.213 BuildRequires: rpmbuild(monoautodeps) Suggests: binfmt-detector # for System.Drawing Suggests: libgdiplus >= 2.0 ExclusiveArch: %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9 # plain i386 is not supported; mono uses cmpxchg/xadd which require i486 ExcludeArch: i386 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _rpmlibdir /usr/lib/rpm # debugger doesn't work with stripped mono %define _noautostrip .*/mono %if %{without bootstrap} %define __mono_provides %{_rpmlibdir}/mono-find-provides %define __mono_requires %{_rpmlibdir}/mono-find-requires %endif %description The Common Language Infrastructure platform. Microsoft has created a new development platform. The highlights of this new development platform are: - A runtime environment that provides garbage collection, threading and a virtual machine specification (The Virtual Execution System, VES), - A comprehensive class library, - A new language, C#. Very similar to Java, C# allows programmers to use all the features available on the .NET runtime, - A language specification that compilers can follow if they want to generate classes and code that can interoperate with other programming languages (The Common Language Specification: CLS). %{?with_tls:This version was built with TLS __thread.} %description -l pl.UTF-8 Platforma CLI (Common Language Infrastructure). Microsoft stworzył nową platformę developerską. Zalety tej platformy to: - środowisko, które dostarcza garbage collector, wątki oraz specyfikację maszyny wirtualnej (The Virtual Execution System, VES), - bibliotekę klas, - nowy język, C#. Bardzo podobny do Javy, C# pozwala programistom na używanie wszystkich możliwości dostarczanych przez platformę .NET, - specyfikacja dla kompilatorów, które chcą generować kod współpracujący z innymi językami programowania (The Common Language Specification: CLS). %{?with_tls:Ta wersja została zbudowana z TLS __thread.} %package devel Summary: Development resources for mono Summary(pl.UTF-8): Zasoby programisty do mono License: LGPL (VM), MIT X11 with GPL additions (classes, tools) Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: glib2-devel >= %{glib_ver} %description devel Development resources for mono. %description devel -l pl.UTF-8 Zasoby programisty dla mono. %package debug Summary: Mono libraries debugging resources Summary(pl.UTF-8): Pliki umożliwiające debugowanie bibliotek mono Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description debug Mono libraries debugging resources. %description debug -l pl.UTF-8 Pliki umożliwiające debugowanie bibliotek mono. %package csharp Summary: C# compiler for mono Summary(pl.UTF-8): Kompilator C# dla mono License: GPL Group: Development/Languages Requires: %{name}-devel = %{version}-%{release} %description csharp C# compiler for mono. %description csharp -l pl.UTF-8 Kompilator C# dla mono. %package ilasm Summary: ILasm compiler for mono Summary(pl.UTF-8): Kompilator ILasm dla mono # implied License: MIT X11 Group: Development/Languages Requires: %{name}-devel = %{version}-%{release} Provides: ilasm Obsoletes: pnet-compiler-ilasm %description ilasm ILasm compiler for mono. %description ilasm -l pl.UTF-8 Kompilator ILasm dla mono. %package jscript Summary: jscript compiler for mono Summary(pl.UTF-8): Kompilator jscript dla mono License: MIT X11 Group: Development/Languages Requires: %{name}-devel = %{version}-%{release} %description jscript jscript compiler for mono. %description jscript -l pl.UTF-8 Kompilator jscript dla mono. %package monodoc Summary: Documentation for Mono class libraries and tools to produce and edit the documentation Summary(pl.UTF-8): Dokumentacja klas Mono wraz z narzędziami do jej generowania i przeglądania License: LGPL Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} Provides: monodoc = %{version}-%{release} Obsoletes: monodoc %description monodoc This package contains the documentation for the Mono class libraries, tools to produce and edit the documentation, and a documentation browser. %description monodoc -l pl.UTF-8 Ten pakiet zawiera dokumentację klas Mono wraz z narzędziami do jej generowania i przeglądania. %package static Summary: Static mono library Summary(pl.UTF-8): Statyczna biblioteka mono License: LGPL Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static mono library. %description static -l pl.UTF-8 Statyczna biblioteka mono. %package jay Summary: Yacc-like parser generator for Java and C# Summary(pl.UTF-8): Podobny do Yacca generator parserów dla Javy i C# License: BSD Group: Development/Tools %description jay Yacc-like parser generator for Java and C#. %description jay -l pl.UTF-8 Podobny do Yacca generator parserów dla Javy i C#. %package compat-links Summary: Mono compatibility links Summary(pl.UTF-8): Dowiązania dla kompatybilności # resgen license License: MIT X11 Group: Development/Languages Requires: %{name}-devel = %{version}-%{release} %description compat-links This package contains links to binaries with names used in .NET and dotGNU. %description compat-links -l pl.UTF-8 Pakiet ten zawiera dowiązania do programów o nazwach używanych w .NET oraz dotGNU. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 #%patch5 -p1 %patch6 -p1 %patch7 -p1 # for jay cat >>mcs/build/config-default.make <