From f79480e7bbe016a873a66ad3d894ee55c86b3b21 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 24 2017 08:03:21 +0000 Subject: import rh-dotnetcore11-dotnetcore-1.1.1-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70176da --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/dotnet-dev-rhel-x64.1.0.0-preview2-1-003176.tar.gz +SOURCES/manpages.1.0.0-preview2-1-003176.tar.gz diff --git a/.rh-dotnetcore11-dotnetcore.metadata b/.rh-dotnetcore11-dotnetcore.metadata new file mode 100644 index 0000000..2a76f39 --- /dev/null +++ b/.rh-dotnetcore11-dotnetcore.metadata @@ -0,0 +1,2 @@ +4c1bb7736a4abff971040f58d0331483698ea971 SOURCES/dotnet-dev-rhel-x64.1.0.0-preview2-1-003176.tar.gz +0698161699a3cc3f6956ec1beb66fc86e5443edf SOURCES/manpages.1.0.0-preview2-1-003176.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/LICENSE b/SOURCES/LICENSE new file mode 100644 index 0000000..cd10d69 --- /dev/null +++ b/SOURCES/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2015 .NET Foundation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/SPECS/dotnetcore.spec b/SPECS/dotnetcore.spec new file mode 100644 index 0000000..064b0c2 --- /dev/null +++ b/SPECS/dotnetcore.spec @@ -0,0 +1,192 @@ +%{?scl:%scl_package dotnetcore} +%{!?scl:%global pkg_name %{name}} + +# there are no build id notes in these binaries +# dont abort finding-debuginfo because of that +%undefine _missing_build_ids_terminate_build + +# lldb doesn't like our nice debug information +%undefine _include_minidebuginfo +%global _find_debuginfo_dwz_opts %{nil} + +%global cli_version 1.0.0-preview2-1-003176 +%global runtime_version 1.1.1 + +# Do not provide internal .so as standard libraries +%global __provides_exclude_from ^(%{_libdir}/dotnetcore/.*\\.so|%{_libdir}/dotnetcore/sdk/%{cli_version}/.*\\.so|%{_libdir}/dotnetcore/shared/Microsoft.NETCore.App/%{runtime_version}/.*)$ + +# Do not scan some files for which we have no dependencies +%global __requires_exclude_from ^(%{_libdir}/dotnetcore/shared/Microsoft.NETCore.App/%{runtime_version}/libcoreclrtraceptprovider.so|%{_libdir}/dotnetcore/shared/Microsoft.NETCore.App/%{runtime_version}/libsosplugin.so)$ + +# Do not generate requires for libraries provided by this own package +%global __requires_exclude ^(libmscordaccore.so\\(\\)\\(64bit\\)|libmscordaccore.so\\(V1.0\\)\\(64bit\\))$ + +Name: %{?scl_prefix}dotnetcore +Version: 1.1.1 +Release: 1%{?dist} +Summary: .NET Core is a general-purpose cross platform development platform +Group: Development/Languages +License: ASL 2.0 and MIT +URL: https://www.microsoft.com/net/core + +# Built on a developer's laptop, from source +Source0: dotnet-dev-rhel-x64.%{cli_version}.tar.gz + +# Generated from sources via: +# find -path '*manpage*' -type f -iname '*.1' -print0 | tar -czvf manpages.tar.gz --null -T - +Source1: manpages.%{cli_version}.tar.gz + +Source2: https://raw.githubusercontent.com/dotnet/core-setup/release/1.1.0/LICENSE + +ExclusiveArch: x86_64 + +Requires: %{?scl_prefix}libcurl%{?_isa} +Requires: %{?scl_prefix}libuv%{?_isa} + +%{?scl:Requires: %scl_runtime} + +%description +.NET Core is a fast, lightweight and modular platform for creating +cross platform applications that work on Linux, Mac and Windows. + +.NET Core contains a runtime conforming to the .NET standards, a set +of framework libraries, an SDK containing compilers and a 'dotnet' +application to drive everything. + +%prep +%setup -q -c -n %{pkg_name}-%{version} +tar xvf %{SOURCE1} + +# Upstream license file is bogus +# https://github.com/dotnet/core-setup/issues/676 +rm LICENSE.txt +cp %{SOURCE2} LICENSE + +%build +# Nothing to build; this is already a binary in a tarball + +# Remove things with dependencies that are not ready yet + +# Requires lttng +# find -iname libcoreclrtraceptprovider.so -delete +# Requires lldb +# find -iname libsosplugin.so -delete + +# Replace libuv with our own version. Note, there's also another copy of this +# same libuv, bundled, in the nuget package cache. +rm shared/Microsoft.NETCore.App/%{runtime_version}/libuv.so +ln -s %{_libdir}/libuv.so.1 shared/Microsoft.NETCore.App/%{runtime_version}/libuv.so + +%install +install -dm 755 $RPM_BUILD_ROOT/%{_libdir}/%{pkg_name}/ +cp -a dotnet sdk host shared $RPM_BUILD_ROOT/%{_libdir}/%{pkg_name}/ + +mkdir -p $RPM_BUILD_ROOT/%{_bindir} +ln -s %{_libdir}/%{pkg_name}/dotnet $RPM_BUILD_ROOT/%{_bindir}/ + +mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/ +find -type f -iname 'dotnet*\.1' -exec cp {} $RPM_BUILD_ROOT/%{_mandir}/man1/ \; + +%files +%doc LICENSE +%doc ThirdPartyNotices.txt +%{_libdir}/%{pkg_name} +%{_bindir}/* +%{_mandir}/man1/dotnet*.1* + +%changelog +* Fri Mar 03 2017 Omair Majid - 1.1.1-1 +- Update to 1.1.1 +- Uses preview2-1 tooling (project.json rather than csproj) + +* Sat Nov 26 2016 Omair Majid - 1.1-3 +- Add a LICENSE based on upstream discussions + +* Mon Nov 14 2016 Omair Majid - 1.1-2 +- Use libuv from rh-dotnetcore11-libuv + +* Fri Nov 11 2016 Omair Majid - 1.1-1 +- 003175 is the final 1.1 build + +* Thu Nov 10 2016 Omair Majid - 1.1-0.2 +- Update to new CLI preview2 build. + +* Tue Nov 8 2016 Omair Majid - 1.1-0.1 +- Update to 1.1 + +* Tue Sep 20 2016 Omair Majid - 1.0.1-2 +- Add man pages + +* Mon Sep 19 2016 Omair Majid - 1.0.1-1 +- Update to 1.0.1 +- Resolves: RHBZ 1361254 +- Resolves: RHBZ 1372033 + +* Wed Jun 22 2016 Omair Majid - 1.0.0-7 +- Update to newer build. +- Fixes https://github.com/NuGet/Home/issues/3010 + +* Mon Jun 20 2016 Severin Gehwolf - 1.0.0-6 +- Reinstate libuv runtime requirement. + +* Fri Jun 17 2016 Omair Majid - 1.0.0-5 +- Update with new build. This one includes a libuv built from source. + +* Fri Jun 17 2016 Omair Majid - 1.0.0-4 +- Update source. +- Fix filtering of provides and requires +- Don't use the scl-wide libuv.so. There's a bundled copy included. + +* Fri Jun 17 2016 Omair Majid - 1.0.0-3 +- Update requires filtering for self-provided library + +* Fri Jun 17 2016 Omair Majid - 1.0.0-2 +- Update requires filtering for self-provided library + +* Thu Jun 16 2016 Omair Majid - 1.0.0-1 +- First build of .NET Core 1.0 + +* Fri May 27 2016 Omair Majid - 1.0.0-0.9.rc2 +- Don't generate requires for self-provided library + +* Fri May 27 2016 Omair Majid - 1.0.0-0.8.rc2 +- Do not rpm-provide internal implementation libraries + +* Tue May 17 2016 Omair Majid - 1.0.0-0.7.rc2 +- Strip binaries and produce debug packages + +* Mon May 16 2016 Omair Majid - 1.0.0-0.6.preview1 +- Build using new upstream tarball with fixed LICENSE. + +* Mon May 16 2016 Omair Majid - 1.0.0-0.5.preview1 +- Include license file + +* Thu May 12 2016 Omair Majid - 1.0.0-0.4.preview1 +- Update to latest preview build + +* Wed May 11 2016 Omair Majid - 1.0.0-0.3.preview1 +- Update to latest build + +* Thu Apr 28 2016 Omair Majid - 1.0.0-0.2.20160428 +- Update to the latest nightly build + +* Thu Apr 21 2016 Omair Majid - 1.0.0-0.2.20160421 +- Update to latest nightly build + +* Wed Apr 20 2016 Omair Majid - 1.0.0-0.2.20160407 +- Explicitly require customized libcurl + +* Mon Apr 18 2016 Omair Majid - 1.0.0-0.1.20160407 +- Rename package + +* Thu Apr 07 2016 Omair Majid - 1.0.0-0.1.20160407 +- Update to latest nightly + +* Wed Apr 06 2016 Omair Majid - 1.0.0-0.1.20160406 +- Update to latest nightly + +* Mon Apr 04 2016 Omair Majid - 1.0.0-0.1.20160404 +- Update to newer drop + +* Fri Mar 11 2016 Omair Majid - 1.0.0-0.1.20160229 +- Initial package