diff --git a/mono-4.6.2.7.tar.bz2 b/mono-4.6.2.7.tar.bz2
deleted file mode 100644
index 50441b3..0000000
--- a/mono-4.6.2.7.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:b69ead7db7590277630685f3fcad84a5ac2f83e40563f0dc8cf139b10cbe6b31
-size 83271441
diff --git a/mono-4.8.1.0.tar.bz2 b/mono-4.8.1.0.tar.bz2
new file mode 100644
index 0000000..46e4ce0
--- /dev/null
+++ b/mono-4.8.1.0.tar.bz2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:18cb38a670e51609c36c687ed90ad42cfedabeffd0a2dc5f7f0c46249eb8dbef
+size 87375499
diff --git a/mono-config-fix-monoposixhelper-libdir.patch b/mono-config-fix-monoposixhelper-libdir.patch
deleted file mode 100644
index 57a4f1e..0000000
--- a/mono-config-fix-monoposixhelper-libdir.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -uprN mono-4.4.0.old/data/config.in mono-4.4.0.new/data/config.in
---- mono-4.4.0.old/data/config.in 2016-06-09 18:01:54.000000000 +0300
-+++ mono-4.4.0.new/data/config.in 2016-03-15 14:31:53.000000000 +0300
-@@ -10,7 +10,7 @@
-
-
-
--
-+
-
-
-
diff --git a/mono-core.changes b/mono-core.changes
index f38a9c6..057ce1c 100644
--- a/mono-core.changes
+++ b/mono-core.changes
@@ -1,3 +1,173 @@
+-------------------------------------------------------------------
+Fri Apr 28 15:00:00 UTC 2017 - fwdsbs.to.11df@xoxy.net
+
+- Update to version 4.8.1.0 (4.8 Service Release 1)
+- Remove patch mono-config-fix-monoposixhelper-libdir.patch:
+ * Instead, use fix from official spec file
+- New features (see http://www.mono-project.com/docs/about-mono/releases/4.8.0 for more info):
+ * Some API additions for .NET Standard 2.0
+ * Mono now ships with TLS 1.2, powered by Google’s BoringSSL project
+ * The MKBundle tool has been updated to easily support cross-compilation
+ * Runtime Logging: the new MONO_LOG_DEST environment variable can set to instruct the runtime where to write the tracing messages to
+ * Concurrent SGen mode improved
+ * More code have been adopted from Reference Source
+- Bugfixes:
+ * bxc#3323: Assertion when deleting global namespace inside method
+ * bxc#3399: [PATCH] pending_exception support is incomplete
+ * bxc#3434: Mono Compiler crashes when using a DelegateType as a method call
+ * bxc#3706: generics aot jit problem
+ * bxc#3735: Attempting to JIT compile method: using Linq’s “Any” fails on the device
+ * bxc#3767: Unit test UI table cell extends beyond cell bounds for failed test
+ * bxc#3811: DataContractJsonSerializer deserialization fails with subclass of List as known type
+ * bxc#3850: ScrollEventArgs in Form_Scroll method has invalid values
+ * bxc#3960: DismissModalViewControllerAnimated() crashes on 5.2.9
+ * bxc#4006: MonoDevelop fails to start with no warning if Gtk# is not installed on windows
+ * bxc#5644: Mono allows to access not accessible method
+ * bxc#7467: DefaultNonPersistentConnectionLimit is to low
+ * bxc#12571: Usage of XElement with XmlAnyElementAttribute is not supported by XmlSerializer
+ * bxc#19594: WebException.Response is null when https request needs proxy authentication
+ * bxc#29189: Compiling class referencing corefx facade/contract assemblies raises error “Reference to type System.SByte claims it is defined assembly mscorlib,.. but couldn’t be found”
+ * bxc#30686: ZipArchive ctor throws InvalidDataException for WebConnectionStream
+ * bxc#30821: Compilation generates CS1701 warning
+ * bxc#32374: WebRequest::BeginGetRequestStream incorrectly sets IAsyncResult::CompletedSynchronously to always true
+ * bxc#33571: Mono crashes when marshalling fixed arrays
+ * bxc#34802: Debugger crash on break-all, step into sequence.
+ * bxc#35536: Dns.GetHostEntry no longer supports IPv6
+ * bxc#35662: Type System.ServiceModel.Security.Tokens.BinarySecretSecurityToken is missing in assembly System.IdentityModel
+ * bxc#39282: [System.IO.Compression] issues with ZipArchiveEntry streams
+ * bxc#39859: Xamarin.Android apps on the Samsung Galaxy S7 fails to start with the error System.ExecutionEngineException SIGILL
+ * bxc#40603: Mono can’t parse Date in DB wich is in format: “2016-02-04 10:39:11Z”
+ * bxc#40916: [System.IO.Compression] ZipArchive can create an ZipArchiveEntry that has a modified time of DateTime.MinValue
+ * bxc#41035: DataViewTest2.DataView_ListChangedEventTest occasionally fails with llvm+sgen
+ * bxc#41349: System.TimeZoneInfo.IsDaylightSavingTime (DateTimeOffset dateTimeOffset) Not Implemented Exception
+ * bxc#41393: [WatchOS 2] Incorrect calling convention for P/Invokes taking structures
+ * bxc#41431: [aot] Build fails due to ‘Sgen STW requires a working mono-context’ error
+ * bxc#41466: mono_class_is_subclass_of return incorrect value by assuming mono_class_init has been called on parameters
+ * bxc#41477: SafeSocketHandle ObjectDisposedException ‘handle’ exception with linked CancellationTokenSource
+ * bxc#41492: DateTimeOffset.ToLocalTime() throwing erroneous error
+ * bxc#41509: DLR crashes when trying to convert a object to null.
+ * bxc#41530: [iOS]TimerTest failing randomly on devices,
+ * bxc#41552: HttpResponseMessage does not support multiple Links header entries
+ * bxc#41575: A Method That Accepts a FormattableString Object Is Not Called
+ * bxc#3323: Assertion when deleting global namespace inside method
+ * bxc#3399: [PATCH] pending_exception support is incomplete
+ * bxc#3434: Mono Compiler crashes when using a DelegateType as a method call
+ * bxc#3706: generics aot jit problem
+ * bxc#3735: Attempting to JIT compile method: using Linq’s “Any” fails on the device
+ * bxc#3767: Unit test UI table cell extends beyond cell bounds for failed test
+ * bxc#3811: DataContractJsonSerializer deserialization fails with subclass of List as known type
+ * bxc#3850: ScrollEventArgs in Form_Scroll method has invalid values
+ * bxc#3960: DismissModalViewControllerAnimated() crashes on 5.2.9
+ * bxc#4006: MonoDevelop fails to start with no warning if Gtk# is not installed on windows
+ * bxc#5644: Mono allows to access not accessible method
+ * bxc#7467: DefaultNonPersistentConnectionLimit is to low
+ * bxc#12571: Usage of XElement with XmlAnyElementAttribute is not supported by XmlSerializer
+ * bxc#19594: WebException.Response is null when https request needs proxy authentication
+ * bxc#29189: Compiling class referencing corefx facade/contract assemblies raises error “Reference to type ‘System.SByte’ claims it is defined assembly ‘mscorlib,..’ but couldn’t be found”
+ * bxc#30686: ZipArchive ctor throws InvalidDataException for WebConnectionStream
+ * bxc#30821: Compilation generates CS1701 warning
+ * bxc#32374: WebRequest::BeginGetRequestStream incorrectly sets IAsyncResult::CompletedSynchronously to always true
+ * bxc#33571: Mono crashes when marshalling fixed arrays
+ * bxc#34802: Debugger crash on break-all, step into sequence.
+ * bxc#35536: Dns.GetHostEntry no longer supports IPv6
+ * bxc#35662: Type System.ServiceModel.Security.Tokens.BinarySecretSecurityToken is missing in assembly System.IdentityModel
+ * bxc#39282: [System.IO.Compression] issues with ZipArchiveEntry streams
+ * bxc#39859: Xamarin.Android apps on the Samsung Galaxy S7 fails to start with the error System.ExecutionEngineException SIGILL
+ * bxc#40603: Mono can’t parse Date in DB wich is in format: “2016-02-04 10:39:11Z”
+ * bxc#40916: [System.IO.Compression] ZipArchive can create an ZipArchiveEntry that has a modified time of DateTime.MinValue
+ * bxc#41035: DataViewTest2.DataView_ListChangedEventTest occasionally fails with llvm+sgen
+ * bxc#41349: System.TimeZoneInfo.IsDaylightSavingTime (DateTimeOffset dateTimeOffset) Not Implemented Exception
+ * bxc#41393: [WatchOS 2] Incorrect calling convention for P/Invokes taking structures
+ * bxc#41431: [aot] Build fails due to ‘Sgen STW requires a working mono-context’ error
+ * bxc#41466: mono_class_is_subclass_of return incorrect value by assuming mono_class_init has been called on parameters
+ * bxc#41477: SafeSocketHandle ObjectDisposedException ‘handle’ exception with linked CancellationTokenSource
+ * bxc#41492: DateTimeOffset.ToLocalTime() throwing erroneous error
+ * bxc#41509: DLR crashes when trying to convert a object to null.
+ * bxc#41530: [iOS]TimerTest failing randomly on devices,
+ * bxc#41552: HttpResponseMessage does not support multiple Links header entries
+ * bxc#41575: A Method That Accepts a FormattableString Object Is Not Called
+ * bxc#41602: Compiler fails to recognize Indexer
+ * bxc#41616: Mono 4.4.0 crashes when using Socket.ConnectAsync to a unix domain socket if the path doesn’t exist
+ * bxc#41667: new DateTime().ToLocalTime() results in an exception
+ * bxc#41705: MonoTests.System.Threading.MonitorTest.Enter_Null crashes test runtime with assertion
+ * bxc#41775: Zip version needed to extract not correct in System.IO.Compression
+ * bxc#41782: [Cycle 7] “System.Net.WebException: Error: NameResolutionFailure” when attempting web requests with certain raw IP addresses
+ * bxc#41874: Reflection throws AmbiguousMatchException when calling GetProperty on a class that inherits from a generic base class.
+ * bxc#41897: NotSupportedException thrown from IPInterfaceProperties.UnicastAddresses
+ * bxc#41937: invoke.exe test asserts on bitcode
+ * bxc#41955: Bitcode “missing image did not probe corlib” exception thrown
+ * bxc#41979: CodeDom cannot call mcs because of invalid encoding configuration
+ * bxc#42057: error CS0121: The call is ambiguous
+ * bxc#42169: (managed_alloc) Fatal: Managed allocator missing for (mkbundle) in Mono 4.4.X
+ * bxc#42191: sdb deadlocks all the time while XS debugs XS
+ * bxc#42198: error CS0529: Inherited interface causes a cycle in the interface hierarchy.
+ * bxc#42219: [System.IO.Compression] Cannot create ZipArchive with duplicate entries with same name
+ * bxc#42224: Compiler crashed with code: 1, “Await yields with non-empty stack” from AssertEmptyStack ()
+ * bxc#42226: WCF client Expecting FaultException raising NotImplemented Exception instead When element is provided.
+ * bxc#42271: COOP: gc unsafe mode when printing native backtrace causes crash if GC is triggered
+ * bxc#42274: System.IO.Compression.ZipArchive vs System.Xml.XmlReader
+ * bxc#42395: Build runs indefinitely and never finishes
+ * bxc#42408: WebClient.DownloadString returns 401 Unauthorized when using Basic authentication
+ * bxc#42410: String Interpolation available even when langversion < 6
+ * bxc#42413: Volatile fields don’t enforce acquire - release semantics like Volatile.Read() and Volatile.Write()
+ * bxc#42584: InternalError / Crash when using System.Net.Http and PCL library
+ * bxc#42585: Switch fall-through not rejected
+ * bxc#42611: wrong compiler error when using IEnumerable.Sum
+ * bxc#42625: coop: crash with watchos system tests
+ * bxc#42688: Can’t wait for more than 429496 ms (429s)
+ * bxc#42702: Unnecessary dependency checks
+ * bxc#42750: Deploying an iOS app to iPhone 6S crashes when a breakpoint is set
+ * bxc#42843: XmlSerializer does not deserialize UTC Time values on Xamarin.Android but works well on windows.
+ * bxc#42864: [Cycle 7] “System.Net.WebException: Error: NameResolutionFailure” on second web request to certain raw IP addresses with HttpClient
+ * bxc#42887: Encoding iso-8859-1 throws IndexOutOfRangeException for Unicode surrogate pairs
+ * bxc#43022: ZipArchive.Entries is not updated when ZipArchiveEntry is deleted
+ * bxc#43032: System.Uri cannot parse url with underscore at start
+ * bxc#43099: [watchOS] Cannot enter GC safe region if the thread is not attached
+ * bxc#43193: Keep CurrentCulture in async/await
+ * bxc#43265: Inconsistency in Compilation of Async Code Compared to MSFT Compilers
+ * bxc#43291: Runtime crash at reflection.c:mono_custom_attrs_construct_by_type while calling GetCustomAttributes for a proxy class
+ * bxc#43320: Thread aborts in the middle of .cctor and hell break loose
+ * bxc#43357: WCSessionReplyHandler crashes WatchKit app
+ * bxc#43400: “using static” dependent on compile order
+ * bxc#43471: pragma warning disable still shows warnings in “Errors” pad
+ * bxc#43512: TimeZoneInfo.ConvertTimeBySystemTimeZoneId ArgumentException
+ * bxc#43636: [Cycle 8] “Index was out of range. Must be non-negative and less than the size of the collection” in System.Collections.Generic.List1[T].set_Item() when attempting to compile certain C# code involving tasks, async/await, and try/catch/finally
+ * bxc#43695: Nuget resolves .netstandard <= 1.3 when Xamarin.IOS does not support it
+ * bxc#43696: Delegate caching can invoke unrelated implementation leading to strange results
+ * bxc#43718: mcs crashes when unable to resolve type inside lambda using the ‘as’ operator
+ * bxc#43786: peverify is broken again
+ * bxc#43921: System.Threading.ThreadHelper.ThreadStart_Context tries to allocate, crashes
+ * bxc#44025: FTP download issue with IPv6
+ * bxc#44109: NetworkCredential does not convert SecureString
+ * bxc#44164: gosharp-regexp benchmark triggers unwinding crash when profiling
+ * bxc#44168: Can use non-accessible member with nameof
+ * bxc#44381: Debugger crash with domain unloading and VSTU
+ * bxc#44402: Array doesn’t implement non-generic IEnumerable
+ * bxc#44406: Xamarin.Mac.Socket exception:An address incompatible with the requested protocol was used
+ * bxc#44413: HttpHeaders.TryAddWithoutValidation behaves differently from .NET
+ * bxc#44440: Attempting to JIT error in function with pointer arithmetic
+ * bxc#44549: Ide Shuts down: System.ArgumentException: Item has already been added. Key in dictionary: ‘XamlG’ Key being added: ‘XamlG’
+ * bxc#44624: Connecting to SQL Server using IPv4 exception.
+ * bxc#44707: RemotingConfiguration.Configure() Throws RemotingException Because it Cannot Load ‘machine.config’
+ * bxc#44729: Type.GetType(“blah”,true,false) throws TypeLoadException without message
+ * bxc#44751: Incorrect code flow analysis with goto and out parameter causes CS0177
+ * bxc#44843: SqlCommand.ExecuteReaderAsync throws NotImplementedException
+ * bxc#44937: System.Diagnostics.StartProcess does not detect dotnetcore compiled assemblies as managed
+ * bxc#44978: HttpClientHandler.SendAsync should throw HttpRequestException for proxy auth failure
+ * bxc#44994: DeflateStream decompression is incomplete if reading byte-by-byte
+ * bxc#45129: Uri.IsWellFormedUriString returns incorrect result for relative uris beginning with slash
+ * bxc#45137: Seeing new AAPT0000 errors when building certain projects against master
+ * bxc#45270: Cannot add System.Reactive to watchOS Extension project
+ * bxc#45286: C# string interpolation line does not compile on OSX but does on MSBuild
+ * bxc#45774: Wrong scopes in .mdb in case of foreach loop
+ * bxc#45788: Marshaling a native NULL pointer to a managed array creates a new zero sized array
+ * bxc#46175: If the RSA will be used by multiple threads, it has a variety of exceptions.
+ * bxc#46190: Overload resolution fails in a case where methods use a named parameter in different positions
+ * bxc#46250: Type.GetType with throwOnError true doesn’t throw for a generic instance type with too few generic arguments
+ * bxc#47205: Uri.TryCreate throws exception
+ * bxc#42414: Run path_helper in OSX postinstall script to make Mono commands available in same shell session
+ * bxc#42365: Mono 4.4.1 OSX package doesn’t clean up old symlinks from /usr/local/bin
+
-------------------------------------------------------------------
Thu Nov 17 06:33:02 UTC 2016 - mailaender@opensuse.org
diff --git a/mono-core.spec b/mono-core.spec
index c37da93..41ed03e 100644
--- a/mono-core.spec
+++ b/mono-core.spec
@@ -26,21 +26,20 @@
%endif
Name: mono-core
-Version: 4.6.2
+Version: 4.8.1
Release: 0
Summary: Cross-platform, Open Source, .NET development framework
License: LGPL-2.1 and MIT and MS-PL
Group: Development/Languages/Mono
Url: http://www.mono-project.com
-Source0: http://download.mono-project.com/sources/mono/mono-%{version}.7.tar.bz2
+Source0: http://download.mono-project.com/sources/mono/mono-%{version}.0.tar.bz2
Source1: mono-core.rpmlintrc
Source2: gmcs
# ppc build segfault so exclude it
ExcludeArch: ppc
# PATCH-FIX-OPENSUSE remove checks for libmono in mono-find-provides and mono-find-requires scripts
Patch14: find-deps-fix.patch
-# PATCH-FIX-OPENSUSE fix incorrect $mono_libdir substitution for libMonoPosixHelper.so library when native library dir (/usr/lib64 on x86_64) is different from mono lib dir (/usr/lib)
-Patch15: mono-config-fix-monoposixhelper-libdir.patch
+BuildRequires: cmake
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
@@ -173,7 +172,6 @@ technologies that have been submitted to the ECMA for standardization.
%prep
%setup -q -n mono-%{version}
%patch14 -p1
-%patch15 -p1
%build
NOCONFIGURE="yes" ./autogen.sh
@@ -205,15 +203,15 @@ export PATH=/opt/novell/llvm-mono/bin:$PATH
--disable-system-aot \
%endif
--with-ikvm=yes \
- --with-moonlight=no
-
+ --with-moonlight=no \
+ --enable-dynamic-btls
make
%install
%make_install
# Remove hardcoded lib directory from the config
-sed -i s,%{_prefix}/lib/,,g %{buildroot}%{_sysconfdir}/mono/config
+sed -i 's,\$mono_libdir/,,g' %{buildroot}%{_sysconfdir}/mono/config
# remove .la files (they are generally bad news)
rm -f %{buildroot}%{_libdir}/*.la
@@ -314,7 +312,9 @@ rm %{buildroot}%{_bindir}/mono-sgen-gdb.py
%{_bindir}/setreg
%{_bindir}/sn
%{_libdir}/libMonoPosixHelper.so*
+%{_libdir}/libmono-btls-shared.so*
%{_libdir}/libikvm-native.so
+%{_mandir}/man1/cert-sync.1%ext_man
%{_mandir}/man1/certmgr.1%ext_man
%{_mandir}/man1/chktrust.1%ext_man
%{_mandir}/man1/crlupdate.1%ext_man
@@ -348,6 +348,7 @@ rm %{buildroot}%{_bindir}/mono-sgen-gdb.py
%{_prefix}/lib/mono/4.5/ICSharpCode.SharpZipLib.dll
%{_prefix}/lib/mono/4.5/Microsoft.CSharp.dll
%{_prefix}/lib/mono/4.5/Microsoft.VisualC.dll
+%{_prefix}/lib/mono/4.5/Mono.Btls.Interface.dll
%{_prefix}/lib/mono/4.5/Mono.CSharp.dll
%{_prefix}/lib/mono/4.5/Mono.Cairo.dll
%{_prefix}/lib/mono/4.5/Mono.CompilerServices.SymbolWriter.dll
@@ -355,10 +356,6 @@ rm %{buildroot}%{_bindir}/mono-sgen-gdb.py
%{_prefix}/lib/mono/4.5/Mono.Parallel.dll
%{_prefix}/lib/mono/4.5/Mono.Posix.dll
%{_prefix}/lib/mono/4.5/Mono.Security.dll
-%{_prefix}/lib/mono/4.5/Mono.Security.Providers.DotNet.dll
-%{_prefix}/lib/mono/4.5/Mono.Security.Providers.NewSystemSource.dll
-%{_prefix}/lib/mono/4.5/Mono.Security.Providers.NewTls.dll
-%{_prefix}/lib/mono/4.5/Mono.Security.Providers.OldTls.dll
%{_prefix}/lib/mono/4.5/Mono.Simd.dll
%{_prefix}/lib/mono/4.5/Mono.Tasklets.dll
%{_prefix}/lib/mono/4.5/System.Configuration.dll
@@ -397,6 +394,7 @@ rm %{buildroot}%{_bindir}/mono-sgen-gdb.py
%{_prefix}/lib/mono/gac/ICSharpCode.SharpZipLib
%{_prefix}/lib/mono/gac/Microsoft.CSharp
%{_prefix}/lib/mono/gac/Microsoft.VisualC
+%{_prefix}/lib/mono/gac/Mono.Btls.Interface
%{_prefix}/lib/mono/gac/Mono.CSharp
%{_prefix}/lib/mono/gac/Mono.Cairo
%{_prefix}/lib/mono/gac/Mono.Cecil
@@ -405,10 +403,6 @@ rm %{buildroot}%{_bindir}/mono-sgen-gdb.py
%{_prefix}/lib/mono/gac/Mono.Parallel
%{_prefix}/lib/mono/gac/Mono.Posix
%{_prefix}/lib/mono/gac/Mono.Security
-%{_prefix}/lib/mono/gac/Mono.Security.Providers.DotNet
-%{_prefix}/lib/mono/gac/Mono.Security.Providers.NewSystemSource
-%{_prefix}/lib/mono/gac/Mono.Security.Providers.NewTls
-%{_prefix}/lib/mono/gac/Mono.Security.Providers.OldTls
%{_prefix}/lib/mono/gac/Mono.Simd
%{_prefix}/lib/mono/gac/Mono.Tasklets
%{_prefix}/lib/mono/gac/System
@@ -1182,11 +1176,13 @@ Mono development tools.
%{_bindir}/mono-find-provides
%{_bindir}/mono-find-requires
%{_bindir}/mono-heapviz
+%{_bindir}/mono-package-runtime
%{_bindir}/mono-shlib-cop
%{_bindir}/mono-symbolicate
%{_bindir}/mono-xmltool
%{_bindir}/monodis
%{_bindir}/monolinker
+%{_bindir}/monograph
%{_bindir}/monop
%{_bindir}/monop2
%{_bindir}/mprof-report
@@ -1200,6 +1196,7 @@ Mono development tools.
%{_bindir}/resgen2
%{_bindir}/secutil
%{_bindir}/sgen
+%{_bindir}/sgen-grep-binprot
%{_bindir}/signcode
%{_bindir}/xbuild
%dir %{_datadir}/mono-2.0