Blame SPECS/dotnetcore.spec

f79480
%{?scl:%scl_package dotnetcore}
f79480
%{!?scl:%global pkg_name %{name}}
f79480
f79480
# there are no build id notes in these binaries
f79480
# dont abort finding-debuginfo because of that
f79480
%undefine _missing_build_ids_terminate_build
f79480
f79480
# lldb doesn't like our nice debug information
f79480
%undefine _include_minidebuginfo
f79480
%global _find_debuginfo_dwz_opts %{nil}
f79480
bbab0f
%global cli_version 1.0.0-preview2-1-003291
bbab0f
%global runtime_version 1.1.8
f79480
f79480
# Do not provide internal .so as standard libraries
f79480
%global __provides_exclude_from ^(%{_libdir}/dotnetcore/.*\\.so|%{_libdir}/dotnetcore/sdk/%{cli_version}/.*\\.so|%{_libdir}/dotnetcore/shared/Microsoft.NETCore.App/%{runtime_version}/.*)$
f79480
f79480
# Do not scan some files for which we have no dependencies
f79480
%global __requires_exclude_from ^(%{_libdir}/dotnetcore/shared/Microsoft.NETCore.App/%{runtime_version}/libcoreclrtraceptprovider.so|%{_libdir}/dotnetcore/shared/Microsoft.NETCore.App/%{runtime_version}/libsosplugin.so)$
f79480
f79480
# Do not generate requires for libraries provided by this own package
f79480
%global __requires_exclude ^(libmscordaccore.so\\(\\)\\(64bit\\)|libmscordaccore.so\\(V1.0\\)\\(64bit\\))$
f79480
f79480
Name:           %{?scl_prefix}dotnetcore
bbab0f
Version:        %{runtime_version}
828c28
Release:        1%{?dist}
f79480
Summary:        .NET Core is a general-purpose cross platform development platform
f79480
Group:          Development/Languages
f79480
License:        ASL 2.0 and MIT
f79480
URL:            https://www.microsoft.com/net/core
f79480
828c28
Source0:        cli-%{cli_version}.tar.gz
828c28
f79480
# Built on a developer's laptop, from source
828c28
Source1:        dotnet-dev-rhel-x64.%{cli_version}.tar.gz
f79480
f79480
# Generated from sources via:
f79480
# find -path '*manpage*' -type f -iname '*.1' -print0 | tar -czvf manpages.tar.gz --null -T -
828c28
Source2:        manpages.%{cli_version}.tar.gz
828c28
f79480
828c28
Source3:        https://raw.githubusercontent.com/dotnet/core-setup/release/1.1.0/LICENSE
f79480
f79480
ExclusiveArch:  x86_64
f79480
f79480
Requires:       %{?scl_prefix}libcurl%{?_isa}
f79480
Requires:       %{?scl_prefix}libuv%{?_isa}
f79480
f79480
%{?scl:Requires: %scl_runtime}
f79480
f79480
%description
f79480
.NET Core is a fast, lightweight and modular platform for creating
f79480
cross platform applications that work on Linux, Mac and Windows.
f79480
f79480
.NET Core contains a runtime conforming to the .NET standards, a set
f79480
of framework libraries, an SDK containing compilers and a 'dotnet'
f79480
application to drive everything.
f79480
f79480
%prep
828c28
%setup -q -T -c -b 1 -n %{pkg_name}-%{version}
828c28
tar xvf %{SOURCE2}
f79480
f79480
# Upstream license file is bogus
f79480
# https://github.com/dotnet/core-setup/issues/676
f79480
rm LICENSE.txt
828c28
cp %{SOURCE3} LICENSE
f79480
f79480
%build
f79480
# Nothing to build; this is already a binary in a tarball
f79480
f79480
# Remove things with dependencies that are not ready yet
f79480
f79480
# Requires lttng
f79480
# find -iname libcoreclrtraceptprovider.so -delete
f79480
# Requires lldb
f79480
# find -iname libsosplugin.so -delete
f79480
f79480
# Replace libuv with our own version. Note, there's also another copy of this
f79480
# same libuv, bundled, in the nuget package cache.
f79480
rm shared/Microsoft.NETCore.App/%{runtime_version}/libuv.so
f79480
ln -s %{_libdir}/libuv.so.1 shared/Microsoft.NETCore.App/%{runtime_version}/libuv.so
f79480
f79480
%install
f79480
install -dm 755 $RPM_BUILD_ROOT/%{_libdir}/%{pkg_name}/
f79480
cp -a dotnet sdk host shared $RPM_BUILD_ROOT/%{_libdir}/%{pkg_name}/
f79480
f79480
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
f79480
ln -s %{_libdir}/%{pkg_name}/dotnet $RPM_BUILD_ROOT/%{_bindir}/
f79480
f79480
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
f79480
find -type f -iname 'dotnet*\.1' -exec cp {} $RPM_BUILD_ROOT/%{_mandir}/man1/ \;
f79480
f79480
%files
f79480
%doc LICENSE
f79480
%doc ThirdPartyNotices.txt
f79480
%{_libdir}/%{pkg_name}
f79480
%{_bindir}/*
f79480
%{_mandir}/man1/dotnet*.1*
f79480
f79480
%changelog
bbab0f
* Fri Apr 06 2018 Omair Majid <omajid@redhat.com> - 1.1.8-1
bbab0f
- Update to .NET Core 1.1.8
bbab0f
8024aa
* Mon Mar 05 2018 Omair Majid <omajid@redhat.com> - 1.1.7-1
8024aa
- Update to .NET Core 1.1.7
8024aa
80f875
* Thu Jan 04 2018 Andrew Slice <andrew.slice@redhat.com> - 1.1.6-1
80f875
- Update to .NET Core 1.1.6
80f875
950b54
* Thu Oct 26 2017 Omair Majid <omajid@redhat.com> - 1.1.5-1
950b54
- Update to .NET Core 1.1.5
950b54
828c28
* Mon Sep 25 2017 Omair Majid <omajid@redhat.com> - 1.1.4-1
828c28
- Update to 1.1.4
828c28
828c28
* Tue Apr 25 2017 Omair Majid <omajid@redhat.com> - 1.1.2-1
828c28
- Update to 1.1.2
828c28
828c28
* Fri Mar 03 2017 Omair Majid <omajid@redhat.com> - 1.1.1-1
828c28
- Update to 1.1.1
828c28
- Uses preview2-1 tooling (project.json rather than csproj)
828c28
f79480
* Sat Nov 26 2016 Omair Majid <omajid@redhat.com> - 1.1-3
f79480
- Add a LICENSE based on upstream discussions
f79480
f79480
* Mon Nov 14 2016 Omair Majid <omajid@redhat.com> - 1.1-2
f79480
- Use libuv from rh-dotnetcore11-libuv
f79480
f79480
* Fri Nov 11 2016 Omair Majid <omajid@redhat.com> - 1.1-1
f79480
- 003175 is the final 1.1 build
f79480
f79480
* Thu Nov 10 2016 Omair Majid <omajid@redhat.com> - 1.1-0.2
f79480
- Update to new CLI preview2 build.
f79480
f79480
* Tue Nov 8 2016 Omair Majid <omajid@redhat.com> - 1.1-0.1
f79480
- Update to 1.1
f79480
f79480
* Tue Sep 20 2016 Omair Majid <omajid@redhat.com> - 1.0.1-2
f79480
- Add man pages
f79480
f79480
* Mon Sep 19 2016 Omair Majid <omajid@redhat.com> - 1.0.1-1
f79480
- Update to 1.0.1
f79480
- Resolves: RHBZ 1361254
f79480
- Resolves: RHBZ 1372033
f79480
f79480
* Wed Jun 22 2016 Omair Majid <omajid@redhat.com> - 1.0.0-7
f79480
- Update to newer build.
f79480
- Fixes https://github.com/NuGet/Home/issues/3010
f79480
f79480
* Mon Jun 20 2016 Severin Gehwolf <sgehwolf@redhat.com> - 1.0.0-6
f79480
- Reinstate libuv runtime requirement.
f79480
f79480
* Fri Jun 17 2016 Omair Majid <omajid@redhat.com> - 1.0.0-5
f79480
- Update with new build. This one includes a libuv built from source.
f79480
f79480
* Fri Jun 17 2016 Omair Majid <omajid@redhat.com> - 1.0.0-4
f79480
- Update source.
f79480
- Fix filtering of provides and requires
f79480
- Don't use the scl-wide libuv.so. There's a bundled copy included.
f79480
f79480
* Fri Jun 17 2016 Omair Majid <omajid@redhat.com> - 1.0.0-3
f79480
- Update requires filtering for self-provided library
f79480
f79480
* Fri Jun 17 2016 Omair Majid <omajid@redhat.com> - 1.0.0-2
f79480
- Update requires filtering for self-provided library
f79480
f79480
* Thu Jun 16 2016 Omair Majid <omajid@redhat.com> - 1.0.0-1
f79480
- First build of .NET Core 1.0
f79480
f79480
* Fri May 27 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.9.rc2
f79480
- Don't generate requires for self-provided library
f79480
f79480
* Fri May 27 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.8.rc2
f79480
- Do not rpm-provide internal implementation libraries
f79480
f79480
* Tue May 17 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.7.rc2
f79480
- Strip binaries and produce debug packages
f79480
f79480
* Mon May 16 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.6.preview1
f79480
- Build using new upstream tarball with fixed LICENSE.
f79480
f79480
* Mon May 16 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.5.preview1
f79480
- Include license file
f79480
f79480
* Thu May 12 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.4.preview1
f79480
- Update to latest preview build
f79480
f79480
* Wed May 11 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.3.preview1
f79480
- Update to latest build
f79480
f79480
* Thu Apr 28 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.2.20160428
f79480
- Update to the latest nightly build
f79480
f79480
* Thu Apr 21 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.2.20160421
f79480
- Update to latest nightly build
f79480
f79480
* Wed Apr 20 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.2.20160407
f79480
- Explicitly require customized libcurl
f79480
f79480
* Mon Apr 18 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.1.20160407
f79480
- Rename package
f79480
f79480
* Thu Apr 07 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.1.20160407
f79480
- Update to latest nightly
f79480
f79480
* Wed Apr 06 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.1.20160406
f79480
- Update to latest nightly
f79480
f79480
* Mon Apr 04 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.1.20160404
f79480
- Update to newer drop
f79480
f79480
* Fri Mar 11 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.1.20160229
f79480
- Initial package